@wavemaker/angular-codegen 11.0.1-next.139246 → 11.0.1-next.139247
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- angular-codegen/angular-app/package.json +1 -1
- angular-codegen/dependencies/expression-parser.cjs.js +3 -3
- angular-codegen/dependencies/pipe-provider.cjs.js +5 -4
- angular-codegen/dependencies/transpilation-mobile.cjs.js +5 -4
- angular-codegen/dependencies/transpilation-web.cjs.js +5 -4
- angular-codegen/package.json +1 -1
@@ -68,7 +68,7 @@
|
|
68
68
|
"tslib": "^2.0.0",
|
69
69
|
"x2js": "3.2.6",
|
70
70
|
"zone.js": "~0.10.3",
|
71
|
-
"@wavemaker/app-ng-runtime": "11.0.1-next.
|
71
|
+
"@wavemaker/app-ng-runtime": "11.0.1-next.139247"
|
72
72
|
},
|
73
73
|
"devDependencies": {
|
74
74
|
"@ampproject/rollup-plugin-closure-compiler": "0.8.5",
|
@@ -17664,7 +17664,7 @@ function $parseEvent(expr, defOnly) {
|
|
17664
17664
|
return fn;
|
17665
17665
|
}
|
17666
17666
|
if (!defOnly) {
|
17667
|
-
fn = getFnForEventExpr(expr)
|
17667
|
+
fn = getFnForEventExpr(expr);
|
17668
17668
|
}
|
17669
17669
|
// fallback to generate function in runtime. This will break if CSP is enabled
|
17670
17670
|
if (!fn) {
|
@@ -17689,8 +17689,8 @@ const getFnByExpr = (expr) => fnNameMap.get(expr);
|
|
17689
17689
|
const fnExecutor = (expr, exprType) => {
|
17690
17690
|
let fn = getFnByExpr(expr);
|
17691
17691
|
if (!fn) {
|
17692
|
-
console.warn('
|
17693
|
-
return
|
17692
|
+
console.warn("didn't find fn for the expr: ", expr, ". Falling back to runtime evaluation");
|
17693
|
+
return;
|
17694
17694
|
}
|
17695
17695
|
const usedPipes = fn.usedPipes || [];
|
17696
17696
|
if (exprType === ExpressionType$1.Binding) {
|
@@ -42749,7 +42749,7 @@ function $parseEvent(expr, defOnly) {
|
|
42749
42749
|
return fn;
|
42750
42750
|
}
|
42751
42751
|
if (!defOnly) {
|
42752
|
-
fn = getFnForEventExpr(expr)
|
42752
|
+
fn = getFnForEventExpr(expr);
|
42753
42753
|
}
|
42754
42754
|
// fallback to generate function in runtime. This will break if CSP is enabled
|
42755
42755
|
if (!fn) {
|
@@ -42769,8 +42769,8 @@ const getFnByExpr = (expr) => fnNameMap.get(expr);
|
|
42769
42769
|
const fnExecutor = (expr, exprType) => {
|
42770
42770
|
let fn = getFnByExpr(expr);
|
42771
42771
|
if (!fn) {
|
42772
|
-
console.warn('
|
42773
|
-
return
|
42772
|
+
console.warn("didn't find fn for the expr: ", expr, ". Falling back to runtime evaluation");
|
42773
|
+
return;
|
42774
42774
|
}
|
42775
42775
|
const usedPipes = fn.usedPipes || [];
|
42776
42776
|
if (exprType === ExpressionType$1.Binding) {
|
@@ -43712,7 +43712,8 @@ const setSessionStorageItem = (key, value) => {
|
|
43712
43712
|
* @param key string
|
43713
43713
|
*/
|
43714
43714
|
const getSessionStorageItem = key => {
|
43715
|
-
|
43715
|
+
// sanity check for this to work with ng-codegen
|
43716
|
+
let item = window && window.sessionStorage && window.sessionStorage.getItem(_WM_APP_PROJECT.id);
|
43716
43717
|
if (item) {
|
43717
43718
|
item = JSON.parse(item);
|
43718
43719
|
return item[key];
|
@@ -38737,7 +38737,7 @@ function $parseEvent(expr, defOnly) {
|
|
38737
38737
|
return fn;
|
38738
38738
|
}
|
38739
38739
|
if (!defOnly) {
|
38740
|
-
fn = getFnForEventExpr(expr)
|
38740
|
+
fn = getFnForEventExpr(expr);
|
38741
38741
|
}
|
38742
38742
|
// fallback to generate function in runtime. This will break if CSP is enabled
|
38743
38743
|
if (!fn) {
|
@@ -38757,8 +38757,8 @@ const getFnByExpr = (expr) => fnNameMap.get(expr);
|
|
38757
38757
|
const fnExecutor = (expr, exprType) => {
|
38758
38758
|
let fn = getFnByExpr(expr);
|
38759
38759
|
if (!fn) {
|
38760
|
-
console.warn('
|
38761
|
-
return
|
38760
|
+
console.warn("didn't find fn for the expr: ", expr, ". Falling back to runtime evaluation");
|
38761
|
+
return;
|
38762
38762
|
}
|
38763
38763
|
const usedPipes = fn.usedPipes || [];
|
38764
38764
|
if (exprType === ExpressionType$1.Binding) {
|
@@ -39700,7 +39700,8 @@ const setSessionStorageItem = (key, value) => {
|
|
39700
39700
|
* @param key string
|
39701
39701
|
*/
|
39702
39702
|
const getSessionStorageItem = key => {
|
39703
|
-
|
39703
|
+
// sanity check for this to work with ng-codegen
|
39704
|
+
let item = window && window.sessionStorage && window.sessionStorage.getItem(_WM_APP_PROJECT.id);
|
39704
39705
|
if (item) {
|
39705
39706
|
item = JSON.parse(item);
|
39706
39707
|
return item[key];
|
@@ -38737,7 +38737,7 @@ function $parseEvent(expr, defOnly) {
|
|
38737
38737
|
return fn;
|
38738
38738
|
}
|
38739
38739
|
if (!defOnly) {
|
38740
|
-
fn = getFnForEventExpr(expr)
|
38740
|
+
fn = getFnForEventExpr(expr);
|
38741
38741
|
}
|
38742
38742
|
// fallback to generate function in runtime. This will break if CSP is enabled
|
38743
38743
|
if (!fn) {
|
@@ -38757,8 +38757,8 @@ const getFnByExpr = (expr) => fnNameMap.get(expr);
|
|
38757
38757
|
const fnExecutor = (expr, exprType) => {
|
38758
38758
|
let fn = getFnByExpr(expr);
|
38759
38759
|
if (!fn) {
|
38760
|
-
console.warn('
|
38761
|
-
return
|
38760
|
+
console.warn("didn't find fn for the expr: ", expr, ". Falling back to runtime evaluation");
|
38761
|
+
return;
|
38762
38762
|
}
|
38763
38763
|
const usedPipes = fn.usedPipes || [];
|
38764
38764
|
if (exprType === ExpressionType$1.Binding) {
|
@@ -39700,7 +39700,8 @@ const setSessionStorageItem = (key, value) => {
|
|
39700
39700
|
* @param key string
|
39701
39701
|
*/
|
39702
39702
|
const getSessionStorageItem = key => {
|
39703
|
-
|
39703
|
+
// sanity check for this to work with ng-codegen
|
39704
|
+
let item = window && window.sessionStorage && window.sessionStorage.getItem(_WM_APP_PROJECT.id);
|
39704
39705
|
if (item) {
|
39705
39706
|
item = JSON.parse(item);
|
39706
39707
|
return item[key];
|