diff --git a/package-lock.json b/package-lock.json index 70aab66..1611282 100644 --- a/package-lock.json +++ b/package-lock.json @@ -417,9 +417,9 @@ } }, "@loafer/ng-rpc": { - "version": "0.0.8", - "resolved": "https://nexus.loafle.net/repository/npm-all/@loafer/ng-rpc/-/ng-rpc-0.0.8.tgz", - "integrity": "sha512-2+vIthHr1Bh1mBnNm1cYgPC/SOobkby2H046uRJkOVN60oUpPDtYsMCLDLS2c/vOin2VO9oyJfvfRj5kfwd3xg==", + "version": "0.0.10", + "resolved": "https://nexus.loafle.net/repository/npm-all/@loafer/ng-rpc/-/ng-rpc-0.0.10.tgz", + "integrity": "sha512-aQt/WSS1AfjRM4ZW2AfLNc2Gh3J2/UfkG4soP7RvEYJf18ds02tUq4svX1gTlCM8Lf751bsE38owS6CndplQDg==", "requires": { "tslib": "^1.9.0" } diff --git a/package.json b/package.json index 6b77216..b799f88 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@loafer/ng-entity": "^0.0.2", "@loafer/ng-logger": "^0.0.1", "@loafer/ng-rest": "^0.0.1", - "@loafer/ng-rpc": "^0.0.8", + "@loafer/ng-rpc": "^0.0.10", "@ngrx/core": "^1.2.0", "@ngrx/effects": "^5.2.0", "@ngrx/router-store": "^5.2.0", diff --git a/src/polyfills.ts b/src/polyfills.ts index d310405..9b5f9ef 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -58,14 +58,14 @@ import 'core-js/es7/reflect'; * user can disable parts of macroTask/DomEvents patch by setting following flags */ - // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame - // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick - // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames +// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame +// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick +// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames - /* - * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js - * with the following flag, it will bypass `zone.js` patch for IE/Edge - */ +/* +* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js +* with the following flag, it will bypass `zone.js` patch for IE/Edge +*/ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** @@ -78,3 +78,9 @@ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ + +// "global is not defined +(window as any).global = window; + +// "Buffer is not defined +global.Buffer = global.Buffer || require('buffer').Buffer; diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json index 11d5c8e..376fb64 100644 --- a/src/tsconfig.app.json +++ b/src/tsconfig.app.json @@ -4,6 +4,7 @@ "outDir": "../out-tsc/app", "module": "es2015", "types": [ + "node", "reflect-metadata" ] }, @@ -11,4 +12,4 @@ "src/test.ts", "**/*.spec.ts" ] -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 20c1331..d69c71e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "node_modules/@types" ], "types": [ + "node", "reflect-metadata", ], "lib": [