Skip to content

Commit 9ddbdb8

Browse files
Merge pull request #275 from mean-expert-official/development
Release 2.1.0-rc.7
2 parents 6ceca90 + 5db57ac commit 9ddbdb8

File tree

172 files changed

+2725
-1848
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+2725
-1848
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
This file is created to keep history of the LoopBack SDK Builder, it does not consider or keeps any history of its parent module `loopback-sdk-angular`.
44

5+
## Release 2.1.0-rc.7
6+
7+
- Milestone Details: https://github.com/mean-expert-official/loopback-sdk-builder/milestone/29?closed=1
8+
9+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/274
10+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/273
11+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/272
12+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/271
13+
514
## Release 2.1.0-rc.6
615

716
- Milestone Details: https://github.com/mean-expert-official/loopback-sdk-builder/milestone/28?closed=1
@@ -11,6 +20,7 @@ This file is created to keep history of the LoopBack SDK Builder, it does not co
1120
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/265
1221
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/264
1322
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/262
23+
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/260
1424
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/151
1525

1626
## Release 2.1.0-rc.5

lib/angular2/shared/models/flref.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class FireLoopRef<T> {
181181
(res: T) =>
182182
this.socket.emit(`${event}.broadcast.request.${ this.id }`, request)
183183
);
184-
this.socket.onZone(`${ event }.broadcast.${ this.id }`, (data) => sbj.next(data));
184+
this.socket.onZone(`${ event }.broadcast.${ this.id }`, (data: any) => sbj.next(data));
185185
return sbj.asObservable();
186186
}
187187
/**

lib/angular2/shared/services/core/realtime.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class RealTime {
4242
public onReady(): Observable<null> {
4343
let subject: Subject<null> = new Subject<null>();
4444
if (this.connected) {
45-
subject.next();
45+
setTimeout(() => subject.next());
4646
} else {
4747
this.socket = this.getConnection();
4848
this.IO = new IO(this.socket);

lib/angular2/shared/sockets/connections.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class SocketConnections {
3535
this.setupConnection(url, token, config);
3636
});
3737
let forceConfig: any = setInterval(() => {
38-
if (!this.configured && this.connections[url].connected) {
38+
if (!this.configured && this.connections[url] && this.connections[url].connected) {
3939
console.info('Forcing IO Configuration');
4040
this.setupConnection(url, token, config);
4141
clearInterval(forceConfig);
@@ -51,9 +51,12 @@ export class SocketConnections {
5151

5252
public disconnect() {
5353
Object.keys(this.connections).forEach((connKey) => {
54-
if (this.connections[connKey].connected) {
54+
if (this.connections[connKey] && this.connections[connKey].connected) {
5555
this.connections[connKey].disconnect();
5656
}
57+
if (this.connections[connKey].off) {
58+
this.connections[connKey].off();
59+
}
5760
});
5861
this.connections = {};
5962
this.configured = false;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* tslint:disable */
2-
var SocketIO = require('nativescript-socket.io');
2+
import * as SocketIO from 'nativescript-socket.io';
33
export class SocketNative {
4-
connect(url: any, options: any) {
4+
connect(url: any, options: any): SocketIO.Socket {
55
return SocketIO.connect(url, options);
66
}
77
}

lib/angular2/shared/storage/storage.browser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export class StorageBrowser {
2626
console.log('Trying to remove unexisting key: ', key);
2727
}
2828
}
29-
private isJSON(str) {
29+
private isJSON(data: string) {
3030
try {
31-
JSON.parse(str);
31+
JSON.parse(data);
3232
} catch (e) {
3333
return false;
3434
}

lib/angular2/shared/storage/storage.native.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export class StorageNative {
2121
console.log('Trying to remove unexisting key: ', key);
2222
}
2323
}
24-
private isJSON(str) {
24+
private isJSON(data: string) {
2525
try {
26-
JSON.parse(str);
26+
JSON.parse(data);
2727
} catch (e) {
2828
return false;
2929
}

lib/angular2/shared/storage/storage.swaps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* The InternalStorage class is used for dependency injection swapping.
77
* It will be provided using factory method from different sources.
88
**/
9-
class Storage {
9+
export class Storage {
1010
get(key: string): any {}
1111
set(key: string, value: any): any {}
1212
remove(key: string): any {}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "@mean-expert/loopback-sdk-builder",
3-
"version": "2.1.0-rc.6",
3+
"version": "2.1.0-rc.7",
44
"description": "Tool for auto-generating Software Development Kits (SDKs) for LoopBack",
55
"bin": {
66
"lb-sdk": "bin/lb-sdk"
77
},
88
"main": "index.js",
99
"scripts": {
1010
"prepublish": "",
11-
"test": "npm run load:api & npm run test:angular2",
12-
"pretest": "cd tests/angular2 && npm install && npm install ../../ && npm run build:sdk",
13-
"load:api": "cd tests/angular2 && NODE_ENV=testing node loopback/server",
14-
"test:angular2": "cd tests/angular2 && npm test"
11+
"test": "npm run load:api & npm run test:ng2web",
12+
"pretest": "cd tests/fireloop && npm install && npm install ../../ && npm run build:sdk",
13+
"load:api": "cd tests/fireloop && NODE_ENV=ci node server/server",
14+
"test:ng2web": "cd tests/ng2web && npm test"
1515
},
1616
"repository": {
1717
"type": "git",

tests/.yo-rc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"generator-fireloop": {
3+
"version": "1.0.0-alpha.38",
4+
"clients": {
5+
"ng2web": {
6+
"path": "./ng2web",
7+
"type": "ng2web"
8+
}
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)