@cloudbase/cals 1.2.14 → 1.2.16
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.
- package/lib/cjs/parser/cals/utils/code/index.d.ts.map +1 -1
- package/lib/cjs/parser/cals/utils/code/index.js +10 -0
- package/lib/cjs/utils/dts/auto-generated.d.ts +1 -1
- package/lib/cjs/utils/dts/auto-generated.d.ts.map +1 -1
- package/lib/cjs/utils/dts/auto-generated.js +15 -1
- package/lib/esm/parser/cals/utils/code/index.d.ts.map +1 -1
- package/lib/esm/parser/cals/utils/code/index.js +10 -0
- package/lib/esm/utils/dts/auto-generated.d.ts +1 -1
- package/lib/esm/utils/dts/auto-generated.d.ts.map +1 -1
- package/lib/esm/utils/dts/auto-generated.js +15 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/cals/utils/code/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,YAAY,EAMZ,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAK3B,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,YAAY,GAAG,eAAe,EAAE,OAAO,GAAE,IAAI,GAAG,IAAW,GAAG,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/cals/utils/code/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,YAAY,EAMZ,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAK3B,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,YAAY,GAAG,eAAe,EAAE,OAAO,GAAE,IAAI,GAAG,IAAW,GAAG,SAAS,EAAE,CAkN7G;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,OAAO,GAAE,IAAI,GAAG,IAAW,GAAG,YAAY,CA2K3F;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CA6BlF;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,gBAAgB,GAAE,OAAe,GAChC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,CAoClD"}
|
|
@@ -102,6 +102,7 @@ function calsToCode(calsJSON, version = 'v1') {
|
|
|
102
102
|
'loginConfigVersion',
|
|
103
103
|
'enableLoginStatusShare',
|
|
104
104
|
// 额外添加,非标准
|
|
105
|
+
'pageTree',
|
|
105
106
|
'pages',
|
|
106
107
|
'processPages',
|
|
107
108
|
'mpAppId',
|
|
@@ -109,6 +110,7 @@ function calsToCode(calsJSON, version = 'v1') {
|
|
|
109
110
|
'resourceAppId',
|
|
110
111
|
'envId',
|
|
111
112
|
'uin',
|
|
113
|
+
'access',
|
|
112
114
|
],
|
|
113
115
|
};
|
|
114
116
|
// @ts-ignore
|
|
@@ -185,6 +187,9 @@ function calsToCode(calsJSON, version = 'v1') {
|
|
|
185
187
|
case types_1.ECodeType.HANDLER_FN:
|
|
186
188
|
codePath = `${realBasePath}${types_1.ECodeName.HANDLER_FN}/${codeItem.name}.js`;
|
|
187
189
|
break;
|
|
190
|
+
case types_1.ECodeType.RENDERER:
|
|
191
|
+
codePath = `${realBasePath}/${codeItem.path}`;
|
|
192
|
+
break;
|
|
188
193
|
}
|
|
189
194
|
if (codePath) {
|
|
190
195
|
addCodeItem(codePath, codeItem.code);
|
|
@@ -309,6 +314,11 @@ function codeToCals(codeList, version = 'v1') {
|
|
|
309
314
|
resources.push(Object.assign({ name: types_1.ECodeType.LIFECYCLE, path: `${_pageId}/${types_1.ECodeType.LIFECYCLE}`, codeType: types_1.ECodeType.LIFECYCLE }, commonVal));
|
|
310
315
|
break;
|
|
311
316
|
default: {
|
|
317
|
+
if (/.jsx$/.test(relativePath)) {
|
|
318
|
+
const list = relativePath.split('/');
|
|
319
|
+
resources.push(Object.assign(Object.assign({ name: list[list.length - 1].replace(/.jsx$/, ''), path: `${_pageId}/${relativePath}`, codeType: types_1.ECodeType.RENDERER }, commonVal), { system: false }));
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
312
322
|
// page handler
|
|
313
323
|
const handlerMatches = relativePath.match(/^handler\/([^/]*?).js$/);
|
|
314
324
|
if (handlerMatches) {
|