miniprogram-ci 1.5.1 → 1.8.0
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/CHANGELOG.md +5 -0
- package/README.md +71 -0
- package/dist/@types/ci/code-analyse.d.ts +4 -0
- package/dist/@types/ci/getLatestVersion.d.ts +7 -0
- package/dist/@types/ci/project.d.ts +4 -0
- package/dist/@types/cloud/cloudapi.d.ts +1 -1
- package/dist/@types/cloud/uploadContainer.d.ts +36 -7
- package/dist/@types/config.d.ts +3 -3
- package/dist/@types/core/js/enhance.d.ts +1 -0
- package/dist/@types/core/js/generateMap.d.ts +3 -0
- package/dist/@types/core/json/app/checkAppFields.d.ts +1 -0
- package/dist/@types/core/json/projectWithMockBuffer.d.ts +14 -0
- package/dist/@types/core/json/reactiveCache.d.ts +4 -0
- package/dist/@types/core/protect/uglifyfilenames.d.ts +2 -4
- package/dist/@types/core/worker_thread/task/minifywxml.d.ts +7 -0
- package/dist/@types/core.d.ts +1 -1
- package/dist/@types/index.d.ts +6 -0
- package/dist/@types/summer/ci.d.ts +3 -0
- package/dist/@types/summer/devtool.d.ts +9 -1
- package/dist/@types/summer/error.d.ts +14 -5
- package/dist/@types/summer/graph/appgraph.d.ts +1 -0
- package/dist/@types/summer/graph/basegraph.d.ts +4 -0
- package/dist/@types/summer/graph/plugingraph.d.ts +2 -1
- package/dist/@types/summer/initPlugin.d.ts +1 -1
- package/dist/@types/summer/module.d.ts +3 -2
- package/dist/@types/summer/plugins/base/es6module.d.ts +4 -2
- package/dist/@types/summer/plugins/base/wxss.d.ts +1 -1
- package/dist/@types/summer/plugins/enhance.d.ts +3 -1
- package/dist/@types/summer/plugins/index.d.ts +1 -16
- package/dist/@types/summer/project.d.ts +5 -3
- package/dist/@types/summer/summer.d.ts +2 -1
- package/dist/@types/summer/types.d.ts +1 -0
- package/dist/@types/types/index.d.ts +5 -0
- package/dist/@types/types/miniprogram-json/app.d.ts +2 -1
- package/dist/@types/types/miniprogram-json/page.d.ts +1 -0
- package/dist/@types/types/miniprogram-json/projectconfig.d.ts +2 -0
- package/dist/@types/utils/locales/locales.d.ts +4 -0
- package/dist/@types/utils/locales/zh.d.ts +4 -0
- package/dist/@types/utils/tools.d.ts +1 -0
- package/dist/@types/utils/url_config.d.ts +1 -0
- package/dist/@types/vendor/code-analyse/index.d.ts +4 -3
- package/dist/ci/code-analyse.js +3 -0
- package/dist/ci/cos-upload.js +3 -1
- package/dist/ci/getCompiledResult.js +3 -1
- package/dist/ci/getDevSourceMap.js +3 -1
- package/dist/ci/getLatestVersion.js +3 -0
- package/dist/ci/jsserver.js +3 -1
- package/dist/ci/preview.js +3 -1
- package/dist/ci/project.js +3 -1
- package/dist/ci/projectattr.js +3 -1
- package/dist/ci/upload.js +3 -1
- package/dist/ci/utils/pack.js +3 -1
- package/dist/ci/utils/packfile.js +3 -1
- package/dist/ci/utils/terminalQrcode.js +3 -1
- package/dist/cli.js +3 -1
- package/dist/cloud/cloudapi.js +3 -1
- package/dist/cloud/createTimeTrigger.js +3 -1
- package/dist/cloud/uploadContainer.js +3 -1
- package/dist/cloud/uploadFile.js +3 -1
- package/dist/cloud/uploadFunction.js +3 -1
- package/dist/cloud/utils.js +3 -1
- package/dist/config.js +3 -1
- package/dist/core/analyse/partial.js +3 -1
- package/dist/core/compile/common.js +3 -1
- package/dist/core/compile/game.js +3 -1
- package/dist/core/compile/game_plugin.js +3 -1
- package/dist/core/compile/handler/js.js +3 -1
- package/dist/core/compile/handler/mpjson.js +3 -1
- package/dist/core/compile/handler/wxml.js +3 -1
- package/dist/core/compile/handler/wxss.js +3 -1
- package/dist/core/compile/index.js +3 -1
- package/dist/core/compile/mini_program.js +3 -1
- package/dist/core/compile/mini_program_plugin.js +3 -1
- package/dist/core/js/enhance.js +1 -1
- package/dist/core/js/generateMap.js +1 -0
- package/dist/core/js/index.js +1 -1
- package/dist/core/js/minifyjs_after_wrap.js +1 -1
- package/dist/core/json/app/checkAppFields.js +3 -1
- package/dist/core/json/app/getAppJSON.js +3 -1
- package/dist/core/json/app/getExtJSON.js +3 -1
- package/dist/core/json/app/index.js +3 -1
- package/dist/core/json/common.js +3 -1
- package/dist/core/json/game.js +3 -1
- package/dist/core/json/page/checkPageJSON.js +3 -1
- package/dist/core/json/page/getPageJSON.js +3 -1
- package/dist/core/json/plugin/plugin.js +3 -1
- package/dist/core/json/plugin/plugin_page.js +3 -1
- package/dist/core/json/projectWithMockBuffer.js +3 -0
- package/dist/core/json/projectconfig.js +3 -1
- package/dist/core/json/reactiveCache.js +3 -1
- package/dist/core/json/signaturejson.js +3 -1
- package/dist/core/json/sitemap.js +3 -1
- package/dist/core/json/theme.js +3 -1
- package/dist/core/npm/filterdeps.js +3 -1
- package/dist/core/npm/packnpm.js +3 -1
- package/dist/core/protect/file_flatter.js +3 -1
- package/dist/core/protect/uglifyfilenames.js +3 -1
- package/dist/core/utils/env.js +3 -1
- package/dist/core/utils/logger.js +3 -1
- package/dist/core/validate/validate.js +1 -1
- package/dist/core/worker_thread/childprocess.js +1 -1
- package/dist/core/worker_thread/childprocess_manager.js +1 -1
- package/dist/core/worker_thread/fork.js +1 -1
- package/dist/core/worker_thread/index.js +1 -1
- package/dist/core/worker_thread/task/call_func.js +1 -1
- package/dist/core/worker_thread/task/compilejs.js +1 -1
- package/dist/core/worker_thread/task/compilewxss.js +1 -1
- package/dist/core/worker_thread/task/func.js +1 -1
- package/dist/core/worker_thread/task/minifywxml.js +1 -1
- package/dist/core/worker_thread/worker.js +1 -1
- package/dist/core/worker_thread/worker_manager.js +1 -1
- package/dist/core.js +3 -1
- package/dist/index.js +3 -1
- package/dist/manifest.json +3 -3
- package/dist/summer/ci.js +3 -0
- package/dist/summer/devtool.js +3 -1
- package/dist/summer/entry_process.js +1 -1
- package/dist/summer/error.js +3 -1
- package/dist/summer/graph/appconf.js +3 -1
- package/dist/summer/graph/appgraph.js +3 -1
- package/dist/summer/graph/basegraph.js +3 -1
- package/dist/summer/graph/pluginconf.js +3 -1
- package/dist/summer/graph/plugingraph.js +3 -1
- package/dist/summer/index.js +3 -1
- package/dist/summer/initPlugin.js +3 -1
- package/dist/summer/module.js +3 -1
- package/dist/summer/persist_cache.js +3 -1
- package/dist/summer/plugin_driver.js +3 -1
- package/dist/summer/plugins/base/es6module.js +1 -1
- package/dist/summer/plugins/base/javascript.js +1 -1
- package/dist/summer/plugins/base/wxss.js +1 -1
- package/dist/summer/plugins/enhance.js +1 -1
- package/dist/summer/plugins/index.js +1 -1
- package/dist/summer/plugins/less.js +1 -1
- package/dist/summer/plugins/sass.js +1 -1
- package/dist/summer/plugins/terser.js +1 -1
- package/dist/summer/plugins/typescript.js +1 -1
- package/dist/summer/project.js +3 -1
- package/dist/summer/recorder.js +3 -1
- package/dist/summer/resolver.js +3 -1
- package/dist/summer/summer.js +3 -1
- package/dist/summer/types.js +3 -1
- package/dist/summer/utils/async.js +3 -1
- package/dist/summer/utils/ensureArray.js +3 -1
- package/dist/summer/worker.js +3 -1
- package/dist/types/index.js +3 -1
- package/dist/types/miniprogram-json/app.js +3 -1
- package/dist/types/miniprogram-json/base.js +3 -1
- package/dist/types/miniprogram-json/ext.js +3 -1
- package/dist/types/miniprogram-json/game.js +3 -1
- package/dist/types/miniprogram-json/index.js +3 -1
- package/dist/types/miniprogram-json/page.js +3 -1
- package/dist/types/miniprogram-json/plugin.js +3 -1
- package/dist/types/miniprogram-json/projectconfig.js +3 -1
- package/dist/types/miniprogram-json/sitemap.js +3 -1
- package/dist/types/miniprogram-json/theme.js +3 -1
- package/dist/utils/babel_helper.js +3 -1
- package/dist/utils/babel_transform_plugin.js +3 -1
- package/dist/utils/cache.js +3 -1
- package/dist/utils/common.js +3 -1
- package/dist/utils/error.js +3 -1
- package/dist/utils/fs.js +3 -1
- package/dist/utils/fsagent.js +3 -1
- package/dist/utils/glob.js +3 -1
- package/dist/utils/interruptibletask.js +3 -1
- package/dist/utils/jsonParse.js +3 -1
- package/dist/utils/jsonlint.js +3 -1
- package/dist/utils/locales/en.js +3 -1
- package/dist/utils/locales/fomatable_string.js +3 -1
- package/dist/utils/locales/locales.js +3 -1
- package/dist/utils/locales/zh.js +3 -1
- package/dist/utils/log.js +3 -1
- package/dist/utils/report.js +3 -1
- package/dist/utils/request.js +3 -1
- package/dist/utils/sign.js +3 -1
- package/dist/utils/taskstatus.js +3 -1
- package/dist/utils/tools.js +3 -1
- package/dist/utils/url_config.js +3 -1
- package/dist/utils/white_ext_list.js +3 -1
- package/dist/utils/wxvpkgreader/wxvpkgreader.js +1 -1
- package/dist/vendor/cloud-api/src/apis/apis.js +3 -1
- package/dist/vendor/cloud-api/src/apis/cdn/cdn.apis.js +3 -1
- package/dist/vendor/cloud-api/src/apis/cdn/index.js +3 -1
- package/dist/vendor/cloud-api/src/apis/flexdb/flexdb.apis.js +3 -1
- package/dist/vendor/cloud-api/src/apis/flexdb/index.js +3 -1
- package/dist/vendor/cloud-api/src/apis/scf/index.js +3 -1
- package/dist/vendor/cloud-api/src/apis/scf/scf.apis.js +3 -1
- package/dist/vendor/cloud-api/src/apis/ssl/index.js +3 -1
- package/dist/vendor/cloud-api/src/apis/ssl/ssl.apis.js +3 -1
- package/dist/vendor/cloud-api/src/apis/tcb/general.apis.js +3 -1
- package/dist/vendor/cloud-api/src/apis/tcb/index.js +3 -1
- package/dist/vendor/cloud-api/src/apis/tcb/tcb.apis.js +3 -1
- package/dist/vendor/cloud-api/src/index.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/contracts/cdn.contracts.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/contracts/contracts.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/contracts/factory.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/contracts/flexdb.contracts.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/contracts/scf.contracts.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/contracts/ssl.contracts.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/contracts/tcb.contracts.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/transactor.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/validations/cdn.validations.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/validations/common.validations.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/validations/flexdb.validations.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/validations/scf.validations.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/validations/ssl.validations.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/validations/tcb.validations.js +3 -1
- package/dist/vendor/cloud-api/src/transaction/validations/validations.js +3 -1
- package/dist/vendor/cloud-api/src/utils/common.js +3 -1
- package/dist/vendor/cloud-api/src/utils/validator.js +3 -1
- package/dist/vendor/code-analyse/index.js +1 -1
- package/dist/vendor/schema/dist/app.js +26 -1
- package/dist/vendor/schema/dist/ext.js +21 -1
- package/dist/vendor/schema/dist/game.js +29 -1
- package/dist/vendor/schema/dist/page.js +18 -1
- package/dist/vendor/schema/dist/plugin.js +1 -1
- package/dist/vendor/schema/dist/pluginpage.js +1 -1
- package/dist/vendor/schema/dist/projectconfig.js +38 -1
- package/dist/vendor/schema/dist/sitemap.js +1 -1
- package/dist/vendor/schema/dist/theme.js +1 -1
- package/package.json +22 -24
- package/dist/@types/core/js/__tests__/minifyjs.spec.d.ts +0 -1
- package/dist/@types/summer/backup/appconf/index-old.d.ts +0 -0
- package/dist/@types/summer/backup/appconf/index.d.ts +0 -33
- package/dist/@types/summer/backup/detectors/es6/BasicEvaluatedExpression.d.ts +0 -51
- package/dist/@types/summer/backup/detectors/es6/ContextDependencyHelpers.d.ts +0 -4
- package/dist/@types/summer/backup/detectors/es6/Evaluator.d.ts +0 -29
- package/dist/@types/summer/backup/detectors/es6/Parser.d.ts +0 -134
- package/dist/@types/summer/backup/detectors/es6/StackedSetMap.d.ts +0 -17
- package/dist/@types/summer/backup/detectors/es6/acorn/acorn.d.ts +0 -0
- package/dist/@types/summer/backup/detectors/es6/types.d.ts +0 -37
- package/dist/@types/summer/backup/detectors/wxml/index.d.ts +0 -4
- package/dist/@types/summer/backup/detectors/wxss/index.d.ts +0 -5
- package/dist/@types/summer/backup/detectors/wxss/parse.d.ts +0 -1
- package/dist/@types/summer/backup/fslayer/fslayer.d.ts +0 -73
- package/dist/@types/summer/backup/graph.d.ts +0 -71
- package/dist/@types/summer/backup/module.d.ts +0 -34
- package/dist/@types/summer/backup/plugin_driver.d.ts +0 -41
- package/dist/@types/summer/backup/structs/app.d.ts +0 -0
- package/dist/@types/summer/backup/watcher.d.ts +0 -0
- package/dist/core/js/__tests__/minifyjs.spec.js +0 -1
- package/dist/summer/backup/appconf/index-old.js +0 -1
- package/dist/summer/backup/appconf/index.js +0 -1
- package/dist/summer/backup/detectors/es6/BasicEvaluatedExpression.js +0 -1
- package/dist/summer/backup/detectors/es6/ContextDependencyHelpers.js +0 -1
- package/dist/summer/backup/detectors/es6/Evaluator.js +0 -1
- package/dist/summer/backup/detectors/es6/Parser.js +0 -1
- package/dist/summer/backup/detectors/es6/StackedSetMap.js +0 -1
- package/dist/summer/backup/detectors/es6/acorn/acorn.js +0 -1
- package/dist/summer/backup/detectors/es6/types.js +0 -1
- package/dist/summer/backup/detectors/wxml/index.js +0 -1
- package/dist/summer/backup/detectors/wxss/index.js +0 -1
- package/dist/summer/backup/detectors/wxss/parse.js +0 -1
- package/dist/summer/backup/fslayer/fslayer.js +0 -1
- package/dist/summer/backup/graph.js +0 -1
- package/dist/summer/backup/module.js +0 -1
- package/dist/summer/backup/plugin_driver.js +0 -1
- package/dist/summer/backup/structs/app.js +0 -1
- package/dist/summer/backup/watcher.js +0 -1
|
@@ -128,6 +128,9 @@ module.exports = {
|
|
|
128
128
|
"resizable": {
|
|
129
129
|
"type": "boolean"
|
|
130
130
|
},
|
|
131
|
+
"frameset": {
|
|
132
|
+
"type": "boolean"
|
|
133
|
+
},
|
|
131
134
|
"functionalPages": {
|
|
132
135
|
"anyOf": [
|
|
133
136
|
{
|
|
@@ -241,6 +244,25 @@ module.exports = {
|
|
|
241
244
|
"items": {
|
|
242
245
|
"$ref": "#/definitions/ISupportMaterial"
|
|
243
246
|
}
|
|
247
|
+
},
|
|
248
|
+
"requireBackgroundModes": {
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"embeddedAppIdList": {
|
|
255
|
+
"type": "array",
|
|
256
|
+
"items": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"renderer": {
|
|
261
|
+
"enum": [
|
|
262
|
+
"skyline",
|
|
263
|
+
"webview"
|
|
264
|
+
],
|
|
265
|
+
"type": "string"
|
|
244
266
|
}
|
|
245
267
|
},
|
|
246
268
|
"additionalProperties": false,
|
|
@@ -257,6 +279,9 @@ module.exports = {
|
|
|
257
279
|
"backgroundColorBottom": {
|
|
258
280
|
"type": "string"
|
|
259
281
|
},
|
|
282
|
+
"backgroundColorContent": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
260
285
|
"backgroundColor": {
|
|
261
286
|
"type": "string"
|
|
262
287
|
},
|
|
@@ -479,5 +504,5 @@ module.exports = {
|
|
|
479
504
|
}
|
|
480
505
|
},
|
|
481
506
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
482
|
-
"$version":
|
|
507
|
+
"$version": 1641386684031
|
|
483
508
|
}
|
|
@@ -389,6 +389,13 @@ module.exports = {
|
|
|
389
389
|
"additionalProperties": {
|
|
390
390
|
"type": "string"
|
|
391
391
|
}
|
|
392
|
+
},
|
|
393
|
+
"renderer": {
|
|
394
|
+
"enum": [
|
|
395
|
+
"skyline",
|
|
396
|
+
"webview"
|
|
397
|
+
],
|
|
398
|
+
"type": "string"
|
|
392
399
|
}
|
|
393
400
|
},
|
|
394
401
|
"additionalProperties": false
|
|
@@ -444,6 +451,9 @@ module.exports = {
|
|
|
444
451
|
"backgroundColorBottom": {
|
|
445
452
|
"type": "string"
|
|
446
453
|
},
|
|
454
|
+
"backgroundColorContent": {
|
|
455
|
+
"type": "string"
|
|
456
|
+
},
|
|
447
457
|
"usingComponents": {
|
|
448
458
|
"type": "object",
|
|
449
459
|
"additionalProperties": {
|
|
@@ -479,6 +489,13 @@ module.exports = {
|
|
|
479
489
|
],
|
|
480
490
|
"type": "string"
|
|
481
491
|
},
|
|
492
|
+
"renderer": {
|
|
493
|
+
"enum": [
|
|
494
|
+
"skyline",
|
|
495
|
+
"webview"
|
|
496
|
+
],
|
|
497
|
+
"type": "string"
|
|
498
|
+
},
|
|
482
499
|
"component": {
|
|
483
500
|
"type": "boolean"
|
|
484
501
|
},
|
|
@@ -523,6 +540,9 @@ module.exports = {
|
|
|
523
540
|
"backgroundColorBottom": {
|
|
524
541
|
"type": "string"
|
|
525
542
|
},
|
|
543
|
+
"backgroundColorContent": {
|
|
544
|
+
"type": "string"
|
|
545
|
+
},
|
|
526
546
|
"backgroundColor": {
|
|
527
547
|
"type": "string"
|
|
528
548
|
},
|
|
@@ -745,5 +765,5 @@ module.exports = {
|
|
|
745
765
|
}
|
|
746
766
|
},
|
|
747
767
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
748
|
-
"$version":
|
|
768
|
+
"$version": 1631795974263
|
|
749
769
|
}
|
|
@@ -90,6 +90,34 @@ module.exports = {
|
|
|
90
90
|
"additionalProperties": {
|
|
91
91
|
"$ref": "#/definitions/IPluginConfig"
|
|
92
92
|
}
|
|
93
|
+
},
|
|
94
|
+
"resizable": {
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
},
|
|
97
|
+
"lockStepOptions": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"gameTick": {
|
|
101
|
+
"type": "number"
|
|
102
|
+
},
|
|
103
|
+
"heartBeatTick": {
|
|
104
|
+
"type": "number"
|
|
105
|
+
},
|
|
106
|
+
"offlineTimeLength": {
|
|
107
|
+
"type": "number"
|
|
108
|
+
},
|
|
109
|
+
"UDPReliabilityStrategy": {
|
|
110
|
+
"type": "number"
|
|
111
|
+
},
|
|
112
|
+
"dataType": {
|
|
113
|
+
"enum": [
|
|
114
|
+
"ArrayBuffer",
|
|
115
|
+
"String"
|
|
116
|
+
],
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"additionalProperties": false
|
|
93
121
|
}
|
|
94
122
|
},
|
|
95
123
|
"additionalProperties": false,
|
|
@@ -159,5 +187,5 @@ module.exports = {
|
|
|
159
187
|
}
|
|
160
188
|
},
|
|
161
189
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
162
|
-
"$version":
|
|
190
|
+
"$version": 1634549592232
|
|
163
191
|
}
|
|
@@ -139,6 +139,13 @@ module.exports = {
|
|
|
139
139
|
"additionalProperties": {
|
|
140
140
|
"type": "string"
|
|
141
141
|
}
|
|
142
|
+
},
|
|
143
|
+
"renderer": {
|
|
144
|
+
"enum": [
|
|
145
|
+
"skyline",
|
|
146
|
+
"webview"
|
|
147
|
+
],
|
|
148
|
+
"type": "string"
|
|
142
149
|
}
|
|
143
150
|
},
|
|
144
151
|
"additionalProperties": false,
|
|
@@ -194,6 +201,9 @@ module.exports = {
|
|
|
194
201
|
"backgroundColorBottom": {
|
|
195
202
|
"type": "string"
|
|
196
203
|
},
|
|
204
|
+
"backgroundColorContent": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
197
207
|
"usingComponents": {
|
|
198
208
|
"type": "object",
|
|
199
209
|
"additionalProperties": {
|
|
@@ -229,6 +239,13 @@ module.exports = {
|
|
|
229
239
|
],
|
|
230
240
|
"type": "string"
|
|
231
241
|
},
|
|
242
|
+
"renderer": {
|
|
243
|
+
"enum": [
|
|
244
|
+
"skyline",
|
|
245
|
+
"webview"
|
|
246
|
+
],
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
232
249
|
"component": {
|
|
233
250
|
"type": "boolean"
|
|
234
251
|
},
|
|
@@ -266,5 +283,5 @@ module.exports = {
|
|
|
266
283
|
}
|
|
267
284
|
},
|
|
268
285
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
269
|
-
"$version":
|
|
286
|
+
"$version": 1640574774060
|
|
270
287
|
}
|
|
@@ -7,6 +7,12 @@ module.exports = {
|
|
|
7
7
|
"pluginRoot": {
|
|
8
8
|
"type": "string"
|
|
9
9
|
},
|
|
10
|
+
"pluginAppid": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"jsserverRoot": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
10
16
|
"packOptions": {
|
|
11
17
|
"type": "object",
|
|
12
18
|
"properties": {
|
|
@@ -28,6 +34,37 @@ module.exports = {
|
|
|
28
34
|
"value"
|
|
29
35
|
]
|
|
30
36
|
}
|
|
37
|
+
},
|
|
38
|
+
"include": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"type": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"value": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": [
|
|
52
|
+
"type",
|
|
53
|
+
"value"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
"watchOptions": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"ignore": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
31
68
|
}
|
|
32
69
|
},
|
|
33
70
|
"additionalProperties": false
|
|
@@ -50,5 +87,5 @@ module.exports = {
|
|
|
50
87
|
},
|
|
51
88
|
"additionalProperties": false,
|
|
52
89
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
53
|
-
"$version":
|
|
90
|
+
"$version": 1640574774061
|
|
54
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miniprogram-ci",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "pre compilation module about the miniProgram / miniGame project extracted from WeChatDevtools.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/@types/index.d.ts",
|
|
@@ -41,28 +41,26 @@
|
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@tencent/eslint-config-tencent": "^1.0.0-beta.5",
|
|
44
|
-
"@types/autoprefixer": "^9.6.1",
|
|
45
44
|
"@types/babel-code-frame": "^6.20.2",
|
|
46
45
|
"@types/babel-core": "^6.25.6",
|
|
47
|
-
"@types/babel__core": "^7.1.
|
|
48
|
-
"@types/cssnano": "^4.0.
|
|
46
|
+
"@types/babel__core": "^7.1.17",
|
|
47
|
+
"@types/cssnano": "^4.0.1",
|
|
49
48
|
"@types/estree": "0.0.47",
|
|
50
49
|
"@types/fs-extra": "^8.0.0",
|
|
51
|
-
"@types/glob": "^7.
|
|
50
|
+
"@types/glob": "^7.2.0",
|
|
52
51
|
"@types/html-minifier": "^3.5.3",
|
|
53
52
|
"@types/jest": "^26.0.20",
|
|
54
|
-
"@types/less": "^3.0.
|
|
55
|
-
"@types/lodash": "^4.14.
|
|
56
|
-
"@types/node": "^
|
|
57
|
-
"@types/node-sass": "^4.11.1",
|
|
53
|
+
"@types/less": "^3.0.3",
|
|
54
|
+
"@types/lodash": "^4.14.178",
|
|
55
|
+
"@types/node": "^13.13.52",
|
|
58
56
|
"@types/read-package-tree": "^5.2.0",
|
|
59
57
|
"@types/request": "^2.48.3",
|
|
60
58
|
"@types/rimraf": "^3.0.0",
|
|
61
|
-
"@types/sass": "^1.
|
|
59
|
+
"@types/sass": "^1.43.1",
|
|
62
60
|
"@types/uglify-js": "^3.0.4",
|
|
63
61
|
"@types/yargs": "^13.0.3",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
65
|
-
"@typescript-eslint/parser": "^4.
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
63
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
66
64
|
"chai": "^4.2.0",
|
|
67
65
|
"chai-as-promised": "^7.1.1",
|
|
68
66
|
"eslint": "^7.20.0",
|
|
@@ -73,7 +71,7 @@
|
|
|
73
71
|
"mochawesome": "^4.1.0",
|
|
74
72
|
"nyc": "^14.1.1",
|
|
75
73
|
"ts-jest": "^26.5.2",
|
|
76
|
-
"typescript": "^4.
|
|
74
|
+
"typescript": "^4.5.3",
|
|
77
75
|
"typescript-json-schema": "^0.41.0"
|
|
78
76
|
},
|
|
79
77
|
"dependencies": {
|
|
@@ -87,21 +85,23 @@
|
|
|
87
85
|
"@babel/plugin-proposal-function-bind": "7.12.1",
|
|
88
86
|
"@babel/plugin-proposal-function-sent": "7.12.1",
|
|
89
87
|
"@babel/plugin-proposal-pipeline-operator": "7.12.1",
|
|
88
|
+
"@babel/plugin-proposal-private-methods": "7.12.1",
|
|
90
89
|
"@babel/plugin-proposal-throw-expressions": "7.12.1",
|
|
90
|
+
"@babel/plugin-transform-modules-commonjs": "^7.15.4",
|
|
91
91
|
"@babel/plugin-transform-runtime": "7.12.1",
|
|
92
|
-
"@babel/plugin-transform-typescript": "^7.
|
|
92
|
+
"@babel/plugin-transform-typescript": "^7.16.1",
|
|
93
93
|
"@babel/preset-env": "7.12.1",
|
|
94
94
|
"@babel/runtime": "7.12.1",
|
|
95
95
|
"@vue/reactivity": "3.0.5",
|
|
96
96
|
"acorn": "^6.1.1",
|
|
97
|
-
"autoprefixer": "^
|
|
97
|
+
"autoprefixer": "^10.4.0",
|
|
98
98
|
"babel-code-frame": "6.26.0",
|
|
99
99
|
"babel-core": "6.26.0",
|
|
100
100
|
"babel-preset-es2015": "6.24.1",
|
|
101
101
|
"babel-preset-stage-0": "6.24.1",
|
|
102
102
|
"chokidar": "^3.5.1",
|
|
103
|
-
"cos-nodejs-sdk-v5": "^2.
|
|
104
|
-
"cssnano": "
|
|
103
|
+
"cos-nodejs-sdk-v5": "^2.11.4",
|
|
104
|
+
"cssnano": "^5.0.12",
|
|
105
105
|
"eventemitter3": "^4.0.5",
|
|
106
106
|
"fs-extra": "8.1.0",
|
|
107
107
|
"get-proxy": "^2.1.0",
|
|
@@ -110,21 +110,19 @@
|
|
|
110
110
|
"jimp": "^0.9.3",
|
|
111
111
|
"jsonschema": "^1.2.5",
|
|
112
112
|
"jszip": "^3.4.0",
|
|
113
|
-
"less": "^4.1.
|
|
113
|
+
"less": "^4.1.2",
|
|
114
|
+
"licia": "^1.31.1",
|
|
114
115
|
"lodash": "^4.17.15",
|
|
115
116
|
"memory-fs": "^0.5.0",
|
|
116
117
|
"minimatch": "3.0.4",
|
|
117
|
-
"moment-timezone": "^0.5.
|
|
118
|
-
"
|
|
119
|
-
"postcss": "^7.0.35",
|
|
118
|
+
"moment-timezone": "^0.5.34",
|
|
119
|
+
"postcss": "^8.4.4",
|
|
120
120
|
"qrcode-reader": "^1.0.4",
|
|
121
121
|
"qrcode-terminal": "^0.12.0",
|
|
122
122
|
"read-package-tree": "5.2.1",
|
|
123
123
|
"request": "^2.81.2",
|
|
124
124
|
"rimraf": "^3.0.2",
|
|
125
|
-
"
|
|
126
|
-
"rollup-plugin-postcss": "^4.0.0",
|
|
127
|
-
"sass": "^1.35.2",
|
|
125
|
+
"sass": "^1.44.0",
|
|
128
126
|
"source-map": "0.6.1",
|
|
129
127
|
"terser": "4.8.0",
|
|
130
128
|
"tslib": "1.10.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Graph } from '../graph/base';
|
|
2
|
-
import { SummerCompiler } from '../summer';
|
|
3
|
-
import { IDevtoolProject } from '../types';
|
|
4
|
-
export declare function resolvePath(currentPath: string, targetPath: string): string;
|
|
5
|
-
declare type JSONType = 'App' | 'Page' | 'Comp' | 'Sitemap';
|
|
6
|
-
interface RawJSONCacheItem {
|
|
7
|
-
id: string;
|
|
8
|
-
type: JSONType;
|
|
9
|
-
json: any;
|
|
10
|
-
depFileId: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class AppConf {
|
|
13
|
-
private compiler;
|
|
14
|
-
graph: Graph;
|
|
15
|
-
rawJSON: Map<string, RawJSONCacheItem>;
|
|
16
|
-
app: any;
|
|
17
|
-
packages: Map<string, any>;
|
|
18
|
-
pages: Map<string, any>;
|
|
19
|
-
comps: Map<string, any>;
|
|
20
|
-
sitemap: any;
|
|
21
|
-
theme: any;
|
|
22
|
-
proxyProject: IDevtoolProject;
|
|
23
|
-
constructor(compiler: SummerCompiler, graph: Graph);
|
|
24
|
-
build(): Promise<void>;
|
|
25
|
-
onFileChange: (type: 'unlink' | 'unlinkDir' | 'add' | 'addDir' | 'change', path: string) => void;
|
|
26
|
-
private resetState;
|
|
27
|
-
private loadApp;
|
|
28
|
-
private loadPage;
|
|
29
|
-
private loadComp;
|
|
30
|
-
private loadSitemap;
|
|
31
|
-
private loadTheme;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export default class BasicEvaluatedExpression {
|
|
2
|
-
type: number;
|
|
3
|
-
range: null;
|
|
4
|
-
falsy: boolean;
|
|
5
|
-
truthy: boolean;
|
|
6
|
-
bool: null;
|
|
7
|
-
number: null;
|
|
8
|
-
regExp: null;
|
|
9
|
-
string: null;
|
|
10
|
-
quasis: null;
|
|
11
|
-
parts: null;
|
|
12
|
-
array: null;
|
|
13
|
-
items: null;
|
|
14
|
-
options: null;
|
|
15
|
-
prefix: null;
|
|
16
|
-
postfix: null;
|
|
17
|
-
wrappedInnerExpressions: null;
|
|
18
|
-
expression: null;
|
|
19
|
-
constructor();
|
|
20
|
-
isNull(): boolean;
|
|
21
|
-
isString(): boolean;
|
|
22
|
-
isNumber(): boolean;
|
|
23
|
-
isBoolean(): boolean;
|
|
24
|
-
isRegExp(): boolean;
|
|
25
|
-
isConditional(): boolean;
|
|
26
|
-
isArray(): boolean;
|
|
27
|
-
isConstArray(): boolean;
|
|
28
|
-
isIdentifier(): boolean;
|
|
29
|
-
isWrapped(): boolean;
|
|
30
|
-
isTemplateString(): boolean;
|
|
31
|
-
isTruthy(): boolean;
|
|
32
|
-
isFalsy(): boolean;
|
|
33
|
-
asBool(): boolean | null | undefined;
|
|
34
|
-
asString(): string | null | undefined;
|
|
35
|
-
setString(string: any): this;
|
|
36
|
-
setNull(): this;
|
|
37
|
-
setNumber(number: any): this;
|
|
38
|
-
setBoolean(bool: any): this;
|
|
39
|
-
setRegExp(regExp: any): this;
|
|
40
|
-
setIdentifier(identifier: any): this;
|
|
41
|
-
setWrapped(prefix: any, postfix: any, innerExpressions: any): this;
|
|
42
|
-
setOptions(options: any): this;
|
|
43
|
-
addOptions(options: any): this;
|
|
44
|
-
setItems(items: any): this;
|
|
45
|
-
setArray(array: any): this;
|
|
46
|
-
setTemplateString(quasis: any, parts: any, kind: any): this;
|
|
47
|
-
setTruthy(): this;
|
|
48
|
-
setFalsy(): this;
|
|
49
|
-
setRange(range: any): this;
|
|
50
|
-
setExpression(expression: any): this;
|
|
51
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Expression } from "estree";
|
|
2
|
-
import JavascriptParser from "./Parser";
|
|
3
|
-
import BasicEvaluatedExpression from "./BasicEvaluatedExpression";
|
|
4
|
-
export declare function collectContextDependency(param: BasicEvaluatedExpression, expr: Expression, parser: JavascriptParser): void;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import JavascriptParser from "./Parser";
|
|
2
|
-
import { Expression, SpreadElement, UnaryExpression, BinaryExpression, LogicalExpression, ConditionalExpression, TemplateLiteral, Literal, TaggedTemplateExpression, MemberExpression, ThisExpression, Identifier, Super } from "estree";
|
|
3
|
-
declare type EvaluateHook<T> = (expr: T) => any;
|
|
4
|
-
declare type EvaluateTypeofHook<T> = (expr: T) => any;
|
|
5
|
-
export declare class Evaluator {
|
|
6
|
-
parser: JavascriptParser;
|
|
7
|
-
hooks: {
|
|
8
|
-
evaluate: {
|
|
9
|
-
Literal: EvaluateHook<Literal>;
|
|
10
|
-
LogicalExpression: EvaluateHook<LogicalExpression>;
|
|
11
|
-
BinaryExpression: EvaluateHook<BinaryExpression>;
|
|
12
|
-
UnaryExpression: EvaluateHook<UnaryExpression>;
|
|
13
|
-
Identifier: EvaluateHook<Identifier>;
|
|
14
|
-
ThisExpression: EvaluateHook<ThisExpression>;
|
|
15
|
-
MemberExpression: EvaluateHook<MemberExpression>;
|
|
16
|
-
TemplateLiteral: EvaluateHook<TemplateLiteral>;
|
|
17
|
-
TaggedTemplateExpression: EvaluateHook<TaggedTemplateExpression>;
|
|
18
|
-
ConditionalExpression: EvaluateHook<ConditionalExpression>;
|
|
19
|
-
};
|
|
20
|
-
evaluateTypeof: {
|
|
21
|
-
require: EvaluateTypeofHook<Identifier>;
|
|
22
|
-
undefined: EvaluateTypeofHook<Identifier>;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
constructor(parser: JavascriptParser);
|
|
26
|
-
initializeEvaluating(): void;
|
|
27
|
-
evaluateExpression(expression: Expression | SpreadElement | Super): any;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import StackedSetMap from "./StackedSetMap";
|
|
2
|
-
import { ParserState } from "./types";
|
|
3
|
-
import { Evaluator } from './Evaluator';
|
|
4
|
-
import { Program, BlockStatement, ExpressionStatement, IfStatement, LabeledStatement, WithStatement, SwitchStatement, ReturnStatement, ThrowStatement, TryStatement, WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, Declaration, FunctionDeclaration, ClassDeclaration, MethodDefinition, ImportDeclaration, ExportNamedDeclaration, ExportAllDeclaration, ExportDefaultDeclaration, SwitchCase, CatchClause, Pattern as ESTreePattern, AssignmentPattern, ObjectPattern, ArrayPattern, RestElement, Expression, AwaitExpression, ArrayExpression, SpreadElement, ObjectExpression, FunctionExpression, ArrowFunctionExpression, SequenceExpression, UpdateExpression, UnaryExpression, BinaryExpression, LogicalExpression, AssignmentExpression, ConditionalExpression, NewExpression, CallExpression, ClassExpression, YieldExpression, TemplateLiteral, TaggedTemplateExpression, MemberExpression, Identifier, AssignmentProperty, VariableDeclaration, Super } from "estree";
|
|
5
|
-
interface Scope {
|
|
6
|
-
topLevelScope: boolean;
|
|
7
|
-
inTry: boolean;
|
|
8
|
-
inShorthand: boolean;
|
|
9
|
-
isStrict: boolean;
|
|
10
|
-
isAsmJs: boolean;
|
|
11
|
-
definitions: StackedSetMap;
|
|
12
|
-
renames: StackedSetMap;
|
|
13
|
-
}
|
|
14
|
-
declare type Statement = Program["body"][number];
|
|
15
|
-
declare type Pattern = ESTreePattern | AssignmentProperty | null;
|
|
16
|
-
declare type OnIndent = (name: string, pattern?: Pattern) => void;
|
|
17
|
-
export interface Es6ParserContext {
|
|
18
|
-
isLayaGame: boolean;
|
|
19
|
-
}
|
|
20
|
-
export default class ES6Parser {
|
|
21
|
-
scope: Scope;
|
|
22
|
-
state: ParserState;
|
|
23
|
-
evaluator: Evaluator;
|
|
24
|
-
parserContext: Es6ParserContext;
|
|
25
|
-
constructor(parserContext: Es6ParserContext);
|
|
26
|
-
parse(source: string | Program): ParserState;
|
|
27
|
-
static parse(code: string): Program;
|
|
28
|
-
detectMode(statements: Statement[]): void;
|
|
29
|
-
getRenameIdentifier(expr: Expression | SpreadElement): any;
|
|
30
|
-
walkClass(classy: ClassExpression | ClassDeclaration): void;
|
|
31
|
-
walkMethodDefinition(methodDefinition: MethodDefinition): void;
|
|
32
|
-
prewalkStatements(statements: Statement[]): void;
|
|
33
|
-
blockPrewalkStatements(statements: Statement[]): void;
|
|
34
|
-
walkStatements(statements: Statement[]): void;
|
|
35
|
-
prewalkStatement(statement: Statement): void;
|
|
36
|
-
blockPrewalkStatement(statement: Statement): void;
|
|
37
|
-
walkStatement(statement: Statement): void;
|
|
38
|
-
prewalkBlockStatement(statement: BlockStatement): void;
|
|
39
|
-
walkBlockStatement(statement: BlockStatement): void;
|
|
40
|
-
walkExpressionStatement(statement: ExpressionStatement): void;
|
|
41
|
-
prewalkIfStatement(statement: IfStatement): void;
|
|
42
|
-
walkIfStatement(statement: IfStatement): void;
|
|
43
|
-
prewalkLabeledStatement(statement: LabeledStatement): void;
|
|
44
|
-
walkLabeledStatement(statement: LabeledStatement): void;
|
|
45
|
-
prewalkWithStatement(statement: WithStatement): void;
|
|
46
|
-
walkWithStatement(statement: WithStatement): void;
|
|
47
|
-
prewalkSwitchStatement(statement: SwitchStatement): void;
|
|
48
|
-
walkSwitchStatement(statement: SwitchStatement): void;
|
|
49
|
-
walkTerminatingStatement(statement: ReturnStatement | ThrowStatement): void;
|
|
50
|
-
walkReturnStatement(statement: ReturnStatement): void;
|
|
51
|
-
walkThrowStatement(statement: ThrowStatement): void;
|
|
52
|
-
prewalkTryStatement(statement: TryStatement): void;
|
|
53
|
-
walkTryStatement(statement: TryStatement): void;
|
|
54
|
-
prewalkWhileStatement(statement: WhileStatement): void;
|
|
55
|
-
walkWhileStatement(statement: WhileStatement): void;
|
|
56
|
-
prewalkDoWhileStatement(statement: DoWhileStatement): void;
|
|
57
|
-
walkDoWhileStatement(statement: DoWhileStatement): void;
|
|
58
|
-
prewalkForStatement(statement: ForStatement): void;
|
|
59
|
-
walkForStatement(statement: ForStatement): void;
|
|
60
|
-
prewalkForInStatement(statement: ForInStatement): void;
|
|
61
|
-
walkForInStatement(statement: ForInStatement): void;
|
|
62
|
-
prewalkForOfStatement(statement: ForOfStatement): void;
|
|
63
|
-
walkForOfStatement(statement: ForOfStatement): void;
|
|
64
|
-
prewalkFunctionDeclaration(statement: FunctionDeclaration): void;
|
|
65
|
-
walkFunctionDeclaration(statement: FunctionDeclaration): void;
|
|
66
|
-
prewalkImportDeclaration(statement: ImportDeclaration): void;
|
|
67
|
-
enterDeclaration(declaration: Declaration, onIdent: OnIndent): void;
|
|
68
|
-
blockPrewalkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
|
|
69
|
-
prewalkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
|
|
70
|
-
walkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
|
|
71
|
-
blockPrewalkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
|
|
72
|
-
prewalkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
|
|
73
|
-
walkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
|
|
74
|
-
prewalkExportAllDeclaration(statement: ExportAllDeclaration): void;
|
|
75
|
-
prewalkVariableDeclaration(statement: VariableDeclaration): void;
|
|
76
|
-
blockPrewalkVariableDeclaration(statement: VariableDeclaration): void;
|
|
77
|
-
_prewalkVariableDeclaration(statement: VariableDeclaration): void;
|
|
78
|
-
walkVariableDeclaration(statement: VariableDeclaration): void;
|
|
79
|
-
blockPrewalkClassDeclaration(statement: ClassDeclaration): void;
|
|
80
|
-
walkClassDeclaration(statement: ClassDeclaration): void;
|
|
81
|
-
prewalkSwitchCases(switchCases: SwitchCase[]): void;
|
|
82
|
-
walkSwitchCases(switchCases: SwitchCase[]): void;
|
|
83
|
-
walkCatchClause(catchClause: CatchClause): void;
|
|
84
|
-
walkPattern(pattern: NonNullable<Pattern>): void;
|
|
85
|
-
walkAssignmentPattern(pattern: AssignmentPattern): void;
|
|
86
|
-
walkObjectPattern(pattern: ObjectPattern): void;
|
|
87
|
-
walkArrayPattern(pattern: ArrayPattern): void;
|
|
88
|
-
walkRestElement(pattern: RestElement): void;
|
|
89
|
-
walkExpressions(expressions: Array<Expression | SpreadElement | Super>): void;
|
|
90
|
-
walkExpression(expression: Expression | SpreadElement | Super): void;
|
|
91
|
-
walkAwaitExpression(expression: AwaitExpression): void;
|
|
92
|
-
walkArrayExpression(expression: ArrayExpression): void;
|
|
93
|
-
walkSpreadElement(expression: SpreadElement): void;
|
|
94
|
-
walkObjectExpression(expression: ObjectExpression): void;
|
|
95
|
-
walkFunctionExpression(expression: FunctionExpression): void;
|
|
96
|
-
walkArrowFunctionExpression(expression: ArrowFunctionExpression): void;
|
|
97
|
-
walkSequenceExpression(expression: SequenceExpression): void;
|
|
98
|
-
walkUpdateExpression(expression: UpdateExpression): void;
|
|
99
|
-
walkUnaryExpression(expression: UnaryExpression): void;
|
|
100
|
-
walkLeftRightExpression(expression: BinaryExpression | LogicalExpression): void;
|
|
101
|
-
walkBinaryExpression(expression: BinaryExpression): void;
|
|
102
|
-
walkLogicalExpression(expression: LogicalExpression): void;
|
|
103
|
-
walkAssignmentExpression(expression: AssignmentExpression): void;
|
|
104
|
-
walkConditionalExpression(expression: ConditionalExpression): void;
|
|
105
|
-
walkNewExpression(expression: NewExpression): void;
|
|
106
|
-
walkYieldExpression(expression: YieldExpression): void;
|
|
107
|
-
walkTemplateLiteral(expression: TemplateLiteral): void;
|
|
108
|
-
walkTaggedTemplateExpression(expression: TaggedTemplateExpression): void;
|
|
109
|
-
walkClassExpression(expression: ClassExpression): void;
|
|
110
|
-
_walkIIFE(functionExpression: FunctionExpression, options: Array<Expression | SpreadElement>, currentThis: Expression | SpreadElement | null): void;
|
|
111
|
-
walkCallExpression(expression: CallExpression): void;
|
|
112
|
-
walkMemberExpression(expression: MemberExpression): void;
|
|
113
|
-
walkIdentifier(expression: Identifier): void;
|
|
114
|
-
inFunctionScope(hasThis: boolean, params: Array<ESTreePattern | string>, fn: () => void): void;
|
|
115
|
-
inBlockScope(fn: () => void): void;
|
|
116
|
-
enterPatterns(patterns: Array<Pattern | string>, onIdent: OnIndent): void;
|
|
117
|
-
enterPattern(pattern: Pattern, onIdent: OnIndent): void;
|
|
118
|
-
enterIdentifier(pattern: Identifier, onIdent: OnIndent): void;
|
|
119
|
-
enterObjectPattern(pattern: ObjectPattern, onIdent: OnIndent): void;
|
|
120
|
-
enterArrayPattern(pattern: ArrayPattern, onIdent: OnIndent): void;
|
|
121
|
-
enterRestElement(pattern: RestElement, onIdent: OnIndent): void;
|
|
122
|
-
enterAssignmentPattern(pattern: AssignmentPattern, onIdent: OnIndent): void;
|
|
123
|
-
getNameForExpression(expression: Expression): {
|
|
124
|
-
name: any;
|
|
125
|
-
nameGeneral: string;
|
|
126
|
-
free: boolean;
|
|
127
|
-
} | null;
|
|
128
|
-
evaluateExpression(expression: Expression | SpreadElement | Super): any;
|
|
129
|
-
trackHarmonyExportImport(expr: ExportAllDeclaration | ExportNamedDeclaration): void;
|
|
130
|
-
trackHarmonyImport(expr: ImportDeclaration): void;
|
|
131
|
-
trackImportOrRequireCall(expr: CallExpression, type: "import" | "require"): boolean;
|
|
132
|
-
warnRequireExpression(expr: Expression): boolean;
|
|
133
|
-
}
|
|
134
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default class StackedSetMap {
|
|
2
|
-
constructor(parentStack?: any);
|
|
3
|
-
add(item: any): void;
|
|
4
|
-
set(item: any, value: any): void;
|
|
5
|
-
delete(item: any): void;
|
|
6
|
-
has(item: any): boolean;
|
|
7
|
-
get(item: any): any;
|
|
8
|
-
_compress(): void;
|
|
9
|
-
asArray(): any[];
|
|
10
|
-
asSet(): Set<any>;
|
|
11
|
-
asPairArray(): unknown[];
|
|
12
|
-
asMap(): Map<unknown, unknown>;
|
|
13
|
-
get size(): any;
|
|
14
|
-
createChild(): StackedSetMap;
|
|
15
|
-
get length(): void;
|
|
16
|
-
set length(value: void);
|
|
17
|
-
}
|