Skip to content

Commit

Permalink
Merge pull request #275 from mean-expert-official/development
Browse files Browse the repository at this point in the history
Release 2.1.0-rc.7
  • Loading branch information
jonathan-casarrubias authored Dec 22, 2016
2 parents 6ceca90 + 5db57ac commit 9ddbdb8
Show file tree
Hide file tree
Showing 172 changed files with 2,725 additions and 1,848 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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`.

## Release 2.1.0-rc.7

- Milestone Details: https://github.com/mean-expert-official/loopback-sdk-builder/milestone/29?closed=1

- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/274
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/273
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/272
- Fix: https://github.com/mean-expert-official/loopback-sdk-builder/issues/271

## Release 2.1.0-rc.6

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

## Release 2.1.0-rc.5
Expand Down
2 changes: 1 addition & 1 deletion lib/angular2/shared/models/flref.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class FireLoopRef<T> {
(res: T) =>
this.socket.emit(`${event}.broadcast.request.${ this.id }`, request)
);
this.socket.onZone(`${ event }.broadcast.${ this.id }`, (data) => sbj.next(data));
this.socket.onZone(`${ event }.broadcast.${ this.id }`, (data: any) => sbj.next(data));
return sbj.asObservable();
}
/**
Expand Down
2 changes: 1 addition & 1 deletion lib/angular2/shared/services/core/realtime.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class RealTime {
public onReady(): Observable<null> {
let subject: Subject<null> = new Subject<null>();
if (this.connected) {
subject.next();
setTimeout(() => subject.next());
} else {
this.socket = this.getConnection();
this.IO = new IO(this.socket);
Expand Down
7 changes: 5 additions & 2 deletions lib/angular2/shared/sockets/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class SocketConnections {
this.setupConnection(url, token, config);
});
let forceConfig: any = setInterval(() => {
if (!this.configured && this.connections[url].connected) {
if (!this.configured && this.connections[url] && this.connections[url].connected) {
console.info('Forcing IO Configuration');
this.setupConnection(url, token, config);
clearInterval(forceConfig);
Expand All @@ -51,9 +51,12 @@ export class SocketConnections {

public disconnect() {
Object.keys(this.connections).forEach((connKey) => {
if (this.connections[connKey].connected) {
if (this.connections[connKey] && this.connections[connKey].connected) {
this.connections[connKey].disconnect();
}
if (this.connections[connKey].off) {
this.connections[connKey].off();
}
});
this.connections = {};
this.configured = false;
Expand Down
4 changes: 2 additions & 2 deletions lib/angular2/shared/sockets/socket.native.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* tslint:disable */
var SocketIO = require('nativescript-socket.io');
import * as SocketIO from 'nativescript-socket.io';
export class SocketNative {
connect(url: any, options: any) {
connect(url: any, options: any): SocketIO.Socket {
return SocketIO.connect(url, options);
}
}
4 changes: 2 additions & 2 deletions lib/angular2/shared/storage/storage.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export class StorageBrowser {
console.log('Trying to remove unexisting key: ', key);
}
}
private isJSON(str) {
private isJSON(data: string) {
try {
JSON.parse(str);
JSON.parse(data);
} catch (e) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/angular2/shared/storage/storage.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export class StorageNative {
console.log('Trying to remove unexisting key: ', key);
}
}
private isJSON(str) {
private isJSON(data: string) {
try {
JSON.parse(str);
JSON.parse(data);
} catch (e) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/angular2/shared/storage/storage.swaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* The InternalStorage class is used for dependency injection swapping.
* It will be provided using factory method from different sources.
**/
class Storage {
export class Storage {
get(key: string): any {}
set(key: string, value: any): any {}
remove(key: string): any {}
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@mean-expert/loopback-sdk-builder",
"version": "2.1.0-rc.6",
"version": "2.1.0-rc.7",
"description": "Tool for auto-generating Software Development Kits (SDKs) for LoopBack",
"bin": {
"lb-sdk": "bin/lb-sdk"
},
"main": "index.js",
"scripts": {
"prepublish": "",
"test": "npm run load:api & npm run test:angular2",
"pretest": "cd tests/angular2 && npm install && npm install ../../ && npm run build:sdk",
"load:api": "cd tests/angular2 && NODE_ENV=testing node loopback/server",
"test:angular2": "cd tests/angular2 && npm test"
"test": "npm run load:api & npm run test:ng2web",
"pretest": "cd tests/fireloop && npm install && npm install ../../ && npm run build:sdk",
"load:api": "cd tests/fireloop && NODE_ENV=ci node server/server",
"test:ng2web": "cd tests/ng2web && npm test"
},
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions tests/.yo-rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"generator-fireloop": {
"version": "1.0.0-alpha.38",
"clients": {
"ng2web": {
"path": "./ng2web",
"type": "ng2web"
}
}
}
}
3 changes: 0 additions & 3 deletions tests/angular2/common/models/account.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/application-credential.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/category.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/core.js

This file was deleted.

14 changes: 0 additions & 14 deletions tests/angular2/common/models/core.json

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/like.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/message.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/room-account.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/room-admin.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/storage.js

This file was deleted.

14 changes: 0 additions & 14 deletions tests/angular2/common/models/storage.json

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/user-credential.js

This file was deleted.

3 changes: 0 additions & 3 deletions tests/angular2/common/models/user-identity.js

This file was deleted.

4 changes: 0 additions & 4 deletions tests/angular2/loopback/boot/authentication.js

This file was deleted.

25 changes: 0 additions & 25 deletions tests/angular2/loopback/boot/ng2finder.js

This file was deleted.

6 changes: 0 additions & 6 deletions tests/angular2/loopback/boot/root.js

This file was deleted.

7 changes: 0 additions & 7 deletions tests/angular2/loopback/boot/test.js

This file was deleted.

5 changes: 0 additions & 5 deletions tests/angular2/loopback/config.local.js

This file was deleted.

9 changes: 0 additions & 9 deletions tests/angular2/loopback/middleware.production.json

This file was deleted.

64 changes: 0 additions & 64 deletions tests/angular2/package.json

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9ddbdb8

Please sign in to comment.