miniprogram-ci 1.9.27 → 2.0.1
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 +6 -169
- package/README.md +12 -7
- package/bin/.DS_Store +0 -0
- package/bin/miniprogram-ci.js +1 -1
- package/dist/@types/ci/checkCodeQuality.d.ts +2 -2
- package/dist/@types/ci/cloud/cloudapi.d.ts +7 -0
- package/dist/@types/ci/cloud/createTimeTrigger.d.ts +13 -0
- package/dist/@types/ci/cloud/uploadContainer.d.ts +71 -0
- package/dist/@types/ci/cloud/uploadFile.d.ts +9 -0
- package/dist/@types/ci/cloud/uploadFunction.d.ts +13 -0
- package/dist/@types/ci/cloud/utils.d.ts +17 -0
- package/dist/@types/ci/code-analyse.d.ts +1 -1
- package/dist/@types/ci/getcompiler.d.ts +5 -0
- package/dist/@types/ci/index.d.ts +39 -0
- package/dist/@types/ci/project.d.ts +1 -47
- package/dist/@types/ci/utils/codeDenpendencyQualityChecker.d.ts +1 -1
- package/dist/@types/ci/utils/tools.d.ts +5 -0
- package/dist/@types/cli/cmdForDonutH5.d.ts +22 -0
- package/dist/@types/common/cloud-api/src/apis/tcb/tcb.apis.d.ts +180 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/account.contracts.d.ts +2 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/contracts.d.ts +9 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/lowcode.contracts.d.ts +3 -0
- package/dist/@types/common/cloud-api/src/transaction/contracts/tcb.contracts.d.ts +183 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/account.validations.d.ts +2 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/common.validations.d.ts +118 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/lowcode.validations.d.ts +3 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/tcb.validations.d.ts +188 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/validations.d.ts +8 -0
- package/dist/@types/common/code-analyse/index.d.ts +371 -0
- package/dist/@types/config/compiletype.config.d.ts +17 -0
- package/dist/@types/config/config.d.ts +93 -0
- package/dist/@types/config/define.d.ts +5 -0
- package/dist/@types/config/url.config.d.ts +25 -0
- package/dist/@types/index.d.ts +27 -38
- package/dist/@types/modules/corecompiler/baseCompiler.d.ts +132 -0
- package/dist/@types/modules/corecompiler/original/analyse/partial.d.ts +25 -0
- package/dist/@types/modules/corecompiler/original/compile/common.d.ts +17 -0
- package/dist/@types/modules/corecompiler/original/compile/game.d.ts +5 -0
- package/dist/@types/modules/corecompiler/original/compile/gamePlugin.d.ts +8 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/js.d.ts +15 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/mpjson.d.ts +10 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/wxml.d.ts +9 -0
- package/dist/@types/modules/corecompiler/original/compile/handler/wxss.d.ts +10 -0
- package/dist/@types/modules/corecompiler/original/compile/index.d.ts +5 -0
- package/dist/@types/modules/corecompiler/original/compile/miniprogram.d.ts +5 -0
- package/dist/@types/modules/corecompiler/original/compile/miniprogramPlugin.d.ts +8 -0
- package/dist/@types/modules/corecompiler/original/index.d.ts +51 -0
- package/dist/@types/modules/corecompiler/original/js/index.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/js/minifyjs.d.ts +16 -0
- package/dist/@types/modules/corecompiler/original/js/minifyjsAfterWrap.d.ts +12 -0
- package/dist/@types/modules/corecompiler/original/json/app/appJSON.d.ts +6 -0
- package/dist/@types/modules/corecompiler/original/json/app/checkAppFields.d.ts +43 -0
- package/dist/@types/modules/corecompiler/original/json/app/extJSON.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/json/app/index.d.ts +4 -0
- package/dist/@types/modules/corecompiler/original/json/common.d.ts +19 -0
- package/dist/@types/modules/corecompiler/original/json/game.d.ts +4 -0
- package/dist/@types/modules/corecompiler/original/json/page/checkPageJSON.d.ts +6 -0
- package/dist/@types/modules/corecompiler/original/json/page/getPageJSON.d.ts +14 -0
- package/dist/@types/modules/corecompiler/original/json/plugin/plugin.d.ts +12 -0
- package/dist/@types/modules/corecompiler/original/json/plugin/pluginPage.d.ts +9 -0
- package/dist/@types/modules/corecompiler/original/json/projectconfig.d.ts +2 -0
- package/dist/@types/modules/corecompiler/original/json/reactiveCache.d.ts +24 -0
- package/dist/@types/modules/corecompiler/original/json/signaturejson.d.ts +21 -0
- package/dist/@types/modules/corecompiler/original/json/sitemap.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/json/theme.d.ts +18 -0
- package/dist/@types/modules/corecompiler/original/npm/packnpm.d.ts +13 -0
- package/dist/@types/modules/corecompiler/original/protect/uglifyfilenames.d.ts +9 -0
- package/dist/@types/modules/corecompiler/original/utils/env.d.ts +7 -0
- package/dist/@types/modules/corecompiler/original/validate/appjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/extjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/gamejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/gamepluginjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/pagejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/pluginjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/pluginpagejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/projectconfig.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/schemaValidate.d.ts +8 -0
- package/dist/@types/modules/corecompiler/original/validate/signaturejson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/validate/sitemapjson.d.ts +3 -0
- package/dist/@types/modules/corecompiler/original/workerThread/childprocessManager.d.ts +16 -0
- package/dist/@types/modules/corecompiler/original/workerThread/index.d.ts +4 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/compilejs.d.ts +43 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/compilewxss.d.ts +21 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/index.d.ts +2 -0
- package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +46 -0
- package/dist/@types/modules/corecompiler/original/workerThread/workerManager.d.ts +19 -0
- package/dist/@types/modules/corecompiler/originalCompiler.d.ts +106 -0
- package/dist/@types/modules/corecompiler/summer/graph/appconf.d.ts +36 -0
- package/dist/@types/modules/corecompiler/summer/graph/appgraph.d.ts +24 -0
- package/dist/@types/modules/corecompiler/summer/graph/baseconf.d.ts +16 -0
- package/dist/@types/modules/corecompiler/summer/graph/basegraph.d.ts +88 -0
- package/dist/@types/modules/corecompiler/summer/graph/gameconf.d.ts +20 -0
- package/dist/@types/modules/corecompiler/summer/graph/gamegraph.d.ts +24 -0
- package/dist/@types/modules/corecompiler/summer/graph/gamepluginconf.d.ts +11 -0
- package/dist/@types/modules/corecompiler/summer/graph/gameplugingraph.d.ts +23 -0
- package/dist/@types/modules/corecompiler/summer/graph/pluginconf.d.ts +21 -0
- package/dist/@types/modules/corecompiler/summer/graph/plugingraph.d.ts +23 -0
- package/dist/@types/modules/corecompiler/summer/graph/util.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/index.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/initPlugin.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/module.d.ts +44 -0
- package/dist/@types/modules/corecompiler/summer/persistCache.d.ts +13 -0
- package/dist/@types/modules/corecompiler/summer/pluginDriver.d.ts +45 -0
- package/dist/@types/modules/corecompiler/summer/pluginconfig.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/es6module.d.ts +21 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/javascript.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/swc.d.ts +6 -0
- package/dist/@types/modules/corecompiler/summer/plugins/base/wxss.d.ts +6 -0
- package/dist/@types/modules/corecompiler/summer/plugins/enhance.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/plugins/less.d.ts +5 -0
- package/dist/@types/modules/corecompiler/summer/plugins/minifywxml.d.ts +5 -0
- package/dist/@types/modules/corecompiler/summer/plugins/sass.d.ts +3 -0
- package/dist/@types/modules/corecompiler/summer/plugins/terser.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/plugins/typescript.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/plugins/worklet.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/resolver.d.ts +29 -0
- package/dist/@types/modules/corecompiler/summer/summer.d.ts +40 -0
- package/dist/@types/modules/corecompiler/summer/utils/ensureArray.d.ts +1 -0
- package/dist/@types/modules/corecompiler/summer/utils/inputsourcemap.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summer/worker.d.ts +16 -0
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +121 -0
- package/dist/@types/modules/createSummer.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/app/app.d.ts +74 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +32 -0
- package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +7 -0
- package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +48 -0
- package/dist/@types/modules/fullcompiler/filerules.d.ts +5 -0
- package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/index.d.ts +28 -0
- package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +13 -0
- package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +10 -0
- package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +21 -0
- package/dist/@types/modules/fullcompiler/trans/wcc/index.d.ts +2 -0
- package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +18 -0
- package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +11 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +12 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +14 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +9 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/handleError.d.ts +3 -0
- package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +41 -0
- package/dist/@types/modules/fullcompiler/utils/index.d.ts +4 -0
- package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +23 -0
- package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +40 -0
- package/dist/@types/modules/fullcompiler/utils/tools.d.ts +15 -0
- package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +1 -0
- package/dist/@types/modules/index.d.ts +52 -0
- package/dist/@types/modules/nativecompiler/android/adb.d.ts +7 -0
- package/dist/@types/modules/nativecompiler/android/device.d.ts +15 -0
- package/dist/@types/modules/nativecompiler/android/index.d.ts +17 -0
- package/dist/@types/modules/nativecompiler/android/projectconfig.d.ts +11 -0
- package/dist/@types/modules/nativecompiler/index.d.ts +32 -0
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +56 -0
- package/dist/@types/modules/nativecompiler/ios/device.d.ts +24 -0
- package/dist/@types/modules/nativecompiler/ios/index.d.ts +52 -0
- package/dist/@types/modules/nativecompiler/ios/projectconfig.d.ts +3 -0
- package/dist/@types/modules/nativecompiler/nativeCompiler.d.ts +40 -0
- package/dist/@types/modules/nativecompiler/nativeEntryProcess.d.ts +1 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/base.d.ts +27 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/json.d.ts +10 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/macro.d.ts +44 -0
- package/dist/@types/modules/precompiler/conditioncompile/compiler/plant.d.ts +10 -0
- package/dist/@types/modules/precompiler/conditioncompile/define.d.ts +18 -0
- package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +24 -0
- package/dist/@types/modules/precompiler/index.d.ts +10 -0
- package/dist/@types/project/advance/precompileProject.d.ts +35 -0
- package/dist/@types/project/advance/reactiveProject.d.ts +39 -0
- package/dist/@types/project/baseProject.d.ts +74 -0
- package/dist/@types/project/ciProject.d.ts +25 -0
- package/dist/@types/project/ciProjectWithMockBuffer.d.ts +11 -0
- package/dist/@types/project/devtoolsProject.d.ts +11 -0
- package/dist/@types/project/summerCPProject.d.ts +14 -0
- package/dist/@types/project/webProject.d.ts +10 -0
- package/dist/@types/types/ci.d.ts +182 -0
- package/dist/@types/types/core.d.ts +129 -0
- package/dist/@types/types/devtools.d.ts +220 -0
- package/dist/@types/types/index.d.ts +5 -169
- package/dist/@types/types/miniapp/index.d.ts +246 -0
- package/dist/@types/types/miniprogram-json/app.d.ts +26 -11
- package/dist/@types/types/miniprogram-json/index.d.ts +1 -0
- package/dist/@types/types/miniprogram-json/page.d.ts +5 -1
- package/dist/@types/types/miniprogram-json/plugin.d.ts +6 -1
- package/dist/@types/types/miniprogram-json/projectconfig.d.ts +6 -9
- package/dist/@types/types/summer.d.ts +161 -0
- package/dist/@types/utils/babel_helper.d.ts +7 -4
- package/dist/@types/utils/babel_plugin_worklet.d.ts +0 -1
- package/dist/@types/utils/codesign.d.ts +19 -0
- package/dist/@types/utils/common.d.ts +2 -4
- package/dist/@types/utils/cp.d.ts +3 -0
- package/dist/@types/utils/customError.d.ts +22 -0
- package/dist/@types/utils/download.d.ts +1 -0
- package/dist/@types/utils/env.d.ts +2 -0
- package/dist/@types/utils/expression.d.ts +61 -0
- package/dist/@types/utils/filerules.d.ts +0 -0
- package/dist/@types/utils/fs.d.ts +3 -3
- package/dist/@types/utils/fsagent.d.ts +9 -9
- package/dist/@types/utils/generateIpa.d.ts +2 -0
- package/dist/@types/utils/helper_util.d.ts +11 -0
- package/dist/@types/utils/interruptibletask.d.ts +4 -4
- package/dist/@types/utils/jsonlint.d.ts +2 -2
- package/dist/@types/utils/locales/locales.d.ts +18 -0
- package/dist/@types/utils/locales/zh.d.ts +18 -0
- package/dist/@types/utils/log.d.ts +13 -19
- package/dist/@types/utils/messageHub.d.ts +17 -0
- package/dist/@types/utils/miniapp-builder.d.ts +68 -0
- package/dist/@types/utils/miniappJson.d.ts +151 -0
- package/dist/@types/utils/packOptionsHelper.d.ts +17 -0
- package/dist/@types/utils/progressRecorder.d.ts +14 -0
- package/dist/@types/utils/request.d.ts +4 -4
- package/dist/@types/utils/signature.d.ts +13 -0
- package/dist/@types/utils/singletontask.d.ts +29 -0
- package/dist/@types/utils/subprocess/entryProcess.d.ts +7 -0
- package/dist/@types/utils/subprocess/processManager.d.ts +25 -0
- package/dist/@types/utils/swc_config.d.ts +3 -0
- package/dist/@types/utils/swc_helper.d.ts +11 -0
- package/dist/@types/utils/taskmanager.d.ts +22 -0
- package/dist/@types/utils/taskqueue.d.ts +0 -0
- package/dist/@types/utils/taskstatus.d.ts +2 -2
- package/dist/@types/utils/tools.d.ts +16 -1
- package/dist/@types/utils/waitable.d.ts +12 -0
- package/dist/@types/utils/wxapkg/pack.d.ts +7 -0
- package/dist/@types/utils/zip.d.ts +3 -0
- package/dist/ci/checkCodeQuality.js +1 -3
- package/dist/ci/cloud/cloudapi.js +1 -0
- package/dist/ci/cloud/createTimeTrigger.js +1 -0
- package/dist/ci/cloud/uploadContainer.js +1 -0
- package/dist/ci/cloud/uploadFile.js +1 -0
- package/dist/ci/cloud/uploadFunction.js +1 -0
- package/dist/ci/cloud/utils.js +1 -0
- package/dist/ci/code-analyse.js +1 -3
- package/dist/ci/cos-upload.js +1 -3
- package/dist/ci/getCompiledResult.js +1 -3
- package/dist/ci/getDevSourceMap.js +1 -3
- package/dist/ci/getLatestVersion.js +1 -3
- package/dist/ci/getcompiler.js +1 -0
- package/dist/ci/index.js +1 -0
- package/dist/ci/jsserver.js +1 -3
- package/dist/ci/preview.js +1 -3
- package/dist/ci/project.js +1 -3
- package/dist/ci/projectattr.js +1 -3
- package/dist/ci/upload.js +1 -3
- package/dist/ci/utils/codeDenpendencyQualityChecker.js +1 -3
- package/dist/ci/utils/filterUnusedFile.js +1 -3
- package/dist/ci/utils/pack.js +1 -3
- package/dist/ci/utils/packfile.js +1 -3
- package/dist/ci/utils/qualitycheckoption.js +1 -3
- package/dist/ci/utils/terminalQrcode.js +1 -3
- package/dist/ci/utils/tools.js +1 -0
- package/dist/cli/index.js +1 -0
- package/dist/common/cloud-api/index.js +279 -0
- package/dist/common/cloud-api/src/apis/apis.js +1 -0
- package/dist/common/cloud-api/src/apis/cdn/cdn.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/cdn/index.js +1 -0
- package/dist/common/cloud-api/src/apis/flexdb/flexdb.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/flexdb/index.js +1 -0
- package/dist/common/cloud-api/src/apis/scf/index.js +1 -0
- package/dist/common/cloud-api/src/apis/scf/scf.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/ssl/index.js +1 -0
- package/dist/common/cloud-api/src/apis/ssl/ssl.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/tcb/general.apis.js +1 -0
- package/dist/common/cloud-api/src/apis/tcb/index.js +1 -0
- package/dist/common/cloud-api/src/apis/tcb/tcb.apis.js +1 -0
- package/dist/common/cloud-api/src/index.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/account.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/cdn.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/factory.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/flexdb.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/lowcode.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/scf.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/ssl.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/contracts/tcb.contracts.js +1 -0
- package/dist/common/cloud-api/src/transaction/transactor.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/account.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/cdn.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/common.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/flexdb.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/lowcode.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/scf.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/ssl.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/tcb.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/validations.js +1 -0
- package/dist/common/cloud-api/src/utils/common.js +1 -0
- package/dist/common/cloud-api/src/utils/validator.js +1 -0
- package/dist/common/code-analyse/index.js +2 -0
- package/dist/config/compiletype.config.js +1 -0
- package/dist/config/config.js +1 -0
- package/dist/config/define.js +1 -0
- package/dist/config/url.config.js +1 -0
- package/dist/index.js +1 -3
- package/dist/manifest.json +2 -2
- package/dist/modules/corecompiler/baseCompiler.js +1 -0
- package/dist/modules/corecompiler/original/analyse/partial.js +1 -0
- package/dist/modules/corecompiler/original/compile/common.js +1 -0
- package/dist/modules/corecompiler/original/compile/game.js +1 -0
- package/dist/modules/corecompiler/original/compile/gamePlugin.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/js.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/mpjson.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/wxml.js +1 -0
- package/dist/modules/corecompiler/original/compile/handler/wxss.js +1 -0
- package/dist/modules/corecompiler/original/compile/index.js +1 -0
- package/dist/modules/corecompiler/original/compile/miniprogram.js +1 -0
- package/dist/modules/corecompiler/original/compile/miniprogramPlugin.js +1 -0
- package/dist/modules/corecompiler/original/index.js +1 -0
- package/dist/modules/corecompiler/original/js/enhance.js +1 -0
- package/dist/modules/corecompiler/original/js/es6Transform.js +1 -0
- package/dist/modules/corecompiler/original/js/index.js +1 -0
- package/dist/modules/corecompiler/original/js/minifyjs.js +1 -0
- package/dist/modules/corecompiler/original/js/minifyjsAfterWrap.js +1 -0
- package/dist/modules/corecompiler/original/js/workletCompile.js +1 -0
- package/dist/modules/corecompiler/original/json/app/appJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/app/checkAppFields.js +1 -0
- package/dist/modules/corecompiler/original/json/app/extJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/app/index.js +1 -0
- package/dist/modules/corecompiler/original/json/common.js +1 -0
- package/dist/modules/corecompiler/original/json/game.js +1 -0
- package/dist/modules/corecompiler/original/json/page/checkPageJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/page/getPageJSON.js +1 -0
- package/dist/modules/corecompiler/original/json/plugin/plugin.js +1 -0
- package/dist/modules/corecompiler/original/json/plugin/pluginPage.js +1 -0
- package/dist/modules/corecompiler/original/json/projectconfig.js +1 -0
- package/dist/modules/corecompiler/original/json/reactiveCache.js +1 -0
- package/dist/modules/corecompiler/original/json/signaturejson.js +1 -0
- package/dist/modules/corecompiler/original/json/sitemap.js +1 -0
- package/dist/modules/corecompiler/original/json/theme.js +1 -0
- package/dist/modules/corecompiler/original/npm/filterdeps.js +1 -0
- package/dist/modules/corecompiler/original/npm/packnpm.js +1 -0
- package/dist/modules/corecompiler/original/protect/fileFlatter.js +1 -0
- package/dist/modules/corecompiler/original/protect/uglifyfilenames.js +1 -0
- package/dist/modules/corecompiler/original/utils/env.js +1 -0
- package/dist/modules/corecompiler/original/utils/logger.js +1 -0
- package/dist/modules/corecompiler/original/validate/appjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/extjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/gamejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/gamepluginjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/pagejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/pluginjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/pluginpagejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/projectconfig.js +1 -0
- package/dist/modules/corecompiler/original/validate/schemaValidate.js +1 -0
- package/dist/modules/corecompiler/original/validate/signaturejson.js +1 -0
- package/dist/modules/corecompiler/original/validate/sitemapjson.js +1 -0
- package/dist/modules/corecompiler/original/validate/validate.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/childprocess.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/childprocessManager.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/fork.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/index.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/task/compilejs.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/task/compilewxss.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/worker.js +1 -0
- package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -0
- package/dist/modules/corecompiler/originalCompiler.js +1 -0
- package/dist/modules/corecompiler/summer/graph/appconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/appgraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/baseconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gameconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gamegraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gamepluginconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/gameplugingraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/pluginconf.js +1 -0
- package/dist/modules/corecompiler/summer/graph/plugingraph.js +1 -0
- package/dist/modules/corecompiler/summer/graph/util.js +1 -0
- package/dist/modules/corecompiler/summer/index.js +1 -0
- package/dist/modules/corecompiler/summer/initPlugin.js +1 -0
- package/dist/modules/corecompiler/summer/module.js +1 -0
- package/dist/modules/corecompiler/summer/persistCache.js +1 -0
- package/dist/modules/corecompiler/summer/pluginDriver.js +1 -0
- package/dist/modules/corecompiler/summer/pluginconfig.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/es6module.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/javascript.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/swc.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/enhance.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/index.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/less.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/minifywxml.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/sass.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/terser.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/typescript.js +1 -0
- package/dist/modules/corecompiler/summer/plugins/worklet.js +1 -0
- package/dist/modules/corecompiler/summer/resolver.js +1 -0
- package/dist/modules/corecompiler/summer/summer.js +1 -0
- package/dist/modules/corecompiler/summer/utils/async.js +1 -0
- package/dist/modules/corecompiler/summer/utils/ensureArray.js +1 -0
- package/dist/modules/corecompiler/summer/utils/inputsourcemap.js +1 -0
- package/dist/modules/corecompiler/summer/worker.js +1 -0
- package/dist/modules/corecompiler/summerCompiler.js +1 -0
- package/dist/modules/corecompiler/summerEntryProcess.js +1 -0
- package/dist/modules/createSummer.js +1 -0
- package/dist/modules/fullcompiler/app/app.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/originalcontactbase64.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/originallaunchbase64.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/updateContactForSubpkg.js +1 -0
- package/dist/modules/fullcompiler/app/contactandlaunch/updatecontactandlaunch.js +1 -0
- package/dist/modules/fullcompiler/appservice/appservice.config.js +1 -0
- package/dist/modules/fullcompiler/appservice/generatecode.utils.js +1 -0
- package/dist/modules/fullcompiler/appservice/getappservice.js +1 -0
- package/dist/modules/fullcompiler/appservice/getcompiledjs.js +1 -0
- package/dist/modules/fullcompiler/appservice/getjsfile.js +1 -0
- package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +1 -0
- package/dist/modules/fullcompiler/appservice/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/config/apperrcode.config.js +1 -0
- package/dist/modules/fullcompiler/filerules.js +1 -0
- package/dist/modules/fullcompiler/getallrawfiles.js +1 -0
- package/dist/modules/fullcompiler/getallwmltohtmlmap.js +1 -0
- package/dist/modules/fullcompiler/index.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getsubpackage.js +1 -0
- package/dist/modules/fullcompiler/pageframe/getwxappcode.js +1 -0
- package/dist/modules/fullcompiler/pageframe/index.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxmltojs.js +1 -0
- package/dist/modules/fullcompiler/trans/transwxsstojs.js +1 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/index.js +1 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/addonVersion.js +19 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/index.js +4 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/util.js +1134 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcc.js +94 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcsc.js +93 -0
- package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +1 -0
- package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/appjson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +1 -0
- package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +1 -0
- package/dist/modules/fullcompiler/utils/filewriter/index.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/handleError.js +1 -0
- package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +1 -0
- package/dist/modules/fullcompiler/utils/index.js +1 -0
- package/dist/modules/fullcompiler/utils/taskmanager.js +1 -0
- package/dist/modules/fullcompiler/utils/theme/index.js +1 -0
- package/dist/modules/fullcompiler/utils/tools.js +1 -0
- package/dist/modules/fullcompiler/utils/transformsourcemap.js +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/nativecompiler/android/adb.js +1 -0
- package/dist/modules/nativecompiler/android/device.js +1 -0
- package/dist/modules/nativecompiler/android/index.js +1 -0
- package/dist/modules/nativecompiler/android/projectconfig.js +1 -0
- package/dist/modules/nativecompiler/index.js +1 -0
- package/dist/modules/nativecompiler/ios/buildCloud.js +1 -0
- package/dist/modules/nativecompiler/ios/device.js +1 -0
- package/dist/modules/nativecompiler/ios/index.js +1 -0
- package/dist/modules/nativecompiler/ios/projectconfig.js +1 -0
- package/dist/modules/nativecompiler/nativeCompiler.js +1 -0
- package/dist/modules/nativecompiler/nativeEntryProcess.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/base.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/json.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/macro.js +1 -0
- package/dist/modules/precompiler/conditioncompile/compiler/plant.js +1 -0
- package/dist/modules/precompiler/conditioncompile/define.js +1 -0
- package/dist/modules/precompiler/conditioncompile/index.js +1 -0
- package/dist/modules/precompiler/index.js +1 -0
- package/dist/project/advance/precompileProject.js +1 -0
- package/dist/project/advance/reactiveProject.js +1 -0
- package/dist/project/baseProject.js +1 -0
- package/dist/project/ciProject.js +1 -0
- package/dist/project/ciProjectWithMockBuffer.js +1 -0
- package/dist/project/devtoolsProject.js +1 -0
- package/dist/project/summerCPProject.js +1 -0
- package/dist/project/webProject.js +1 -0
- package/dist/schema/dist/app.js +2221 -0
- package/dist/schema/dist/ext.js +1088 -0
- package/dist/schema/dist/game.js +211 -0
- package/dist/schema/dist/page.js +516 -0
- package/dist/schema/dist/plugin.js +53 -0
- package/dist/schema/dist/pluginpage.js +14 -0
- package/dist/schema/dist/projectconfig.js +655 -0
- package/dist/schema/dist/projectprivateconfig.js +371 -0
- package/dist/schema/dist/sitemap.js +53 -0
- package/dist/schema/dist/theme.js +20 -0
- package/dist/static/images/donut-icon1024x1024.png +0 -0
- package/dist/static/images/donut-icon120x120.png +0 -0
- package/dist/static/images/donut-icon152x152.png +0 -0
- package/dist/static/images/donut-icon167x167.png +0 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/AppIcon.appiconset/Contents.json +119 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/Contents.json +6 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/disconnect.imageset/Contents.json +21 -0
- package/dist/static/scripts/assetsCar/Assets.xcassets/disconnect.imageset/disconnect.png +0 -0
- package/dist/static/scripts/assetsCar/createAssetsCar +9 -0
- package/dist/static/scripts/checkXcodeEnv +18 -0
- package/dist/static/scripts/resignIpa +269 -0
- package/dist/types/ci.js +1 -0
- package/dist/types/core.js +1 -0
- package/dist/types/devtools.js +1 -0
- package/dist/types/index.js +1 -3
- package/dist/types/miniapp/index.js +1 -0
- package/dist/types/miniprogram-json/app.js +1 -3
- package/dist/types/miniprogram-json/base.js +1 -3
- package/dist/types/miniprogram-json/ext.js +1 -3
- package/dist/types/miniprogram-json/game.js +1 -3
- package/dist/types/miniprogram-json/index.js +1 -3
- package/dist/types/miniprogram-json/page.js +1 -3
- package/dist/types/miniprogram-json/plugin.js +1 -3
- package/dist/types/miniprogram-json/projectconfig.js +1 -3
- package/dist/types/miniprogram-json/sitemap.js +1 -3
- package/dist/types/miniprogram-json/theme.js +1 -3
- package/dist/types/summer.js +1 -0
- package/dist/utils/babel_helper.js +1 -3
- package/dist/utils/babel_plugin_worklet.js +1 -3
- package/dist/utils/babel_transform_plugin.js +1 -3
- package/dist/utils/cache.js +1 -3
- package/dist/utils/codesign.js +1 -0
- package/dist/utils/common.js +1 -3
- package/dist/utils/cp.js +1 -0
- package/dist/utils/customError.js +1 -0
- package/dist/utils/download.js +1 -0
- package/dist/utils/env.js +1 -0
- package/dist/utils/error.js +1 -3
- package/dist/utils/expression.js +1 -0
- package/dist/utils/filerules.js +1 -0
- package/dist/utils/fs.js +1 -3
- package/dist/utils/fsagent.js +1 -3
- package/dist/utils/generateIpa.js +1 -0
- package/dist/utils/glob.js +1 -3
- package/dist/utils/hackrequire/fs.js +1 -1
- package/dist/utils/hackrequire/module.js +1 -1
- package/dist/utils/helper_util.js +1 -0
- package/dist/utils/interruptibletask.js +1 -3
- package/dist/utils/jsonParse.js +1 -3
- package/dist/utils/jsonlint.js +1 -3
- package/dist/utils/locales/en.js +1 -3
- package/dist/utils/locales/fomatable_string.js +1 -3
- package/dist/utils/locales/locales.js +1 -3
- package/dist/utils/locales/zh.js +1 -3
- package/dist/utils/log.js +1 -3
- package/dist/utils/messageHub.js +1 -0
- package/dist/utils/miniapp-builder.js +1 -0
- package/dist/utils/miniappJson.js +1 -0
- package/dist/utils/packOptionsHelper.js +1 -0
- package/dist/utils/progressRecorder.js +1 -0
- package/dist/utils/report.js +1 -3
- package/dist/utils/request.js +1 -3
- package/dist/utils/sign.js +1 -3
- package/dist/utils/signature.js +1 -0
- package/dist/utils/singletontask.js +1 -0
- package/dist/utils/subprocess/entryProcess.js +1 -0
- package/dist/utils/subprocess/processManager.js +1 -0
- package/dist/utils/swc_config.js +1 -0
- package/dist/utils/swc_helper.js +1 -0
- package/dist/utils/taskmanager.js +1 -0
- package/dist/utils/taskqueue.js +1 -0
- package/dist/utils/taskstatus.js +1 -3
- package/dist/utils/tools.js +1 -3
- package/dist/utils/waitable.js +1 -0
- package/dist/utils/white_ext_list.js +1 -3
- package/dist/utils/wxapkg/pack.js +1 -0
- package/dist/utils/wxvpkgreader/wxvpkg/unpack/version0.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkg/unpack/version10.js +1 -1
- package/dist/utils/wxvpkgreader/wxvpkgreader.js +1 -1
- package/dist/utils/zip.js +1 -0
- package/dist/vendor/ios-deploy/ios-deploy +0 -0
- package/dist/vendor/swc_runtime/_apply_decorated_descriptor.js +1 -0
- package/dist/vendor/swc_runtime/_apply_decs_2203_r.js +1 -0
- package/dist/vendor/swc_runtime/_array_like_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_array_with_holes.js +1 -0
- package/dist/vendor/swc_runtime/_array_without_holes.js +1 -0
- package/dist/vendor/swc_runtime/_assert_this_initialized.js +1 -0
- package/dist/vendor/swc_runtime/_async_generator.js +1 -0
- package/dist/vendor/swc_runtime/_async_generator_delegate.js +1 -0
- package/dist/vendor/swc_runtime/_async_iterator.js +1 -0
- package/dist/vendor/swc_runtime/_async_to_generator.js +1 -0
- package/dist/vendor/swc_runtime/_await_async_generator.js +1 -0
- package/dist/vendor/swc_runtime/_await_value.js +1 -0
- package/dist/vendor/swc_runtime/_check_private_redeclaration.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_destructure.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_apply_descriptor_update.js +1 -0
- package/dist/vendor/swc_runtime/_class_call_check.js +1 -0
- package/dist/vendor/swc_runtime/_class_check_private_static_access.js +1 -0
- package/dist/vendor/swc_runtime/_class_check_private_static_field_descriptor.js +1 -0
- package/dist/vendor/swc_runtime/_class_extract_field_descriptor.js +1 -0
- package/dist/vendor/swc_runtime/_class_name_tdz_error.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_destructure.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_init.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_loose_base.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_loose_key.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_field_update.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_method_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_method_init.js +1 -0
- package/dist/vendor/swc_runtime/_class_private_method_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_destructure.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_spec_get.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_spec_set.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_field_update.js +1 -0
- package/dist/vendor/swc_runtime/_class_static_private_method_get.js +1 -0
- package/dist/vendor/swc_runtime/_construct.js +1 -0
- package/dist/vendor/swc_runtime/_create_class.js +1 -0
- package/dist/vendor/swc_runtime/_create_for_of_iterator_helper_loose.js +1 -0
- package/dist/vendor/swc_runtime/_create_super.js +1 -0
- package/dist/vendor/swc_runtime/_decorate.js +1 -0
- package/dist/vendor/swc_runtime/_defaults.js +1 -0
- package/dist/vendor/swc_runtime/_define_enumerable_properties.js +1 -0
- package/dist/vendor/swc_runtime/_define_property.js +1 -0
- package/dist/vendor/swc_runtime/_dispose.js +1 -0
- package/dist/vendor/swc_runtime/_export_star.js +1 -0
- package/dist/vendor/swc_runtime/_extends.js +1 -0
- package/dist/vendor/swc_runtime/_get.js +1 -0
- package/dist/vendor/swc_runtime/_get_prototype_of.js +1 -0
- package/dist/vendor/swc_runtime/_identity.js +1 -0
- package/dist/vendor/swc_runtime/_inherits.js +1 -0
- package/dist/vendor/swc_runtime/_inherits_loose.js +1 -0
- package/dist/vendor/swc_runtime/_initializer_define_property.js +1 -0
- package/dist/vendor/swc_runtime/_initializer_warning_helper.js +1 -0
- package/dist/vendor/swc_runtime/_instanceof.js +1 -0
- package/dist/vendor/swc_runtime/_interop_require_default.js +1 -0
- package/dist/vendor/swc_runtime/_interop_require_wildcard.js +1 -0
- package/dist/vendor/swc_runtime/_is_native_function.js +1 -0
- package/dist/vendor/swc_runtime/_is_native_reflect_construct.js +1 -0
- package/dist/vendor/swc_runtime/_iterable_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_iterable_to_array_limit.js +1 -0
- package/dist/vendor/swc_runtime/_iterable_to_array_limit_loose.js +1 -0
- package/dist/vendor/swc_runtime/_jsx.js +1 -0
- package/dist/vendor/swc_runtime/_new_arrow_check.js +1 -0
- package/dist/vendor/swc_runtime/_non_iterable_rest.js +1 -0
- package/dist/vendor/swc_runtime/_non_iterable_spread.js +1 -0
- package/dist/vendor/swc_runtime/_object_destructuring_empty.js +1 -0
- package/dist/vendor/swc_runtime/_object_spread.js +1 -0
- package/dist/vendor/swc_runtime/_object_spread_props.js +1 -0
- package/dist/vendor/swc_runtime/_object_without_properties.js +1 -0
- package/dist/vendor/swc_runtime/_object_without_properties_loose.js +1 -0
- package/dist/vendor/swc_runtime/_possible_constructor_return.js +1 -0
- package/dist/vendor/swc_runtime/_read_only_error.js +1 -0
- package/dist/vendor/swc_runtime/_set.js +1 -0
- package/dist/vendor/swc_runtime/_set_prototype_of.js +1 -0
- package/dist/vendor/swc_runtime/_skip_first_generator_next.js +1 -0
- package/dist/vendor/swc_runtime/_sliced_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_sliced_to_array_loose.js +1 -0
- package/dist/vendor/swc_runtime/_super_prop_base.js +1 -0
- package/dist/vendor/swc_runtime/_tagged_template_literal.js +1 -0
- package/dist/vendor/swc_runtime/_tagged_template_literal_loose.js +1 -0
- package/dist/vendor/swc_runtime/_throw.js +1 -0
- package/dist/vendor/swc_runtime/_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_to_consumable_array.js +1 -0
- package/dist/vendor/swc_runtime/_to_primitive.js +1 -0
- package/dist/vendor/swc_runtime/_to_property_key.js +1 -0
- package/dist/vendor/swc_runtime/_ts_decorate.js +1 -0
- package/dist/vendor/swc_runtime/_ts_generator.js +1 -0
- package/dist/vendor/swc_runtime/_ts_metadata.js +1 -0
- package/dist/vendor/swc_runtime/_ts_param.js +1 -0
- package/dist/vendor/swc_runtime/_ts_values.js +1 -0
- package/dist/vendor/swc_runtime/_type_of.js +1 -0
- package/dist/vendor/swc_runtime/_unsupported_iterable_to_array.js +1 -0
- package/dist/vendor/swc_runtime/_update.js +1 -0
- package/dist/vendor/swc_runtime/_using.js +1 -0
- package/dist/vendor/swc_runtime/_wrap_async_generator.js +1 -0
- package/dist/vendor/swc_runtime/_wrap_native_super.js +1 -0
- package/dist/vendor/swc_runtime/_write_only_error.js +1 -0
- package/dist/vendor/swc_runtime/index.js +1 -0
- package/package.json +45 -10
- package/dist/@types/cloud/cloudapi.d.ts +0 -7
- package/dist/@types/cloud/createTimeTrigger.d.ts +0 -13
- package/dist/@types/cloud/uploadContainer.d.ts +0 -71
- package/dist/@types/cloud/uploadFile.d.ts +0 -9
- package/dist/@types/cloud/uploadFunction.d.ts +0 -13
- package/dist/@types/cloud/utils.d.ts +0 -17
- package/dist/@types/config.d.ts +0 -78
- package/dist/@types/core/analyse/partial.d.ts +0 -25
- package/dist/@types/core/compile/common.d.ts +0 -17
- package/dist/@types/core/compile/game.d.ts +0 -5
- package/dist/@types/core/compile/game_plugin.d.ts +0 -8
- package/dist/@types/core/compile/handler/js.d.ts +0 -15
- package/dist/@types/core/compile/handler/mpjson.d.ts +0 -10
- package/dist/@types/core/compile/handler/wxml.d.ts +0 -9
- package/dist/@types/core/compile/handler/wxss.d.ts +0 -10
- package/dist/@types/core/compile/index.d.ts +0 -5
- package/dist/@types/core/compile/mini_program.d.ts +0 -5
- package/dist/@types/core/compile/mini_program_plugin.d.ts +0 -8
- package/dist/@types/core/js/index.d.ts +0 -3
- package/dist/@types/core/js/minifyjs.d.ts +0 -16
- package/dist/@types/core/js/minifyjs_after_wrap.d.ts +0 -12
- package/dist/@types/core/json/app/checkAppFields.d.ts +0 -42
- package/dist/@types/core/json/app/getAppJSON.d.ts +0 -10
- package/dist/@types/core/json/app/getExtJSON.d.ts +0 -5
- package/dist/@types/core/json/app/index.d.ts +0 -5
- package/dist/@types/core/json/common.d.ts +0 -20
- package/dist/@types/core/json/game.d.ts +0 -6
- package/dist/@types/core/json/page/checkPageJSON.d.ts +0 -6
- package/dist/@types/core/json/page/getPageJSON.d.ts +0 -10
- package/dist/@types/core/json/plugin/plugin.d.ts +0 -14
- package/dist/@types/core/json/plugin/plugin_page.d.ts +0 -9
- package/dist/@types/core/json/projectWithMockBuffer.d.ts +0 -14
- package/dist/@types/core/json/projectconfig.d.ts +0 -3
- package/dist/@types/core/json/reactiveCache.d.ts +0 -63
- package/dist/@types/core/json/signaturejson.d.ts +0 -21
- package/dist/@types/core/json/sitemap.d.ts +0 -5
- package/dist/@types/core/json/theme.d.ts +0 -20
- package/dist/@types/core/npm/packnpm.d.ts +0 -17
- package/dist/@types/core/protect/uglifyfilenames.d.ts +0 -9
- package/dist/@types/core/utils/env.d.ts +0 -6
- package/dist/@types/core/validate/appjson.d.ts +0 -3
- package/dist/@types/core/validate/extjson.d.ts +0 -3
- package/dist/@types/core/validate/gamejson.d.ts +0 -3
- package/dist/@types/core/validate/gamepluginjson.d.ts +0 -3
- package/dist/@types/core/validate/pagejson.d.ts +0 -3
- package/dist/@types/core/validate/pluginjson.d.ts +0 -3
- package/dist/@types/core/validate/pluginpagejson.d.ts +0 -3
- package/dist/@types/core/validate/projectconfig.d.ts +0 -3
- package/dist/@types/core/validate/schemaValidate.d.ts +0 -7
- package/dist/@types/core/validate/signaturejson.d.ts +0 -3
- package/dist/@types/core/validate/sitemapjson.d.ts +0 -3
- package/dist/@types/core/worker_thread/childprocess_manager.d.ts +0 -16
- package/dist/@types/core/worker_thread/index.d.ts +0 -4
- package/dist/@types/core/worker_thread/task/compilejs.d.ts +0 -43
- package/dist/@types/core/worker_thread/task/compilewxss.d.ts +0 -21
- package/dist/@types/core/worker_thread/task/index.d.ts +0 -28
- package/dist/@types/core/worker_thread/task/minifywxml.d.ts +0 -46
- package/dist/@types/core/worker_thread/worker_manager.d.ts +0 -19
- package/dist/@types/core.d.ts +0 -26
- package/dist/@types/summer/ci.d.ts +0 -3
- package/dist/@types/summer/devtool.d.ts +0 -254
- package/dist/@types/summer/error.d.ts +0 -22
- package/dist/@types/summer/graph/appconf.d.ts +0 -25
- package/dist/@types/summer/graph/appgraph.d.ts +0 -25
- package/dist/@types/summer/graph/basegraph.d.ts +0 -64
- package/dist/@types/summer/graph/pluginconf.d.ts +0 -19
- package/dist/@types/summer/graph/plugingraph.d.ts +0 -22
- package/dist/@types/summer/index.d.ts +0 -1
- package/dist/@types/summer/initPlugin.d.ts +0 -2
- package/dist/@types/summer/module.d.ts +0 -42
- package/dist/@types/summer/persist_cache.d.ts +0 -12
- package/dist/@types/summer/plugin_driver.d.ts +0 -45
- package/dist/@types/summer/plugins/base/es6module.d.ts +0 -18
- package/dist/@types/summer/plugins/base/javascript.d.ts +0 -3
- package/dist/@types/summer/plugins/base/wxss.d.ts +0 -6
- package/dist/@types/summer/plugins/enhance.d.ts +0 -4
- package/dist/@types/summer/plugins/less.d.ts +0 -5
- package/dist/@types/summer/plugins/minifywxml.d.ts +0 -5
- package/dist/@types/summer/plugins/sass.d.ts +0 -3
- package/dist/@types/summer/plugins/terser.d.ts +0 -2
- package/dist/@types/summer/plugins/typescript.d.ts +0 -2
- package/dist/@types/summer/plugins/worklet.d.ts +0 -4
- package/dist/@types/summer/project.d.ts +0 -47
- package/dist/@types/summer/recorder.d.ts +0 -12
- package/dist/@types/summer/resolver.d.ts +0 -28
- package/dist/@types/summer/summer.d.ts +0 -32
- package/dist/@types/summer/types.d.ts +0 -164
- package/dist/@types/summer/utils/ensureArray.d.ts +0 -1
- package/dist/@types/summer/worker.d.ts +0 -16
- package/dist/@types/utils/url_config.d.ts +0 -19
- package/dist/@types/vendor/cloud-api/src/apis/tcb/tcb.apis.d.ts +0 -162
- package/dist/@types/vendor/cloud-api/src/transaction/contracts/contracts.d.ts +0 -7
- package/dist/@types/vendor/cloud-api/src/transaction/contracts/tcb.contracts.d.ts +0 -165
- package/dist/@types/vendor/cloud-api/src/transaction/validations/common.validations.d.ts +0 -106
- package/dist/@types/vendor/cloud-api/src/transaction/validations/tcb.validations.d.ts +0 -170
- package/dist/@types/vendor/cloud-api/src/transaction/validations/validations.d.ts +0 -6
- package/dist/@types/vendor/code-analyse/index.d.ts +0 -374
- package/dist/cli.js +0 -3
- package/dist/cloud/cloudapi.js +0 -3
- package/dist/cloud/createTimeTrigger.js +0 -3
- package/dist/cloud/uploadContainer.js +0 -3
- package/dist/cloud/uploadFile.js +0 -3
- package/dist/cloud/uploadFunction.js +0 -3
- package/dist/cloud/utils.js +0 -3
- package/dist/config.js +0 -3
- package/dist/core/analyse/partial.js +0 -3
- package/dist/core/compile/common.js +0 -3
- package/dist/core/compile/game.js +0 -3
- package/dist/core/compile/game_plugin.js +0 -3
- package/dist/core/compile/handler/js.js +0 -3
- package/dist/core/compile/handler/mpjson.js +0 -3
- package/dist/core/compile/handler/wxml.js +0 -3
- package/dist/core/compile/handler/wxss.js +0 -3
- package/dist/core/compile/index.js +0 -3
- package/dist/core/compile/mini_program.js +0 -3
- package/dist/core/compile/mini_program_plugin.js +0 -3
- package/dist/core/js/enhance.js +0 -1
- package/dist/core/js/es6_transform.js +0 -1
- package/dist/core/js/index.js +0 -1
- package/dist/core/js/minifyjs.js +0 -1
- package/dist/core/js/minifyjs_after_wrap.js +0 -1
- package/dist/core/js/workletCompile.js +0 -1
- package/dist/core/json/app/checkAppFields.js +0 -3
- package/dist/core/json/app/getAppJSON.js +0 -3
- package/dist/core/json/app/getExtJSON.js +0 -3
- package/dist/core/json/app/index.js +0 -3
- package/dist/core/json/common.js +0 -3
- package/dist/core/json/game.js +0 -3
- package/dist/core/json/page/checkPageJSON.js +0 -3
- package/dist/core/json/page/getPageJSON.js +0 -3
- package/dist/core/json/plugin/plugin.js +0 -3
- package/dist/core/json/plugin/plugin_page.js +0 -3
- package/dist/core/json/projectWithMockBuffer.js +0 -3
- package/dist/core/json/projectconfig.js +0 -3
- package/dist/core/json/reactiveCache.js +0 -3
- package/dist/core/json/signaturejson.js +0 -3
- package/dist/core/json/sitemap.js +0 -3
- package/dist/core/json/theme.js +0 -3
- package/dist/core/npm/filterdeps.js +0 -3
- package/dist/core/npm/packnpm.js +0 -3
- package/dist/core/protect/file_flatter.js +0 -3
- package/dist/core/protect/uglifyfilenames.js +0 -3
- package/dist/core/utils/env.js +0 -3
- package/dist/core/utils/logger.js +0 -3
- package/dist/core/validate/appjson.js +0 -1
- package/dist/core/validate/extjson.js +0 -1
- package/dist/core/validate/gamejson.js +0 -1
- package/dist/core/validate/gamepluginjson.js +0 -1
- package/dist/core/validate/pagejson.js +0 -1
- package/dist/core/validate/pluginjson.js +0 -1
- package/dist/core/validate/pluginpagejson.js +0 -1
- package/dist/core/validate/projectconfig.js +0 -1
- package/dist/core/validate/schemaValidate.js +0 -1
- package/dist/core/validate/signaturejson.js +0 -1
- package/dist/core/validate/sitemapjson.js +0 -1
- package/dist/core/validate/validate.js +0 -1
- package/dist/core/worker_thread/childprocess.js +0 -1
- package/dist/core/worker_thread/childprocess_manager.js +0 -1
- package/dist/core/worker_thread/fork.js +0 -1
- package/dist/core/worker_thread/index.js +0 -1
- package/dist/core/worker_thread/task/compilejs.js +0 -1
- package/dist/core/worker_thread/task/compilewxss.js +0 -1
- package/dist/core/worker_thread/task/minifywxml.js +0 -1
- package/dist/core/worker_thread/worker.js +0 -1
- package/dist/core/worker_thread/worker_manager.js +0 -1
- package/dist/core.js +0 -3
- package/dist/summer/ci.js +0 -3
- package/dist/summer/devtool.js +0 -3
- package/dist/summer/entry_process.js +0 -1
- package/dist/summer/error.js +0 -3
- package/dist/summer/graph/appconf.js +0 -3
- package/dist/summer/graph/appgraph.js +0 -3
- package/dist/summer/graph/basegraph.js +0 -3
- package/dist/summer/graph/pluginconf.js +0 -3
- package/dist/summer/graph/plugingraph.js +0 -3
- package/dist/summer/index.js +0 -3
- package/dist/summer/initPlugin.js +0 -3
- package/dist/summer/module.js +0 -3
- package/dist/summer/persist_cache.js +0 -3
- package/dist/summer/plugin_driver.js +0 -3
- package/dist/summer/plugins/base/es6module.js +0 -1
- package/dist/summer/plugins/base/javascript.js +0 -1
- package/dist/summer/plugins/base/wxss.js +0 -1
- package/dist/summer/plugins/enhance.js +0 -1
- package/dist/summer/plugins/index.js +0 -1
- package/dist/summer/plugins/less.js +0 -1
- package/dist/summer/plugins/minifywxml.js +0 -1
- package/dist/summer/plugins/sass.js +0 -1
- package/dist/summer/plugins/terser.js +0 -1
- package/dist/summer/plugins/typescript.js +0 -1
- package/dist/summer/plugins/worklet.js +0 -1
- package/dist/summer/project.js +0 -3
- package/dist/summer/recorder.js +0 -3
- package/dist/summer/resolver.js +0 -3
- package/dist/summer/summer.js +0 -3
- package/dist/summer/types.js +0 -3
- package/dist/summer/utils/async.js +0 -3
- package/dist/summer/utils/ensureArray.js +0 -3
- package/dist/summer/worker.js +0 -3
- package/dist/utils/url_config.js +0 -3
- package/dist/vendor/cloud-api/index.js +0 -2
- package/dist/vendor/cloud-api/src/apis/apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/cdn/cdn.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/cdn/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/flexdb/flexdb.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/flexdb/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/scf/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/scf/scf.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/ssl/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/ssl/ssl.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/tcb/general.apis.js +0 -3
- package/dist/vendor/cloud-api/src/apis/tcb/index.js +0 -3
- package/dist/vendor/cloud-api/src/apis/tcb/tcb.apis.js +0 -3
- package/dist/vendor/cloud-api/src/index.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/cdn.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/factory.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/flexdb.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/scf.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/ssl.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/contracts/tcb.contracts.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/transactor.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/cdn.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/common.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/flexdb.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/scf.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/ssl.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/tcb.validations.js +0 -3
- package/dist/vendor/cloud-api/src/transaction/validations/validations.js +0 -3
- package/dist/vendor/cloud-api/src/utils/common.js +0 -3
- package/dist/vendor/cloud-api/src/utils/validator.js +0 -3
- package/dist/vendor/code-analyse/index.js +0 -2
- package/dist/vendor/schema/dist/app.js +0 -618
- package/dist/vendor/schema/dist/ext.js +0 -862
- package/dist/vendor/schema/dist/game.js +0 -211
- package/dist/vendor/schema/dist/page.js +0 -313
- package/dist/vendor/schema/dist/plugin.js +0 -41
- package/dist/vendor/schema/dist/pluginpage.js +0 -14
- package/dist/vendor/schema/dist/projectconfig.js +0 -474
- package/dist/vendor/schema/dist/projectprivateconfig.js +0 -358
- package/dist/vendor/schema/dist/sitemap.js +0 -53
- package/dist/vendor/schema/dist/theme.js +0 -20
- /package/dist/@types/{cli.d.ts → cli/index.d.ts} +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/cdn/cdn.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/cdn/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/flexdb/flexdb.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/flexdb/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/scf/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/scf/scf.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/ssl/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/ssl/ssl.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/tcb/general.apis.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/apis/tcb/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/index.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/cdn.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/factory.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/flexdb.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/scf.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/contracts/ssl.contracts.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/transactor.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/cdn.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/flexdb.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/scf.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/transaction/validations/ssl.validations.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/utils/common.d.ts +0 -0
- /package/dist/@types/{vendor → common}/cloud-api/src/utils/validator.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/js/enhance.d.ts +0 -0
- /package/dist/@types/{core/js/es6_transform.d.ts → modules/corecompiler/original/js/es6Transform.d.ts} +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/js/generateMap.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/js/workletCompile.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/npm/filterdeps.d.ts +0 -0
- /package/dist/@types/{core/protect/file_flatter.d.ts → modules/corecompiler/original/protect/fileFlatter.d.ts} +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/utils/logger.d.ts +0 -0
- /package/dist/@types/{core → modules/corecompiler/original}/validate/validate.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/childprocess.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/config.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/fork.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/task/call_func.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/task/func.d.ts +0 -0
- /package/dist/@types/{core/worker_thread → modules/corecompiler/original/workerThread}/worker.d.ts +0 -0
- /package/dist/@types/{summer → modules/corecompiler/summer}/plugins/index.d.ts +0 -0
- /package/dist/@types/{summer → modules/corecompiler/summer}/utils/async.d.ts +0 -0
- /package/dist/@types/{summer/entry_process.d.ts → modules/corecompiler/summerEntryProcess.d.ts} +0 -0
- /package/dist/{schema → @types/schema}/dist/index.d.ts +0 -0
- /package/dist/{core → modules/corecompiler/original}/js/generateMap.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/config.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/task/call_func.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/task/func.js +0 -0
- /package/dist/{core/worker_thread → modules/corecompiler/original/workerThread}/task/index.js +0 -0
- /package/dist/{vendor/schema → schema}/dist/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const fs=require("fs"),path=require("path"),{getReader:getReader,splitPath:splitPath}=require("./wxvpkgreader"),internalModuleReadFileSync=fs.readFileSync;fs.readFileSync=function(e,t){const[i,n,s]=splitPath(e);if(!i||!s)return internalModuleReadFileSync.apply(this,arguments);const
|
|
1
|
+
"use strict";const fs=require("fs"),path=require("path"),{getReader:getReader,splitPath:splitPath}=require("./wxvpkgreader"),internalModuleReadFileSync=fs.readFileSync;fs.readFileSync=function(e,t){const[i,n,s]=splitPath(e);if(!i||!s)return internalModuleReadFileSync.apply(this,arguments);const l=getReader(n);let r=s.replace(/\\/g,"/");r=path.posix.resolve(r);const a=l.getFile(r);let c;return t?"[object String]"===Object.prototype.toString.call(t)&&(c={encoding:t,flag:"r"}):c={encoding:null,flag:"r"},(null==c?void 0:c.encoding)?a.toString(c.encoding):a};let nextInode=0;const uid=process.getuid?process.getuid():0,gid=process.getgid?process.getgid():0,fakeTime=Date.now(),internalModuleStatSync=fs.statSync;fs.statSync=function(e){const[t,i,n]=splitPath(e);if(!t)return internalModuleStatSync.apply(this,arguments);if(!n){const e=internalModuleStatSync.apply(this,arguments);return Object.assign(Object.assign({},e),{isFile:()=>!1,isDirectory:()=>!0,wxvpkg:!0})}const s=getReader(i);let l=n.replace(/\\/g,"/");l=path.posix.resolve(l);const r=s.stat(l);return{dev:1,ino:++nextInode,mode:33188,nlink:1,uid:uid,gid:gid,rdev:0,atime:r.atime||fakeTime,birthtime:r.birthtime||fakeTime,mtime:r.mtime||fakeTime,ctime:r.ctime||fakeTime,size:r.size,isFile:()=>r.isFile,isDirectory:()=>!r.isFile,isSymbolicLink:()=>!1,isBlockDevice:()=>!1,isCharacterDevice:()=>!1,isFIFO:()=>!1,isSocket:()=>!1}};const internalModuleExistSync=fs.existsSync;fs.existsSync=function(e){const[t,i,n]=splitPath(e);if(!t||!n)return internalModuleExistSync.apply(this,arguments);const s=getReader(i);let l=n.replace(/\\/g,"/");return l=path.posix.resolve(l),s.exists(l)},module.exports={internalModuleReadFileSync:internalModuleReadFileSync,internalModuleStatSync:internalModuleStatSync,internalModuleExistSync:internalModuleExistSync};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const path=require("path"),Module=require("module"),fs=require("fs"),CHAR_FORWARD_SLASH=47,packageMainCache=Object.create(null);function stat(e){const
|
|
1
|
+
"use strict";const path=require("path"),Module=require("module"),fs=require("fs"),CHAR_FORWARD_SLASH=47,packageMainCache=Object.create(null);function stat(e){const{cache:t}=stat;if(null!==t){const n=t.get(e);if(void 0!==n)return n}let n;if(fs.existsSync(e)){n=fs.statSync(e).isDirectory()?1:0}else n=-2;return null!==t&&t.set(e,n),n}function tryFile(e,t){return 0===stat(e)&&path.resolve(e)}function tryExtensions(e,t,n){for(const a of t){const t=tryFile(e+a,n);if(t)return t}return!1}function readPackage(e){const t=packageMainCache[e];if(t)return t;const n=path.resolve(e,"package.json");try{const t=fs.readFileSync(n,"utf8");return!!t&&(packageMainCache[e]=JSON.parse(t).main)}catch(e){return!1}}function tryPackage(e,t,n){const a=readPackage(e);if(!a)return!1;const s=path.resolve(e,a);return tryFile(s,n)||tryExtensions(s,t,n)||tryExtensions(path.resolve(s,"index"),t,n)}stat.cache=new Map;const module_findPath=Module._findPath;Module._findPath=function(e,t,n){if(path.isAbsolute(e))t=[""];else if(!t||0===t.length)return!1;const a=`${e}\0${1===t.length?t[0]:t.join("\0")}`,s=Module._pathCache[a];if(s)return s;let o,r=e.length>0&&47===e.charCodeAt(e.length-1);r||(r=/(?:^|\/)\.?\.$/.test(e));for(const s of t){if(s&&stat(s)<1)continue;const t=path.resolve(s,e);let c;const i=stat(t);if(r||(0===i&&(c=path.resolve(t)),c||(void 0===o&&(o=Object.keys(Module._extensions)),c=tryExtensions(t,o,n))),c||1!==i||(void 0===o&&(o=Object.keys(Module._extensions)),c=tryPackage(t,o,n),c||(c=tryExtensions(path.resolve(t,"index"),o,n))),c)return Module._pathCache[a]=c,c}return!1};const{_resolveLookupPaths:_resolveLookupPaths}=Module,isMac="darwin"===process.platform,newInstallPackagePath=isMac?path.join(process.execPath,"../../../../../../../../../Resources/package.nw"):path.join(process.execPath,"../code/package.nw");function appendInstallPkgPath(e){e.push(path.join(newInstallPackagePath,"node_modules")),e.push(path.join(newInstallPackagePath,"node_modules.wxvpkg")),isMac&&(e.push(path.join(process.execPath,"../../../../../../Resources/package.nw/node_modules")),e.push(path.join(process.execPath,"../../../../../../Resources/package.nw/node_modules.wxvpkg")))}Module._resolveLookupPaths=function(){const e=_resolveLookupPaths.apply(this,arguments),t=[],n=process.cwd();let a=!1;for(const s of e)"node_modules"===path.basename(s)&&t.push(path.join(path.dirname(s),"node_modules.wxvpkg")),t.push(s),a||path.dirname(s)!==n&&path.dirname(s)!==path.dirname(n)||(a=!0,appendInstallPkgPath(t));return a||(a=!0,appendInstallPkgPath(t)),t},module.exports={internalModuleFindPath:module_findPath,internalModuleResolveLookupPaths:_resolveLookupPaths};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getHelperName=exports.isValidHelperFunc=exports.appendHelpers=exports.getHelperDeps=exports.getHelperContent=exports.getHelperOutputPath=void 0;const tslib_1=require("tslib"),path=tslib_1.__importStar(require("path")),tools_1=require("./tools"),babel_helper_1=require("./babel_helper"),swc_helper_1=require("./swc_helper"),pluginconfig_1=require("../modules/corecompiler/summer/pluginconfig");function getHelperOutputPath(e){return(0,pluginconfig_1.couldUseSWCMode)(e)?(0,swc_helper_1.getSWCOutputPath)(e):(0,babel_helper_1.getBabelOutputPath)(e)}function getHelperContent(e,t){const r=getHelperOutputPath(e);return(0,pluginconfig_1.couldUseSWCMode)(e)?(0,swc_helper_1.getHelperContent)(t,r):(0,babel_helper_1.getHelperContent)(t,r)}function getHelperDeps(e,t){const r=getHelperOutputPath(e);return(0,pluginconfig_1.couldUseSWCMode)(e)?(0,swc_helper_1.getHelperDeps)(t,r):Object.keys((0,babel_helper_1.getHelperDeps)(Array.from(t),r))}async function appendHelpers(e,t,r,p){const l=getHelperDeps(e.setting,t).map(async t=>{try{const l=await getHelperContent(e.setting,t),s=(0,tools_1.normalizePath)(path.posix.join(r,t.endsWith(".js")?""+t:t+".js"));p[s]||(p[s]=l)}catch(e){if("EEXIST"===e.code);else if("ENOENT"!==e.code)throw e}});return Promise.all(l)}function isValidHelperFunc(e){return(0,babel_helper_1.isValidBabelHelperFunc)(e)?"babel":(0,swc_helper_1.isValidSWCHelperFunc)(e)?"swc":void 0}function getHelperName(e,t){const r=getHelperOutputPath(e),p=t.substr(0,t.indexOf(r)+r.length);return t.replace(p,"").replace(/\/(helpers\/)?/,"").replace(/\.js$/,"")}exports.getHelperOutputPath=getHelperOutputPath,exports.getHelperContent=getHelperContent,exports.getHelperDeps=getHelperDeps,exports.appendHelpers=appendHelpers,exports.isValidHelperFunc=isValidHelperFunc,exports.getHelperName=getHelperName;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InterruptibleTask=exports.AbortEvent=void 0,exports.AbortEvent="abort";class InterruptibleTask{constructor(...t){this._aborted=!1,this._args=t,this._promise=this.run(...t)}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}abort(){this._aborted||(this._aborted=!0)}}exports.InterruptibleTask=InterruptibleTask;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InterruptibleTask=exports.AbortEvent=void 0,exports.AbortEvent="abort";class InterruptibleTask{constructor(...t){this._aborted=!1,this._args=t,this._promise=this.run(...t)}then(t,r){return this._promise.then(t,r)}catch(t){return this._promise.catch(t)}abort(){this._aborted||(this._aborted=!0)}}exports.InterruptibleTask=InterruptibleTask;
|
package/dist/utils/jsonParse.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.jsonRespParse=exports.jsonParse=void 0;const tslib_1=require("tslib"),log_1=tslib_1.__importDefault(require("./log"));function jsonParse(e){try{return JSON.parse(e)}catch(r){throw log_1.default.info("jsonParse error, input string:"),log_1.default.info(e),r}}function jsonRespParse(e,r=""){try{return JSON.parse(e)}catch(s){throw log_1.default.info(`CGI[${r}] response parse error, response body: ${e}`),s}}exports.jsonParse=jsonParse,exports.jsonRespParse=jsonRespParse;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.jsonRespParse=exports.jsonParse=void 0;const tslib_1=require("tslib"),log=tslib_1.__importStar(require("./log"));function jsonParse(r){try{return JSON.parse(r)}catch(s){throw log.info("jsonParse error, input string:"),log.info(r),s}}function jsonRespParse(r,s=""){try{return JSON.parse(r)}catch(e){throw log.info(`CGI[${s}] response parse error, response body: ${r}`),e}}exports.jsonParse=jsonParse,exports.jsonRespParse=jsonRespParse;
|
package/dist/utils/jsonlint.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
!function(
|
|
2
|
-
"use strict";const jsonlint=function(){const t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(t,e,n,i,s,r,h){const l=r.length-1;switch(s){case 1:this.$=t.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(t);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=r[l-1];case 13:this.$={};break;case 14:this.$=r[l-1];break;case 15:this.$=[r[l-2],r[l]];break;case 16:this.$={},this.$[r[l][0]]=r[l][1];break;case 17:this.$=r[l-2],r[l-2][r[l][0]]=r[l][1];break;case 18:this.$=[];break;case 19:this.$=r[l-1];break;case 20:this.$=[r[l]];break;case 21:this.$=r[l-2],r[l-2].push(r[l])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(t,e){throw new Error(t)},parse:function(t){const e=this;let n=[0],i=[null],s=[];const r=this.table;let h="",l=0,o=0,c=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});let a,u,y,p,f,g,_,m,x,b=this.lexer.yylloc;function d(){let t;return t=e.lexer.lex()||1,"number"!=typeof t&&(t=e.symbols_[t]||t),t}s.push(b),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);const E={};for(;;){y=n[n.length-1],this.defaultActions[y]?p=this.defaultActions[y]:(null==a&&(a=d()),p=r[y]&&r[y][a]);let t="";if(void 0===p||!p.length||!p[0]){if(!c){for(g in x=[],r[y])this.terminals_[g]&&g>2&&x.push("'"+this.terminals_[g]+"'");t=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+this.terminals_[a]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1===a?"end of input":"'"+(this.terminals_[a]||a)+"'"),this.parseError(t,{text:this.lexer.match,token:this.terminals_[a]||a,line:this.lexer.yylineno,loc:b,expected:x})}if(3===c){if(1===a)throw new Error(t||"Parsing halted.");o=this.lexer.yyleng,h=this.lexer.yytext,l=this.lexer.yylineno,b=this.lexer.yylloc,a=d()}for(;!(2..toString()in r[y]);){if(0===y)throw new Error(t||"Parsing halted.");S=1,n.length=n.length-2*S,i.length=i.length-S,s.length=s.length-S,y=n[n.length-1]}u=a,a=2,y=n[n.length-1],p=r[y]&&r[y][2],c=3}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+a);switch(p[0]){case 1:n.push(a),i.push(this.lexer.yytext),s.push(this.lexer.yylloc),n.push(p[1]),a=null,u?(a=u,u=null):(o=this.lexer.yyleng,h=this.lexer.yytext,l=this.lexer.yylineno,b=this.lexer.yylloc,c>0&&c--);break;case 2:if(_=this.productions_[p[1]][1],E.$=i[i.length-_],E._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},f=this.performAction.call(E,h,o,l,this.yy,p[1],i,s),void 0!==f)return f;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[p[1]][0]),i.push(E.$),s.push(E._$),m=r[n[n.length-2]][n[n.length-1]],n.push(m);break;case 3:return!0}}var S;return!0}},e=function(){const t={EOF:1,parseError:function(t,e){if(!this.yy.parseError)throw new Error(t);this.yy.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){const t=this._input[0];this.yytext+=t,this.yyleng++,this.match+=t,this.matched+=t;return t.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),t},unput:function(t){return this._input=t+this._input,this},more:function(){return this._more=!0,this},less:function(t){this._input=this.match.slice(t)+this._input},pastInput:function(){const t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;let t,e,n,i,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");const r=this._currentRules();for(let t=0;t<r.length&&(n=this._input.match(this.rules[r[t]]),!n||e&&!(n[0].length>e[0].length)||(e=n,i=t,this.options.flex));t++);return e?(s=e[0].match(/\n.*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,r[i],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n,i){switch(n){case 0:break;case 1:return 6;case 2:return e.yytext=e.yytext.substr(1,e.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return t}();return t.lexer=e,t}();jsonlint.parseError=jsonlint.lexer.parseError=function(t,e){throw e},module.exports={parser:jsonlint,parse:function(){return jsonlint.parse.apply(jsonlint,arguments)}};
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";const jsonlint=function(){const t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(t,e,n,i,s,r,h){const l=r.length-1;switch(s){case 1:this.$=t.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(t);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=r[l-1];case 13:this.$={};break;case 14:this.$=r[l-1];break;case 15:this.$=[r[l-2],r[l]];break;case 16:this.$={},this.$[r[l][0]]=r[l][1];break;case 17:this.$=r[l-2],r[l-2][r[l][0]]=r[l][1];break;case 18:this.$=[];break;case 19:this.$=r[l-1];break;case 20:this.$=[r[l]];break;case 21:this.$=r[l-2],r[l-2].push(r[l])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(t,e){throw new Error(t)},parse:function(t){const e=this;let n=[0],i=[null],s=[];const r=this.table;let h="",l=0,o=0,c=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});let a,u,y,p,f,g,_,m,x,b=this.lexer.yylloc;function d(){let t;return t=e.lexer.lex()||1,"number"!=typeof t&&(t=e.symbols_[t]||t),t}s.push(b),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);const E={};for(;;){y=n[n.length-1],this.defaultActions[y]?p=this.defaultActions[y]:(null==a&&(a=d()),p=r[y]&&r[y][a]);let t="";if(void 0===p||!p.length||!p[0]){if(!c){for(g in x=[],r[y])this.terminals_[g]&&g>2&&x.push("'"+this.terminals_[g]+"'");t=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+this.terminals_[a]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1===a?"end of input":"'"+(this.terminals_[a]||a)+"'"),this.parseError(t,{text:this.lexer.match,token:this.terminals_[a]||a,line:this.lexer.yylineno,loc:b,expected:x})}if(3===c){if(1===a)throw new Error(t||"Parsing halted.");o=this.lexer.yyleng,h=this.lexer.yytext,l=this.lexer.yylineno,b=this.lexer.yylloc,a=d()}for(;!(2..toString()in r[y]);){if(0===y)throw new Error(t||"Parsing halted.");S=1,n.length=n.length-2*S,i.length=i.length-S,s.length=s.length-S,y=n[n.length-1]}u=a,a=2,y=n[n.length-1],p=r[y]&&r[y][2],c=3}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+a);switch(p[0]){case 1:n.push(a),i.push(this.lexer.yytext),s.push(this.lexer.yylloc),n.push(p[1]),a=null,u?(a=u,u=null):(o=this.lexer.yyleng,h=this.lexer.yytext,l=this.lexer.yylineno,b=this.lexer.yylloc,c>0&&c--);break;case 2:if(_=this.productions_[p[1]][1],E.$=i[i.length-_],E._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column},f=this.performAction.call(E,h,o,l,this.yy,p[1],i,s),void 0!==f)return f;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),s=s.slice(0,-1*_)),n.push(this.productions_[p[1]][0]),i.push(E.$),s.push(E._$),m=r[n[n.length-2]][n[n.length-1]],n.push(m);break;case 3:return!0}}var S;return!0}},e=function(){const t={EOF:1,parseError:function(t,e){if(!this.yy.parseError)throw new Error(t);this.yy.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){const t=this._input[0];this.yytext+=t,this.yyleng++,this.match+=t,this.matched+=t;return t.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),t},unput:function(t){return this._input=t+this._input,this},more:function(){return this._more=!0,this},less:function(t){this._input=this.match.slice(t)+this._input},pastInput:function(){const t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;let t,e,n,i,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");const r=this._currentRules();for(let t=0;t<r.length&&(n=this._input.match(this.rules[r[t]]),!n||e&&!(n[0].length>e[0].length)||(e=n,i=t,this.options.flex));t++);return e?(s=e[0].match(/\n.*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,r[i],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n,i){switch(n){case 0:break;case 1:return 6;case 2:return e.yytext=e.yytext.substr(1,e.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return t}();return t.lexer=e,t}();jsonlint.parseError=jsonlint.lexer.parseError=function(t,e){throw e},module.exports={parser:jsonlint,parse:function(){return jsonlint.parse.apply(jsonlint,arguments)}};
|
package/dist/utils/locales/en.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const fomatable_string_1=require("./fomatable_string"),config={GENERATE_LOCAL_SIGNATURE_FAIL:"generate local signature fail. Usually this happens the content or encoding of private key file is incorrect. Detail: %s",PARAM_ERROR:'function: "%s" lack of parameter: "%s"',SHOULD_NOT_BE_EMPTY:"%s should not be empty",JSON_CONTENT_SHOULD_BE:"%s field needs to be %s",SHOULD_MATCH:"%s should match %s",SHOULD_EQUAL:"%s should equal to %s",SHOULD_AT_LEAST_ONE_ITEM:"%s should have at least on item",OR:"Or",CORRESPONDING_FILE_NOT_FOUND:'%s could not find the corresponding file: "%s"',JSON_SHOULD_NOT_CONTAIN:"%s should not contain %s",JSON_SHOULD_NOT_START_WITH:"%s should not begin with '%s'",NOT_FOUND:"%s not found",NOT_FOUND_IN_ROOT_DIR:"%s is not found in the project root directory",MINIPROGRAM_APP_JSON_NOT_FOUND:'In the directory %s specified by "miniprogramRoot" in project.config.json, %s is not found in that directory.If you don\'t know what "miniprogramRoot" means for, just leave it as empty string.',PLUGIN_JSON_NOT_FOUND:"In the miniprogram local development plug-in directory %s specified by pluginRoot in project.config.json, %s is not found",PLUGIN_PATH_SAME_WITH_MINIPROGRAM:"The plugin directory %s specified by pluginRoot in project.config.json is the same as the miniprogram directory %s, please modify it to a different directory",CONTENT_EXIST:"%s already exists",FILE_NOT_FOUND:'"%s" file not found, or the file read failed',JSON_PARSE_ERROR:"%s File parsing error",ENTRANCE_NOT_FOUND:"No pages : %s defined in the entry page \napp.json is found",JSON_PAGE_FILE_NOT_EXISTS:'%s %s "%s" could not find the corresponding %s file',SHOULD_NOT_IN:"%s Should not exist in %s",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS_TITLE:"app.json or custom compilation condition error",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS:"The startup page %s specified in the custom compilation is not defined in app.json",JSON_ENTRY_PAGE_PATH_NOT_FOUND:"No entry page defined in %s is found in %s",JSON_TABBAR_AT_LEAST:'["tabBar"]["list"] must contain at least %s items',JSON_TABBAR_AT_MOST:'["tabBar"]["list"] cannot contain more than %s items',JSON_TABBAR_PATH_EMPTY:'["tabBar"]["list"][%s]["pagePath"] cannot be empty',JSON_TABBAR_PATH_SAME_WITH_OTHER:'["tabBar"]["list"][%s]["pagePath"] is same with ["tabBar"]["list"][%s]["pagePath"]',JSON_TABBAR_ICON_MAX_SIZE:'The size of ["tabBar"]["list"][%s]["%s"] exceeds %skb',JSON_TABBAR_ICON_EXT:'["tabBar"]["list"][%s]["%s"] Wrong file format, only %s format is supported',EXT_SHOULD_BE_ERROR:'extension name of %s should be "%s"',JSON_CONTENT_SHOULD_NOT_BE:"%s cannot be %s",JSON_RESOLVE_ALIAS_ILLEGAL:'Invalid %s or %s in resolveAlias field, contains consecutive "//"',JSON_RESOLVE_ALIAS_INCLUDE_STAR:'The key "%s" or value "%s" in resolveAlias field should end with "/*"',JSON_RESOLVE_ALIAS_SHOULD_NOT_START_WITH:'The value "%s" in resolveAlias field should not start with "./"',APP_JSON_SHOULD_SET_LAZYCODELOADING:'You need to add "lazyCodeLoading": "requiredComponents" in app.json, because the value of "renderer" in %s is "skyline"',PAGE_JSON_SHOULD_SET_DISABLESCROLL_TRUE:'According to the configuration of the page or app.json, the value of "renderer" in %s page is "skyline", you need to add "disableScroll": true in the page configuration',PAGE_JSON_SHOULD_SET_NAVIGATIONSTYLE_CUSTOM:'According to the configuration of the page or app.json, the value of "renderer" in %s page is "skyline", you need to add "navigationStyle": custom in the page configuration',JSON_CONTENT_EXISTED:"%s already exists",JSON_CONTENT_NOT_FOUND:"%s does not exist",LACK_OF_FILE:"File %s is missing",JSON_PAGES_REPEAT:"%s is repeated in %s",JSON_CONTENT_REPEAT:"%s could not be declared both in %s",EXT_JSON_INVALID:'%s is not a 3rdMiniProgramAppid, ext.json cannot take effect;Read the documentation: "%s"',GAME_EXT_JSON_INVALID:"%s is not a 3rdMiniGameAppid, ext.json cannot take effect;",EXT_APPID_SHOULD_NOT_BE_EMPTY:"extAppid should not be empty",FILE_NOT_UTF8:"%s file is not in UTF-8 encoding",INVALID:"invalid %s",DIRECTORY:"Directory",EXCEED_LIMIT:"%s exceed limit %s",PLEASE_CHOOSE_PLUGIN_MODE:"If you are developing a plugin, choose the plugin mode",TRIPLE_NUMBER_DOT:"number.number.number",PAGE_PATH:"Page Path",PLUGINS_SAME_ALIAS:"%s and %s have same alias",SAME_ITEM:'%s and %s have same "%s"',ALREADY_EXISTS:"already exists",SAME_KEY_PAGE_PUBLICCOMPONENTS:'There can not be the same key: %s in ["pages"] and ["publicComponents"]',GAME_DEV_PLUGIN_SHOULD_NOT_USE_LOCAL_PATH:"Dev plugin: %s shall never specify a local path",GAME_PLUGIN_SIGNATURE_MD5_NOT_MATCH_CONTENT:'MD5 hash of the plugin library file "%s": "%s" not matching the value "%s" given by its signature.json, thus the compiling process has been interrupted.\nThis indicates you might have changed the content of the file.\nRestore the original content of this file may help solve the issue and remove this warning.\n\nTo learn more, you may refer to the documentation.\n',FILE:"FILE",PROCESSING:"processing: %s",DONE:"done: %s",UPLOAD:"upload",SUCCESS:"success",PROJECT_TYPE_ERROR:"project.type is %s, but appid(%s) is %s",MINI_PROGRAM:"MiniProgram",MINI_GAME:"MiniGame",NOT_ALLOWED_REQUIRE_VAR:"Require variable is not allowed",NOT_ALLOWED_REQUIRE_ASSIGN:"Assigning the require function to other variables is not allowed",NOT_FOUND_NPM_ENTRY:"Npm package entry file not found",NOT_FOUND_NODE_MODULES:"NPM packages not found. Please confirm npm packages which need to build are belong to `miniprogramRoot` directory. Or you may edit project.config.json's `packNpmManually` and `packNpmRelationList`",JSON_ENTRANCE_DECLARE_PATH_ERR:'["entranceDeclare"]["locationMessage"]["path"] "%s" should belong to pages or pages in sub packages',JSON_ENTRANCE_DECLARE_PATH_EMPTY:'["entranceDeclare"]["locationMessage"]["path"] should not be empty',JSON_REQUIRED_PRIVATE_INFOS_MUTUALLY_EXCLUSIVE:"requiredPrivateInfos %s is is mutually exclusive with %s.",COULD_NOT_USE_CODE_PROTECT:"Code protect is not available",SUMMER_COMPILING_MODULE:"Compiling %s",SUMMER_COMPILE_JSON:"Compile jSON files",SUMMER_OPTIMIZE_CODE:"Optimize code",SUMMER_PACK_FILES:"Pack resource file",SUMMER_COMPRESS_PACK:"Compress code package",SUMMER_SEAL_PACK:"Seal code package",SUMMER_APPEND_BABEL_HELPERS:"Append babel helper files",SUMMER_COMPILE_PAGE_JSON:"Compile json files of %s pages",SUMMER_COMPILE_PLUGIN_PAGE_JSON:"Compiling json files of %s plugin pages",SUMMER_COMPILE:"Compile %s",SUMMER_COMPILE_MINIPROGRAM:"Compile miniprogram",SUMMER_COMPILE_PLUGIN:"Compile plugin"},formatConfig={};for(const[e,o]of Object.entries(config))formatConfig[e]=new fomatable_string_1.FormatableString(o);exports.default=formatConfig;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const fomatable_string_1=require("./fomatable_string"),config={GENERATE_LOCAL_SIGNATURE_FAIL:"generate local signature fail. Usually this happens the content or encoding of private key file is incorrect. Detail: %s",PARAM_ERROR:'function: "%s" lack of parameter: "%s"',SHOULD_NOT_BE_EMPTY:"%s should not be empty",JSON_CONTENT_SHOULD_BE:"%s field needs to be %s",SHOULD_MATCH:"%s should match %s",SHOULD_EQUAL:"%s should equal to %s",SHOULD_AT_LEAST_ONE_ITEM:"%s should have at least on item",OR:"Or",CORRESPONDING_FILE_NOT_FOUND:'%s could not find the corresponding file: "%s"',JSON_SHOULD_NOT_CONTAIN:"%s should not contain %s",JSON_SHOULD_NOT_START_WITH:"%s should not begin with '%s'",NOT_FOUND:"%s not found",COMPONENT_NOT_FOUND:"%s, component not found in the path: %s",NOT_FOUND_IN_ROOT_DIR:"%s is not found in the project root directory",MINIPROGRAM_APP_JSON_NOT_FOUND:'In the directory %s specified by "miniprogramRoot" in project.config.json, %s is not found in that directory.If you don\'t know what "miniprogramRoot" means for, just leave it as empty string.',PLUGIN_JSON_NOT_FOUND:"In the miniprogram local development plug-in directory %s specified by pluginRoot in project.config.json, %s is not found",PLUGIN_PATH_SAME_WITH_MINIPROGRAM:"The plugin directory %s specified by pluginRoot in project.config.json is the same as the miniprogram directory %s, please modify it to a different directory",CONTENT_EXIST:"%s already exists",FILE_NOT_FOUND:'"%s" file not found, or the file read failed',JSON_PARSE_ERROR:"%s File parsing error",ENTRANCE_NOT_FOUND:"No pages : %s defined in the entry page \napp.json is found",JSON_PAGE_FILE_NOT_EXISTS:'%s %s "%s" could not find the corresponding %s file',SHOULD_NOT_IN:"%s Should not exist in %s",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS_TITLE:"app.json or custom compilation condition error",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS:"The startup page %s specified in the custom compilation is not defined in app.json",JSON_ENTRY_PAGE_PATH_NOT_FOUND:"No entry page defined in %s is found in %s",JSON_TABBAR_AT_LEAST:'["tabBar"]["list"] must contain at least %s items',JSON_TABBAR_AT_MOST:'["tabBar"]["list"] cannot contain more than %s items',JSON_TABBAR_PATH_EMPTY:'["tabBar"]["list"][%s]["pagePath"] cannot be empty',JSON_TABBAR_PATH_SAME_WITH_OTHER:'["tabBar"]["list"][%s]["pagePath"] is same with ["tabBar"]["list"][%s]["pagePath"]',JSON_TABBAR_ICON_MAX_SIZE:'The size of ["tabBar"]["list"][%s]["%s"] exceeds %skb',JSON_TABBAR_ICON_EXT:'["tabBar"]["list"][%s]["%s"] Wrong file format, only %s format is supported',EXT_SHOULD_BE_ERROR:'extension name of %s should be "%s"',JSON_CONTENT_SHOULD_NOT_BE:"%s cannot be %s",JSON_RESOLVE_ALIAS_ILLEGAL:'Invalid %s or %s in resolveAlias field, contains consecutive "//"',JSON_RESOLVE_ALIAS_INCLUDE_STAR:'The key "%s" or value "%s" in resolveAlias field should end with "/*"',JSON_RESOLVE_ALIAS_SHOULD_NOT_START_WITH:'The value "%s" in resolveAlias field should not start with "./"',APP_JSON_SKYLINE_WINDOW_TIPS:'Due to the "custom" navigationStyle of the Skyline page, the configuration of "navigationStyle", "navigationBarTextStyle", "navigationBarTitleText", and "navigationBarBackgroundColor" in app.json will not take effect.',APP_JSON_SHOULD_SET_LAZYCODELOADING:'You need to add "lazyCodeLoading": "requiredComponents" in app.json, since the value of "renderer" in %s is "skyline"',APP_JSON_SHOULD_SET_RENDEREROPTIONS:'You need to configure the "skyline" sub-option in the "rendererOptions" option in app.json, since the value of "renderer" in %s is "skyline"',JSON_SHOULD_SET_RENDEREROPTIONS:'You need to add "rendererOptions" field in %, as the "renderer" field is set to skyline。More detail: https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/wxss.html#%E5%BC%80%E5%90%AF%E9%BB%98%E8%AE%A4Block%E5%B8%83%E5%B1%80',JSON_SHOULD_SET_RENDEREROPTIONS_SKYLINE:'You need to add "skyline" configuration in the rendererOptions field of the %, as the "renderer" field is set to skyline。More detail: https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/wxss.html#%E5%BC%80%E5%90%AF%E9%BB%98%E8%AE%A4Block%E5%B8%83%E5%B1%80',JSON_SHOULD_SET_COMPONENTFRAMEWORK_SKYLINE:'You need to set the value of the "componentFramework" field to "glass-easel" in the %, as the "renderer" field is set to skyline。More detail: https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/migration.html',PAGE_JSON_SHOULD_SET_DISABLESCROLL_TRUE:'According to the configuration of the page or app.json, the value of "renderer" in %s page is "skyline", the "disableScroll" configuration for the page should be set to true',PAGE_JSON_SHOULD_SET_NAVIGATIONSTYLE_CUSTOM:'According to the configuration of the page or app.json, the value of "renderer" in %s page is "skyline", the "navigationStyle" configuration for the page should be set to "custom"',JSON_CONTENT_EXISTED:"%s already exists",JSON_CONTENT_NOT_FOUND:"%s does not exist",LACK_OF_FILE:"File %s is missing",JSON_PAGES_REPEAT:"%s is repeated in %s",JSON_CONTENT_REPEAT:"%s could not be declared both in %s",EXT_JSON_INVALID:'%s is not a 3rdMiniProgramAppid, ext.json cannot take effect;Read the documentation: "%s"',GAME_EXT_JSON_INVALID:"%s is not a 3rdMiniGameAppid, ext.json cannot take effect;",EXT_APPID_SHOULD_NOT_BE_EMPTY:"extAppid should not be empty",FILE_NOT_UTF8:"%s file is not in UTF-8 encoding",INVALID:"invalid %s",DIRECTORY:"Directory",EXCEED_LIMIT:"%s exceed limit %s",PLEASE_CHOOSE_PLUGIN_MODE:"If you are developing a plugin, choose the plugin mode",TRIPLE_NUMBER_DOT:"digit.digit.digit, each segment of digit is no more than 3 digits",PAGE_PATH:"Page Path",PLUGINS_SAME_ALIAS:"%s and %s have same alias",SAME_ITEM:'%s and %s have same "%s"',ALREADY_EXISTS:"already exists",SAME_KEY_PAGE_PUBLICCOMPONENTS:'There can not be the same key: %s in ["pages"] and ["publicComponents"]',GAME_DEV_PLUGIN_SHOULD_NOT_USE_LOCAL_PATH:"Dev plugin: %s shall never specify a local path",GAME_PLUGIN_SIGNATURE_MD5_NOT_MATCH_CONTENT:'MD5 hash of the plugin library file "%s": "%s" not matching the value "%s" given by its signature.json, thus the compiling process has been interrupted.\nThis indicates you might have changed the content of the file.\nRestore the original content of this file may help solve the issue and remove this warning.\n\nTo learn more, you may refer to the documentation.\n',FILE:"FILE",PROCESSING:"processing: %s",DONE:"done: %s",UPLOAD:"upload",SUCCESS:"success",PROJECT_TYPE_ERROR:"project.type is %s, but appid(%s) is %s",MINI_PROGRAM:"MiniProgram",MINI_GAME:"MiniGame",NOT_ALLOWED_REQUIRE_VAR:"Require variable is not allowed",NOT_ALLOWED_REQUIRE_ASSIGN:"Assigning the require function to other variables is not allowed",NOT_FOUND_NPM_ENTRY:"Npm package entry file not found",NOT_FOUND_NODE_MODULES:"NPM packages not found. Please confirm npm packages which need to build are belong to `miniprogramRoot` directory. Or you may edit project.config.json's `packNpmManually` and `packNpmRelationList`",JSON_ENTRANCE_DECLARE_PATH_ERR:'["entranceDeclare"]["locationMessage"]["path"] "%s" should belong to pages or pages in sub packages',JSON_ENTRANCE_DECLARE_PATH_EMPTY:'["entranceDeclare"]["locationMessage"]["path"] should not be empty',JSON_REQUIRED_PRIVATE_INFOS_MUTUALLY_EXCLUSIVE:"requiredPrivateInfos %s is is mutually exclusive with %s.",COULD_NOT_USE_CODE_PROTECT:"Code protect is not available",SUMMER_COMPILING_MODULE:"Compiling %s",SUMMER_COMPILE_JSON:"Compile jSON files",SUMMER_OPTIMIZE_CODE:"Optimize code",SUMMER_PACK_FILES:"Pack resource file",SUMMER_COMPRESS_PACK:"Compress code package",SUMMER_SEAL_PACK:"Seal code package",SUMMER_APPEND_BABEL_HELPERS:"Append babel helper files",SUMMER_COMPILE_PAGE_JSON:"Compile json files of %s pages",SUMMER_COMPILE_PLUGIN_PAGE_JSON:"Compiling json files of %s plugin pages",SUMMER_COMPILE:"Compile %s",SUMMER_COMPILE_MINIPROGRAM:"Compile miniprogram",SUMMER_COMPILE_MINIGAME:"Compile minigame",SUMMER_COMPILE_PLUGIN:"Compile plugin",FILE_EXT_FORMAT_ERROR:"%s Wrong file format, only %s format is supported",THEME_JSON_VALUE_SHOULD_BE:"%s as the value of %s , should be %s",JSON_VARIABLE_VALUE_NOT_FOUND:"could not find the value of %s in %s",THEME_JSON_SHOULD_EXIST:"%s use variable: %s,you need to use %s to specify the path of theme.json",PARSEERR_ENTRANCE_PAGE_ERROR:"The entrance page cannot be found\nPages defined in app.json : %s",PARSEERR_ENTRANCE_FILE_ERROR:"Failed to find or read the entrance file %s. Please recompile after checking",COMPILE_WXML_ERROR_CONSOLE:"compile .wxml error. The error message is as above, and you can view more details in the console.",COMPILE_WXSS_ERROR_CONSOLE:"Compile .wxss error. The error message is as above, and you can view more details in the console.",RELATED_NODE_MODULES_NOT_FOUND:"The related node_modules of %s is not found, please run `npm install` at %s",PACKAGE_JSON_PATH_IN_VALID:'packageJsonPath should ends with `package.json`, "%s" is invalid.',ACCOUNT_CARD_PACKAPGE_IN_VALID:'The independent subpackage defined with the value ["AccountCardPackage"]["root"] as the path was not found. Please check the ["subPackages"] configuration.'},formatConfig={};for(const[e,o]of Object.entries(config))formatConfig[e]=new fomatable_string_1.FormatableString(o);exports.default=formatConfig;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormatableString=void 0;class FormatableString extends String{format(...t){const e=t[0];let r=this;return"[object Array]"===Object.prototype.toString.call(e)?(e.forEach(t=>{r=r.replace("%s",t)}),r):(t.forEach(t=>{r=r.replace("%s",t)}),""+r)}}exports.FormatableString=FormatableString;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormatableString=void 0;class FormatableString extends String{format(...t){const e=t[0];let r=this;return"[object Array]"===Object.prototype.toString.call(e)?(e.forEach(t=>{r=r.replace("%s",t)}),r):(t.forEach(t=>{r=r.replace("%s",t)}),""+r)}}exports.FormatableString=FormatableString;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),en_1=tslib_1.__importDefault(require("./en")),zh_1=tslib_1.__importDefault(require("./zh")),systemLocale="$SYSTEM",supportedLocales=["zh","en"];let locale="en";const toSupportedLocale=e=>("$SYSTEM"===e&&"zh_CN"===(e=navigator.language)&&(e="zh"),supportedLocales.find(t=>e.toLowerCase().includes(t))||"zh"),getLocale=()=>locale,setLocale=e=>{locale=toSupportedLocale(e)};exports.default={get config(){return"en"===locale?en_1.default:zh_1.default},setLocale:setLocale,getLocale:getLocale};
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),en_1=tslib_1.__importDefault(require("./en")),zh_1=tslib_1.__importDefault(require("./zh")),systemLocale="$SYSTEM",supportedLocales=["zh","en"];let locale="en";const toSupportedLocale=e=>("$SYSTEM"===e&&"zh_CN"===(e=navigator.language)&&(e="zh"),supportedLocales.find(t=>e.toLowerCase().includes(t))||"zh"),setLocale=e=>{locale=toSupportedLocale(e)},getLocale=()=>locale;exports.default={get config(){return"en"===locale?en_1.default:zh_1.default},setLocale:setLocale,getLocale:getLocale};
|
package/dist/utils/locales/zh.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const fomatable_string_1=require("./fomatable_string"),config={GENERATE_LOCAL_SIGNATURE_FAIL:"生成本地签名失败。通常是key文件编码或者内容有误。错误详情: %s",PARAM_ERROR:'方法:"%s" 缺少参数:"%s"',SHOULD_NOT_BE_EMPTY:"%s 不能为空",JSON_CONTENT_SHOULD_BE:"%s 字段需为 %s",SHOULD_AT_LEAST_ONE_ITEM:"%s 需至少存在一项",SHOULD_MATCH:"%s 需与 %s 匹配",SHOULD_EQUAL:"%s 需等于 %s",EXT_SHOULD_BE_ERROR:'%s 的拓展名需为 "%s"',OR:"或",CORRESPONDING_FILE_NOT_FOUND:"未找到 %s 对应的 %s 文件",JSON_SHOULD_NOT_START_WITH:"%s 不应该以 '%s' 开头",JSON_SHOULD_NOT_CONTAIN:"%s 不应该包含 %s",NOT_FOUND:"%s 未找到",NOT_FOUND_IN_ROOT_DIR:"在项目根目录未找到 %s ",MINIPROGRAM_APP_JSON_NOT_FOUND:"根据 project.config.json 中 miniprogramRoot 指定的小程序目录 %s,在该目录下未找到 %s。\n如果你不理解 miniprogramRoot 字段的含义,请在 project.config.json 中将 miniprogramRoot 设为空字符串。\n详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",PLUGIN_JSON_NOT_FOUND:"根据 project.config.json 中 pluginRoot 指定的小程序本地开发插件目录 %s,%s 未找到",PLUGIN_PATH_SAME_WITH_MINIPROGRAM:"project.config.json 中 pluginRoot 指定的小程序本地开发插件目录 %s,与小程序目录 %s 相同,请修改为不同目录",FILE_NOT_FOUND:"未找到 %s 文件,或者文件读取失败",JSON_PARSE_ERROR:"%s 文件解析错误",ENTRANCE_NOT_FOUND:"未找到入口页面\napp.json 中定义的 pages : %s",JSON_PAGE_FILE_NOT_EXISTS:'未找到 %s 中的定义的 %s "%s" 对应的 %s 文件',SHOULD_NOT_IN:"%s 不应该在 %s 中",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS_TITLE:"app.json 或自定义编译条件错误",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS:"app.json 中未定义自定义编译中指定的启动页面 %s",JSON_ENTRY_PAGE_PATH_NOT_FOUND:"未在 %s 中找到 %s 定义的入口页面",JSON_TABBAR_AT_LEAST:'["tabBar"]["list"] 需至少包含 %s 项',JSON_TABBAR_AT_MOST:'["tabBar"]["list"] 不能超过 %s 项',JSON_TABBAR_PATH_EMPTY:'["tabBar"]["list"][%s]["pagePath"] 不能为空',JSON_TABBAR_PATH_SAME_WITH_OTHER:'["tabBar"]["list"][%s]["pagePath"] 和 ["tabBar"]["list"][%s]["pagePath"] 相同',JSON_TABBAR_ICON_MAX_SIZE:'["tabBar"]["list"][%s]["%s"] 大小超过 %skb',JSON_TABBAR_ICON_EXT:'["tabBar"]["list"][%s]["%s"] 文件格式错误,仅支持 %s 格式',JSON_CONTENT_SHOULD_NOT_BE:"%s 不能为 %s",JSON_RESOLVE_ALIAS_ILLEGAL:'resolveAlias 配置中 %s 或 %s 不合法,包含连续的 "//"',JSON_RESOLVE_ALIAS_INCLUDE_STAR:'resolveAlias 配置中 %s 或 %s 需要用 "/*" 结尾',JSON_RESOLVE_ALIAS_SHOULD_NOT_START_WITH:'resolveAlias 配置中 %s 不能以 "./" 开头',JSON_REQUIRED_PRIVATE_INFOS_MUTUALLY_EXCLUSIVE:"requiredPrivateInfos %s 与 %s 互斥",APP_JSON_SHOULD_SET_LAZYCODELOADING:'%s 中 "renderer" 设置为 "skyline",需在 app.json 添加 "lazyCodeLoading": "requiredComponents"',PAGE_JSON_SHOULD_SET_DISABLESCROLL_TRUE:'根据页面或 app.json 的配置,%s 页面 "renderer" 为 "skyline",需在页面配置中添加 "disableScroll": true',PAGE_JSON_SHOULD_SET_NAVIGATIONSTYLE_CUSTOM:'根据页面或 app.json 的配置,%s 页面 "renderer" 为 "skyline",需在页面配置中添加 "navigationStyle": custom',CONTENT_EXIST:"%s 已经存在",JSON_CONTENT_EXISTED:"%s 已经存在",JSON_CONTENT_NOT_FOUND:"%s 不存在",LACK_OF_FILE:"缺少文件 %s",JSON_PAGES_REPEAT:"%s 在 %s 中重复",JSON_CONTENT_REPEAT:"%s 不能同时在 %s 中声明",EXT_JSON_INVALID:'%s 不是 3rdMiniProgramAppid, ext.json 无法生效;查看文档: "%s"',GAME_EXT_JSON_INVALID:'%s 不是 3rdMiniGameAppid, ext.json 无法生效;"%s"',EXT_APPID_SHOULD_NOT_BE_EMPTY:"extAppid 不能为空",FILE_NOT_UTF8:"%s 文件不是 UTF-8 格式",INVALID:"无效的 %s",DIRECTORY:"目录",EXCEED_LIMIT:"%s 超过限制 %s",PLEASE_CHOOSE_PLUGIN_MODE:"如果正在开发插件,请选择插件模式",TRIPLE_NUMBER_DOT:"数字.数字.数字",PAGE_PATH:"页面路径",PLUGINS_SAME_ALIAS:"%s 和 %s 的别名相同",SAME_ITEM:'%s 和 %s 的 "%s" 相同',ALREADY_EXISTS:"已存在",SAME_KEY_PAGE_PUBLICCOMPONENTS:'["pages"] 与 ["publicComponents"] 不能存在相同的 key: %s',GAME_DEV_PLUGIN_SHOULD_NOT_USE_LOCAL_PATH:"开发版插件 %s 不能使用 %s 指定本地路径",GAME_PLUGIN_SIGNATURE_MD5_NOT_MATCH_CONTENT:'插件文件 "%s" 的 MD5: "%s" 与其 signature.json 所给定的值: "%s" 不匹配, 因此编译过程已经中断。\n这表示此文件的内容可能已经被修改。\n恢复此文件的原始内容可能可以解决此问题并移除此警告。\n\n要了解更多,可以参考文档。\n',FILE:"文件",PROCESSING:"处理中: %s",DONE:"完成: %s",UPLOAD:"上传",SUCCESS:"成功",PROJECT_TYPE_ERROR:"project.type 是 %s, 但 appid(%s) 是 %s",MINI_PROGRAM:"小程序",MINI_GAME:"小游戏",NOT_ALLOWED_REQUIRE_VAR:"不允许require变量",NOT_ALLOWED_REQUIRE_ASSIGN:"不允许将require函数赋值给其他变量",NOT_FOUND_NPM_ENTRY:"未找到npm包入口文件",NOT_FOUND_NODE_MODULES:"没有找到可以构建的 NPM 包,请确认需要参与构建的 npm 都在 `miniprogramRoot` 目录内,或配置 project.config.json 的 packNpmManually 和 packNpmRelationList 进行构建",JSON_ENTRANCE_DECLARE_PATH_ERR:'["entranceDeclare"]["locationMessage"]["path"] "%s" 需在 pages 数组或分包 pages 数组中',JSON_ENTRANCE_DECLARE_PATH_EMPTY:'["entranceDeclare"]["locationMessage"]["path"] 不能为空',COULD_NOT_USE_CODE_PROTECT:"无法使用代码保护功能",SUMMER_COMPILING_MODULE:"编译 %s",SUMMER_COMPILE_JSON:"编译 JSON 文件",SUMMER_OPTIMIZE_CODE:"优化代码",SUMMER_PACK_FILES:"打包资源文件",SUMMER_COMPRESS_PACK:"压缩代码包",SUMMER_SEAL_PACK:"封装代码包",SUMMER_APPEND_BABEL_HELPERS:"追加 babel helper 文件",SUMMER_COMPILE_PAGE_JSON:"编译 %s 个页面json文件",SUMMER_COMPILE_PLUGIN_PAGE_JSON:"编译插件 %s 个页面json文件",SUMMER_COMPILE:"编译 %s",SUMMER_COMPILE_MINIPROGRAM:"编译打包小程序",SUMMER_COMPILE_PLUGIN:"编译打包插件"},formatConfig={};for(const[_,E]of Object.entries(config))formatConfig[_]=new fomatable_string_1.FormatableString(E);exports.default=formatConfig;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const fomatable_string_1=require("./fomatable_string"),config={GENERATE_LOCAL_SIGNATURE_FAIL:"生成本地签名失败。通常是key文件编码或者内容有误。错误详情: %s",PARAM_ERROR:'方法:"%s" 缺少参数:"%s"',SHOULD_NOT_BE_EMPTY:"%s 不能为空",JSON_CONTENT_SHOULD_BE:"%s 字段需为 %s",SHOULD_AT_LEAST_ONE_ITEM:"%s 需至少存在一项",SHOULD_MATCH:"%s 需与 %s 匹配",SHOULD_EQUAL:"%s 需等于 %s",EXT_SHOULD_BE_ERROR:'%s 的拓展名需为 "%s"',OR:"或",CORRESPONDING_FILE_NOT_FOUND:"未找到 %s 对应的 %s 文件",JSON_SHOULD_NOT_START_WITH:"%s 不应该以 '%s' 开头",JSON_SHOULD_NOT_CONTAIN:"%s 不应该包含 %s",NOT_FOUND:"%s 未找到",COMPONENT_NOT_FOUND:"%s,在 %s 路径下未找到组件",NOT_FOUND_IN_ROOT_DIR:"在项目根目录未找到 %s ",MINIPROGRAM_APP_JSON_NOT_FOUND:"根据 project.config.json 中 miniprogramRoot 指定的小程序目录 %s,在该目录下未找到 %s。\n如果你不理解 miniprogramRoot 字段的含义,请在 project.config.json 中将 miniprogramRoot 设为空字符串。\n详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",PLUGIN_JSON_NOT_FOUND:"根据 project.config.json 中 pluginRoot 指定的小程序本地开发插件目录 %s,%s 未找到",PLUGIN_PATH_SAME_WITH_MINIPROGRAM:"project.config.json 中 pluginRoot 指定的小程序本地开发插件目录 %s,与小程序目录 %s 相同,请修改为不同目录",FILE_NOT_FOUND:"未找到 %s 文件,或者文件读取失败",JSON_PARSE_ERROR:"%s 文件解析错误",ENTRANCE_NOT_FOUND:"未找到入口页面\napp.json 中定义的 pages : %s",JSON_PAGE_FILE_NOT_EXISTS:'未找到 %s 中的定义的 %s "%s" 对应的 %s 文件',SHOULD_NOT_IN:"%s 不应该在 %s 中",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS_TITLE:"app.json 或自定义编译条件错误",JSON_CUSTOM_COMPILE_PATH_NOT_EXISTS:"app.json 中未定义自定义编译中指定的启动页面 %s",JSON_ENTRY_PAGE_PATH_NOT_FOUND:"未在 %s 中找到 %s 定义的入口页面",JSON_TABBAR_AT_LEAST:'["tabBar"]["list"] 需至少包含 %s 项',JSON_TABBAR_AT_MOST:'["tabBar"]["list"] 不能超过 %s 项',JSON_TABBAR_PATH_EMPTY:'["tabBar"]["list"][%s]["pagePath"] 不能为空',JSON_TABBAR_PATH_SAME_WITH_OTHER:'["tabBar"]["list"][%s]["pagePath"] 和 ["tabBar"]["list"][%s]["pagePath"] 相同',JSON_TABBAR_ICON_MAX_SIZE:'["tabBar"]["list"][%s]["%s"] 大小超过 %skb',JSON_TABBAR_ICON_EXT:'["tabBar"]["list"][%s]["%s"] 文件格式错误,仅支持 %s 格式',JSON_CONTENT_SHOULD_NOT_BE:"%s 不能为 %s",JSON_RESOLVE_ALIAS_ILLEGAL:'resolveAlias 配置中 %s 或 %s 不合法,包含连续的 "//"',JSON_RESOLVE_ALIAS_INCLUDE_STAR:'resolveAlias 配置中 %s 或 %s 需要用 "/*" 结尾',JSON_RESOLVE_ALIAS_SHOULD_NOT_START_WITH:'resolveAlias 配置中 %s 不能以 "./" 开头',JSON_REQUIRED_PRIVATE_INFOS_MUTUALLY_EXCLUSIVE:"requiredPrivateInfos %s 与 %s 互斥",APP_JSON_SKYLINE_WINDOW_TIPS:"由于 skyline 页面的 navigationStyle 是 custom,app.json 中的 window 配置 navigationStyle、navigationBarTextStyle、navigationBarTitleText、navigationBarBackgroundColor 是不生效的",APP_JSON_SHOULD_SET_LAZYCODELOADING:'%s 中 "renderer" 设置为 "skyline",需在 app.json 添加 "lazyCodeLoading": "requiredComponents"',APP_JSON_SHOULD_SET_RENDEREROPTIONS:'%s 中 "renderer" 设置为 "skyline",需在 app.json 设置 "rendererOptions" 选项中 "skyline" 子选项的内容',JSON_SHOULD_SET_RENDEREROPTIONS:'%s 中 "renderer" 设置为 "skyline",需要同时设置 rendererOptions 选项以及 skyline 配置。\n详见文档:https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/wxss.html#%E5%BC%80%E5%90%AF%E9%BB%98%E8%AE%A4Block%E5%B8%83%E5%B1%80',JSON_SHOULD_SET_RENDEREROPTIONS_SKYLINE:'%s 中 "renderer" 设置为 "skyline",需要同时设置 rendererOptions 字段中 skyline 配置。\n详见文档:https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/wxss.html#%E5%BC%80%E5%90%AF%E9%BB%98%E8%AE%A4Block%E5%B8%83%E5%B1%80',JSON_SHOULD_SET_COMPONENTFRAMEWORK_SKYLINE:'%s 中 "renderer" 设置为 "skyline",需要同时设置 componentFramework 字段为 "glass-easel" 。\n详见文档:https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/migration.html',PAGE_JSON_SHOULD_SET_DISABLESCROLL_TRUE:'根据页面或 app.json 的配置,%s 页面 "renderer" 为 "skyline",页面配置 "disableScroll" 需设置为 true',PAGE_JSON_SHOULD_SET_NAVIGATIONSTYLE_CUSTOM:'根据页面或 app.json 的配置,%s 页面 "renderer" 为 "skyline",页面配置 "navigationStyle" 需设置为 "custom"',CONTENT_EXIST:"%s 已经存在",JSON_CONTENT_EXISTED:"%s 已经存在",JSON_CONTENT_NOT_FOUND:"%s 不存在",LACK_OF_FILE:"缺少文件 %s",JSON_PAGES_REPEAT:"%s 在 %s 中重复",JSON_CONTENT_REPEAT:"%s 不能同时在 %s 中声明",EXT_JSON_INVALID:'%s 不是 3rdMiniProgramAppid, ext.json 无法生效;查看文档: "%s"',GAME_EXT_JSON_INVALID:'%s 不是 3rdMiniGameAppid, ext.json 无法生效;"%s"',EXT_APPID_SHOULD_NOT_BE_EMPTY:"extAppid 不能为空",FILE_NOT_UTF8:"%s 文件不是 UTF-8 格式",INVALID:"无效的 %s",DIRECTORY:"目录",EXCEED_LIMIT:"%s 超过限制 %s",PLEASE_CHOOSE_PLUGIN_MODE:"如果正在开发插件,请选择插件模式",TRIPLE_NUMBER_DOT:"数字.数字.数字,每段数字不超过 3 位",PAGE_PATH:"页面路径",PLUGINS_SAME_ALIAS:"%s 和 %s 的别名相同",SAME_ITEM:'%s 和 %s 的 "%s" 相同',ALREADY_EXISTS:"已存在",SAME_KEY_PAGE_PUBLICCOMPONENTS:'["pages"] 与 ["publicComponents"] 不能存在相同的 key: %s',GAME_DEV_PLUGIN_SHOULD_NOT_USE_LOCAL_PATH:"开发版插件 %s 不能使用 %s 指定本地路径",GAME_PLUGIN_SIGNATURE_MD5_NOT_MATCH_CONTENT:'插件文件 "%s" 的 MD5: "%s" 与其 signature.json 所给定的值: "%s" 不匹配, 因此编译过程已经中断。\n这表示此文件的内容可能已经被修改。\n恢复此文件的原始内容可能可以解决此问题并移除此警告。\n\n要了解更多,可以参考文档。\n',FILE:"文件",PROCESSING:"处理中: %s",DONE:"完成: %s",UPLOAD:"上传",SUCCESS:"成功",PROJECT_TYPE_ERROR:"project.type 是 %s, 但 appid(%s) 是 %s",MINI_PROGRAM:"小程序",MINI_GAME:"小游戏",NOT_ALLOWED_REQUIRE_VAR:"不允许require变量",NOT_ALLOWED_REQUIRE_ASSIGN:"不允许将require函数赋值给其他变量",NOT_FOUND_NPM_ENTRY:"未找到npm包入口文件",NOT_FOUND_NODE_MODULES:"没有找到可以构建的 NPM 包,请确认需要参与构建的 npm 都在 `miniprogramRoot` 目录内,或配置 project.config.json 的 packNpmManually 和 packNpmRelationList 进行构建",JSON_ENTRANCE_DECLARE_PATH_ERR:'["entranceDeclare"]["locationMessage"]["path"] "%s" 需在 pages 数组或分包 pages 数组中',JSON_ENTRANCE_DECLARE_PATH_EMPTY:'["entranceDeclare"]["locationMessage"]["path"] 不能为空',COULD_NOT_USE_CODE_PROTECT:"无法使用代码保护功能",SUMMER_COMPILING_MODULE:"编译 %s",SUMMER_COMPILE_JSON:"编译 JSON 文件",SUMMER_OPTIMIZE_CODE:"优化代码",SUMMER_PACK_FILES:"打包资源文件",SUMMER_COMPRESS_PACK:"压缩代码包",SUMMER_SEAL_PACK:"封装代码包",SUMMER_APPEND_BABEL_HELPERS:"追加 %s helper 文件",SUMMER_COMPILE_PAGE_JSON:"编译 %s 个页面json文件",SUMMER_COMPILE_PLUGIN_PAGE_JSON:"编译插件 %s 个页面json文件",SUMMER_COMPILE:"编译 %s",SUMMER_COMPILE_MINIPROGRAM:"编译打包小程序",SUMMER_COMPILE_MINIGAME:"编译打包小游戏",SUMMER_COMPILE_PLUGIN:"编译打包插件",FILE_EXT_FORMAT_ERROR:"%s 文件格式错误,仅支持 %s 格式",THEME_JSON_VALUE_SHOULD_BE:"%s 作为 %s 的值,需要为 %s",JSON_VARIABLE_VALUE_NOT_FOUND:"%s 定义的变量未在 %s 中找到对应的值",THEME_JSON_SHOULD_EXIST:"%s 使用了变量 %s,需要使用 %s 来指定 theme.json 的路径",PARSEERR_ENTRANCE_PAGE_ERROR:"未找到入口页面\napp.json 中定义的 pages : %s",PARSEERR_ENTRANCE_FILE_ERROR:"未找到入口 %s 文件,或者文件读取失败,请检查后重新编译。",COMPILE_WXML_ERROR_CONSOLE:"编译 .wxml 文件错误,错误信息如上,可在控制台查看更详细信息",COMPILE_WXSS_ERROR_CONSOLE:"编译 .wxss 文件错误,错误信息如上,可在控制台查看更详细信息",RELATED_NODE_MODULES_NOT_FOUND:"%s 对应的 node_modules 不存在,请在 %s 执行 `npm install`",PACKAGE_JSON_PATH_IN_VALID:'packageJsonPath 需以 `package.json` 结尾, "%s" 是不合法的',ACCOUNT_CARD_PACKAPGE_IN_VALID:'没有找到以 ["AccountCardPackage"]["root"] 的值作为路径定义的独立分包,请检查 ["subPackages"] 配置并进行修改。'},formatConfig={};for(const[_,E]of Object.entries(config))formatConfig[_]=new fomatable_string_1.FormatableString(E);exports.default=formatConfig;
|
package/dist/utils/log.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={info:console.info,log:console.log,warn:console.warn,error:console.error,debug:(...e)=>{}};
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.error=exports.warn=exports.debug=exports.log=exports.info=exports.success=void 0;const tslib_1=require("tslib"),chalk_1=tslib_1.__importDefault(require("chalk")),success=(...e)=>console.debug(chalk_1.default.green("[success]"),...e);exports.success=success;const info=(...e)=>console.log(chalk_1.default.blue("[info]"),...e);exports.info=info;const log=(...e)=>console.log(chalk_1.default.blue("[log]"),...e);exports.log=log;const debug=(...e)=>console.debug(chalk_1.default.yellow("[debug]"),...e);exports.debug=debug;const warn=(...e)=>console.log(chalk_1.default.yellow("[warn]"),...e);exports.warn=warn;const error=(...e)=>console.log(chalk_1.default.red("[error]"),...e);exports.error=error;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MessageHub=void 0;class MessageHub{constructor(s){this.devtoolMessagehub=s}showStatus(s,e,o="info"){var t,u;null===(u=(t=this.devtoolMessagehub).showStatus)||void 0===u||u.call(t,s,e,o)}hideStatus(s){var e,o;null===(o=(e=this.devtoolMessagehub).hideStatus)||void 0===o||o.call(e,s)}showBuildLog(s,e,o){this.devtoolMessagehub.showBuildLog(""+s,e,o)}}exports.MessageHub=MessageHub;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.signAndInstallOrExport=exports.doCertificateSignAndInstallOrExport=exports.doAppleIdSignAndInstallOrExport=exports.clearCache=exports.getIOSDevices=exports.miniappSinTypes=exports.DEFAULT_BUNDLE_ID=void 0;const tslib_1=require("tslib"),child_process=tslib_1.__importStar(require("child_process")),singletontask_1=require("./singletontask"),zip_1=require("./zip"),cp_1=require("./cp"),tools_1=require("./tools"),progressRecorder_1=require("./progressRecorder"),download_1=require("./download"),glob_1=tslib_1.__importDefault(require("glob")),miniappJson_1=require("./miniappJson"),generateIpa_1=require("./generateIpa"),path=require("path"),os=require("os"),fse=require("fs-extra"),querystring=require("querystring");exports.DEFAULT_BUNDLE_ID="com.tencent.devtoolssaaademo.db";const isMac="darwin"===process.platform,remoteUrlRoot="http://dldir1.qq.com/WechatWebDev/donut/miniapp-builder/";exports.miniappSinTypes={appleId:{type:"appleId"},certificate:{type:"certificate"}};const majorVersion="0",signAndInstallTask={};async function getMiniAppBuilderVersion(e="cli"){try{"dev"!==e&&"cli"!==e&&(e="release-0");const i=`${remoteUrlRoot}versionMap/${e}.json`,n=path.join(os.tmpdir(),"miniapp-builder-version.json");fse.existsSync(n)&&fse.removeSync(n),await(0,download_1.downloadLargeFile)(i,n);const t=fse.readJSONSync(n);return isMac?t.mac:t.win}catch(e){throw new Error("getMiniAppBuilderVersion fail: "+e.message)}}async function downloadMiniAppBuilder(e,i,n){const t=`${remoteUrlRoot}${isMac?"mac":"win"}/miniapp-builder-${e}.zip`,s=path.join(os.tmpdir(),"miniapp-builder.zip");fse.existsSync(s)&&fse.removeSync(s),null==n||n.progress("Downloading the miniapp-builder..."),await(0,download_1.downloadLargeFile)(t,s),await(0,zip_1.unzip)(s,i)}async function getMiniAppBuilder(e){const{miniappDirPath:i=path.join(__dirname,"../vendor"),devtoolsVersion:n="cli",recorder:t}=e,s=await getMiniAppBuilderVersion(n);let r="";const a=path.join(i,"miniapp-builder");if(r="win32"===process.platform?(0,tools_1.unifyPath)(path.join(a,s,"MiniappBuilder.exe")):(0,tools_1.unifyPath)(path.join(a,s,"MiniAppBuilder")),!fse.existsSync(r)){fse.ensureDirSync(a),fse.emptyDirSync(a);const e=path.dirname(r);fse.ensureDirSync(e),await downloadMiniAppBuilder(s,e,t);glob_1.default.sync("*",{nodir:!0,cwd:e}).forEach(i=>{fse.chmodSync(path.join(e,i),"777")})}return{builderPath:r,exe:path.basename(r),cwd:path.dirname(r)}}async function getIOSDevices(e){const{builderPath:i}=await getMiniAppBuilder(e),n=child_process.execSync(`"${i}" --action getDevices`,{}).toString().split("\n"),t=[];return n.forEach(e=>{if(e.trim()){const i=e.split("|");t.push({type:"device",name:(i[1]||"").trim(),version:(i[2]||"").trim(),udid:(i[3]||"").trim()})}}),t}async function clearCache(e){const{builderPath:i}=await getMiniAppBuilder(e),n=(0,miniappJson_1.getTargetMiniprogramArg)(e.projectPath,"appid");child_process.execSync(`"${i}" --appid ${n} --action clear --type ${e.type}`,{})}async function doAppleIdSignAndInstallOrExport(e,i){const{recorder:n}=i,t=genInterceptRecorder(n),{exe:s,cwd:r,builderPath:a}=await getMiniAppBuilder(i),p=(0,tools_1.unifyPath)(e.ipaPath),o=["--appid",(0,miniappJson_1.getTargetMiniprogramArg)(e.projectPath,"appid"),"--action","sign","--ipa",p,"--type","appleId"];if(e.appleId&&o.push("-ai",e.appleId),e.password&&o.push("-p",e.password),e.entitlements&&o.push("--entitlements",querystring.stringify(e.entitlements)),e.install&&(isMac?o.push("--install"):o.push("--install","true")),e.deviceId&&o.push("--deviceId",e.deviceId),e.output&&o.push("--output",e.output),e.bundleId){const i=e.bundleId===exports.DEFAULT_BUNDLE_ID?"auto":e.bundleId;o.push("--bundleId",i)}try{return signAndInstallTask[p]||(signAndInstallTask[p]=isMac?new singletontask_1.SingletonTask(cp_1.spawnSync.bind(null,a,o,{},t)):new singletontask_1.SingletonTask(cp_1.spawnSync.bind(null,s,o,{cwd:r},t))),await signAndInstallTask[p].getResult(!0),{success:!0}}catch(e){return{success:!1,errMsg:e.message}}finally{delete signAndInstallTask[p]}}async function doCertificateSignAndInstallOrExport(e,i){const{recorder:n}=i,{exe:t,cwd:s,builderPath:r}=await getMiniAppBuilder(i),a=(0,miniappJson_1.tryGetIOSMiniappJson)(e.projectPath),p=(0,miniappJson_1.iOSMiniAppJsonIsUsingTpush)(a),o=e.miniappCacheDirPath||"",l=(0,tools_1.unifyPath)(e.ipaPath),c=["--appid",(0,miniappJson_1.getTargetMiniprogramArg)(e.projectPath,"appid"),"--action","sign","--miniappCacheDir",o,"--ipa",l,"--type","certificate"];e.entitlements&&c.push("--entitlements",querystring.stringify(e.entitlements)),e.install&&(isMac?c.push("--install"):c.push("--install","true")),p&&(isMac?c.push("--extensionProfilePath"):c.push("--extension","true")),e.deviceId&&c.push("--deviceId",e.deviceId),e.output&&c.push("--output",e.output);try{return signAndInstallTask[l]||(signAndInstallTask[l]=isMac?new singletontask_1.SingletonTask(cp_1.spawnSync.bind(null,r,c,{},n)):new singletontask_1.SingletonTask(cp_1.spawnSync.bind(null,t,c,{cwd:s},n))),await signAndInstallTask[l].getResult(!0),{success:!0}}catch(e){return{success:!1,errMsg:e.message}}finally{delete signAndInstallTask[l]}}async function signAndInstallOrExport(e,i,n,t,s,r){const{recorder:a}=r,{install:p,deviceId:o,output:l,entitlements:c,bundleId:d}=s,u=await(0,generateIpa_1.generateIpa)(i,a);try{null==a||a.progress("signing the app...");const{signType:i}=t;let s=null;if(s=i===exports.miniappSinTypes.appleId.type?await doAppleIdSignAndInstallOrExport({bundleId:d,projectPath:e,ipaPath:u,entitlements:c,install:p,output:l,deviceId:o},r):await doCertificateSignAndInstallOrExport({projectPath:e,ipaPath:u,miniappCacheDirPath:n,entitlements:c,install:p,output:l,deviceId:o},r),!s.success)throw new Error("Sign the app fail:"+s.errMsg)}finally{fse.existsSync(u)&&fse.removeSync(u)}}function genInterceptRecorder(e){if(e){const i=new progressRecorder_1.Recorder((i,n,t)=>{(t.indexOf('["MiniAppBuilder could not find this device."]')>-1||t.indexOf("no connected device")>-1)&&e.message("fail","无法找到手机设备,请检查手机是否正确链接电脑(can not find device)"),e.message(n,t)});return i.run("!inner",()=>{}),i}}exports.getIOSDevices=getIOSDevices,exports.clearCache=clearCache,exports.doAppleIdSignAndInstallOrExport=doAppleIdSignAndInstallOrExport,exports.doCertificateSignAndInstallOrExport=doCertificateSignAndInstallOrExport,exports.signAndInstallOrExport=signAndInstallOrExport;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getTargetMiniprogramArg=exports.getMiniprogramRoot=exports.getRawAppJSON=exports.iOSAppJsonIsUsingIPadResizable=exports.iOSMiniAppJsonIsUsingGDT=exports.iOSMiniAppJsonIsUsingTpush=exports.writeMiniAppJson=exports.isNewMiniAppProject=exports.isMiniAppProject=exports.tryGetPluginMiniappJson=exports.tryGetIOSMiniappJson=exports.tryGetAndroidMiniappJson=exports.getMiniappJson=exports.getRawMiniappJson=exports.identityServiceConfigToMiniAppJSON=exports.PLATFORM=exports.miniAppPlatformMap=void 0;const tools_1=require("./tools"),each=require("licia/each"),safeSet=require("licia/safeSet"),path=require("path"),fse=require("fs-extra"),_=require("lodash");var PLATFORM;function identityServiceConfigToMiniAppJSON(i,n={}){return n.identityServiceConfig={authorizeMiniprogramType:1,miniprogramLoginPath:i},n}function getRawMiniappJson(i){var n,o,t,e,p,r;i=(0,tools_1.unifyPath)(i);const s=path.posix.join(i,"project.miniapp.json");if(!fse.existsSync(s))return{};let a={};try{a=fse.readJsonSync(s)}catch(i){console.error(i)}return a.miniVersion&&"v1"!==a.miniVersion||((null===(n=a["mini-android"])||void 0===n?void 0:n.projectPath)&&!path.isAbsolute(null===(o=a["mini-android"])||void 0===o?void 0:o.projectPath)&&(a["mini-android"].projectPath=path.posix.join(i,null===(t=a["mini-android"])||void 0===t?void 0:t.projectPath)),(null===(e=a["mini-ios"])||void 0===e?void 0:e.projectPath)&&!path.isAbsolute(null===(p=a["mini-ios"])||void 0===p?void 0:p.projectPath)&&(a["mini-ios"].projectPath=path.posix.join(i,null===(r=a["mini-ios"])||void 0===r?void 0:r.projectPath))),a}function getMiniappJson(i,n="mini-weixin"){const o=Object.values(exports.miniAppPlatformMap),t=getRawMiniappJson(i),e=_.omit(t,o);return _.merge(e,t[n]||("mini-weixin"===n?t["mini-wechat"]:{}))}function tryGetAndroidMiniappJson(i){let n={};try{n=getMiniappJson(i,PLATFORM.ANDROID)}catch(i){}return n}function tryGetIOSMiniappJson(i){return getMiniappJson(i,PLATFORM.IOS)||{}}function tryGetPluginMiniappJson(i){let n={};try{n=getMiniappJson(i,PLATFORM.PLUGIN)}catch(i){}return n}function isMiniAppProject(i){const n=path.posix.join(i,"project.miniapp.json");return"multiPlatform"===fse.readJsonSync(n).projectArchitecture}function isNewMiniAppProject(i){const n=getRawMiniappJson(i);return isMiniAppProject(i)&&"v2"===n.miniVersion}function writeMiniAppJson(i,n){const o=path.posix.join(i,"project.miniapp.json");let t={};try{t=fse.readJsonSync(o)}catch(i){return}each(n,(i,n)=>{safeSet(t,n,i)}),fse.writeJSONSync(o,t,{spaces:2})}function iOSMiniAppJsonIsUsingTpush(i){const n=i.tpush&&!0===i.tpush.useExtendedLib_WeAppTPNS&&"number"==typeof i.tpush.accessID&&"string"==typeof i.tpush.accessKey&&"string"==typeof i.tpush.serviceBundleId;if(n&&(0,tools_1.compareVersion)(i.sdkVersion,"1.0.7")<=0)throw new Error(`can not use TPNS(消息推送) extendsdk in sdk version ${i.sdkVersion}, TPNS is supported in 1.0.8.`);return n}function iOSMiniAppJsonIsUsingGDT(i){const n=i.gdt&&!0===i.gdt.useExtendedLib_WeAppGDT&&"string"==typeof i.gdt.appid&&"string"==typeof i.gdt.splashAd_placementId;if(n&&(0,tools_1.compareVersion)(i.sdkVersion,"1.0.19")<=0)throw new Error(`can not use GDT(广告) extendsdk in sdk version ${i.sdkVersion}, GDT is supported in 1.0.20.`);return n}function iOSAppJsonIsUsingIPadResizable(i){return!0===getRawAppJSON(i).resizable}function getRawAppJSON(i){let n,o;const t=getMiniprogramRoot(i);n=t?path.posix.join(i,t,"app.json"):path.posix.join(i,"app.json");try{o=fse.readJsonSync(n)}catch(i){throw console.error(i),i}return o}function getMiniprogramRoot(i){const n=(0,tools_1.normalizePath)(path.posix.join(i,"project.config.json"));let o;try{o=fse.readJsonSync(n)}catch(i){throw console.error(i),i}return o.miniprogramRoot?o.miniprogramRoot:""}function getTargetMiniprogramArg(i,n){const o=(0,tools_1.normalizePath)(path.posix.join(i,"project.config.json"));let t;try{t=fse.readJsonSync(o)}catch(i){throw console.error(i),i}return t[n]||""}exports.miniAppPlatformMap={"mini-android":"mini-android","mini-ios":"mini-ios","mini-weixin":"mini-weixin"},function(i){i.ANDROID="mini-android",i.IOS="mini-ios",i.PLUGIN="mini-plugin"}(PLATFORM=exports.PLATFORM||(exports.PLATFORM={})),exports.identityServiceConfigToMiniAppJSON=identityServiceConfigToMiniAppJSON,exports.getRawMiniappJson=getRawMiniappJson,exports.getMiniappJson=getMiniappJson,exports.tryGetAndroidMiniappJson=tryGetAndroidMiniappJson,exports.tryGetIOSMiniappJson=tryGetIOSMiniappJson,exports.tryGetPluginMiniappJson=tryGetPluginMiniappJson,exports.isMiniAppProject=isMiniAppProject,exports.isNewMiniAppProject=isNewMiniAppProject,exports.writeMiniAppJson=writeMiniAppJson,exports.iOSMiniAppJsonIsUsingTpush=iOSMiniAppJsonIsUsingTpush,exports.iOSMiniAppJsonIsUsingGDT=iOSMiniAppJsonIsUsingGDT,exports.iOSAppJsonIsUsingIPadResizable=iOSAppJsonIsUsingIPadResizable,exports.getRawAppJSON=getRawAppJSON,exports.getMiniprogramRoot=getMiniprogramRoot,exports.getTargetMiniprogramArg=getTargetMiniprogramArg;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),filerules_1=tslib_1.__importDefault(require("../modules/fullcompiler/filerules"));class PackOptionsHelper{constructor(){this.packOptionIgnores=[],this.packOptionIncludes=[]}updateState(e){var i,s;this.packOptionIgnores=(null===(i=e.packOptions)||void 0===i?void 0:i.ignore)||[],this.packOptionIncludes=(null===(s=e.packOptions)||void 0===s?void 0:s.include)||[]}isUnuserFilesEnable(){return!1}filter(e,i=!1){return e.filter(e=>this.isNotIgnored(e,i))}isIgnored(e,i=!1){return this.isIgnoredByRules(e)||this.isIgnoreByUnusedFiles(e,i)}isNotIgnored(e,i=!1){return!this.isIgnored(e,i)}isIgnoredByRules(e,i={}){const s=i.ignore||this.packOptionIgnores||[],t=i.include||this.packOptionIncludes||[];return!filerules_1.default.isFileIncluded(e,t)&&filerules_1.default.isFileIgnored(e,s)}isIgnoreByUnusedFiles(e,i=!1){return!1}}exports.default=new PackOptionsHelper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function pad(e,t=2){return e>10**t?String(e):`${new Array(t).join("0")}${e}`.slice(-t)}function getPrintTime(){const e=new Date;return`${String(e.getFullYear())}-${pad(e.getMonth()+1)}-${pad(e.getDate())} ${pad(e.getHours())}:${pad(e.getMinutes())}:${pad(e.getSeconds())}.${pad(e.getMilliseconds(),3)}`}Object.defineProperty(exports,"__esModule",{value:!0}),exports.silentRecorder=exports.Recorder=exports.getPrintTime=void 0,exports.getPrintTime=getPrintTime;let taskId=5e7;function genTaskId(){return taskId++}class Recorder{constructor(e){this.sendProgress=e}start(e){const t=genTaskId(),s=e.startsWith("!");s||this.sendProgress(t,"doing",e);const r=(e,r)=>{e?s||this.sendProgress(t,"fail",e.message):s||this.sendProgress(t,"done",null==r?void 0:r.message)};return r.id=t,this.progress=e=>{this.sendProgress(t,"doing",e)},this.message=(e,s)=>{this.sendProgress(t,e,s)},r}async run(e,t){const s=this.start(e);let r=null,n=null;try{return n=await t(),n}catch(e){throw r=e,e}finally{s(r,n)}}}exports.Recorder=Recorder,exports.silentRecorder=new Recorder(()=>{});
|
package/dist/utils/report.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.wrapReport=void 0;const config_1=require("../config"),os=require("os"),request_1=require("./request");async function reportMMData(e){(0,request_1.request)({url:"https://servicewechat.com/wxa-dev-logic/clientreportv2",body:JSON.stringify({report_info_list:[e]}),method:"post"})}const compileTypeMap={miniProgram:1,miniProgramPlugin:2,miniGame:3,miniGamePlugin:4},actionMap={preview:1,upload:2,npm:3,cloud:4,getDevSourceMap:5};function parseVersionToInt(e){let t=e.split(".");return parseInt(t[0]+t[1]+t[2])}function getMinifyXStatus(e,t){return"boolean"==typeof t?t?1:0:e?1:0}function reportAction(e,t,o,i,r,n={}){const a=r.appid,p=r.type,s=parseVersionToInt(config_1.CI_VERSION),c="win32"===process.platform?1:"darwin"===process.platform?2:3,l=os.cpus().length,u=Math.floor(os.totalmem()/1024/1024),f=actionMap[e];o=o.replace(/\,/g,";").slice(0,512);reportMMData({log_id:22365,version:0,user_log_list:`0,${a},${s},${c},${l},${u},${compileTypeMap[p]},${f},${t},${o},${i},0,${n.es6?1:0},${n.es7?1:0},${getMinifyXStatus(n.minify,n.minifyJS)},${getMinifyXStatus(n.minify,n.minifyWXML)},${getMinifyXStatus(n.minify,n.minifyWXSS)},${n.codeProtect?1:0},${n.autoPrefixWXSS?1:0}`})}function wrapReport(e,t){return async function(o){let i=o.project,r={};"upload"!==e&&"preview"!==e||(r=o.setting||{});let n=null,a=Date.now();try{return await t.apply(null,arguments)}catch(e){throw n=e,e}finally{try{let t=Date.now()-a,o=n?n.code?n.code:-1:0,p=n&&n.message?n.message:"";reportAction(e,o,p,t,i,r)}catch(e){console.info(e)}}}}exports.wrapReport=wrapReport;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.wrapReport=void 0;const config_1=require("../config/config"),request_1=require("./request"),os=require("os");async function reportMMData(e){(0,request_1.request)({url:"https://servicewechat.com/wxa-dev-logic/clientreportv2",body:JSON.stringify({report_info_list:[e]}),method:"post"})}const compileTypeMap={miniProgram:1,miniProgramPlugin:2,miniGame:3,miniGamePlugin:4},actionMap={preview:1,upload:2,npm:3,cloud:4,getDevSourceMap:5};function parseVersionToInt(e){const t=e.split(".");return parseInt(t[0]+t[1]+t[2],10)}function getMinifyXStatus(e,t){return"boolean"==typeof t?t?1:0:e?1:0}function reportAction(e,t,o,i,r,n={}){const s=r.appid,a=r.type,p=parseVersionToInt(config_1.CI_VERSION),c="win32"===process.platform?1:"darwin"===process.platform?2:3,u=os.cpus().length,l=Math.floor(os.totalmem()/1024/1024),f=actionMap[e];o=o.replace(/,/g,";").slice(0,512);reportMMData({log_id:22365,version:0,user_log_list:`0,${s},${p},${c},${u},${l},${compileTypeMap[a]},${f},${t},${o},${i},0,${n.es6?1:0},${n.es7?1:0},${getMinifyXStatus(n.minify,n.minifyJS)},${getMinifyXStatus(n.minify,n.minifyWXML)},${getMinifyXStatus(n.minify,n.minifyWXSS)},${n.codeProtect?1:0},${n.autoPrefixWXSS?1:0}`})}function wrapReport(e,t){return async function(o){const i=o.project;let r={};"upload"!==e&&"preview"!==e||(r=o.setting||{});let n=null;const s=Date.now();try{return await t.apply(null,arguments)}catch(e){throw n=e,e}finally{try{const t=Date.now()-s,o=n?n.code?n.code:-1:0,a=n&&n.message?n.message:"";reportAction(e,o,a,t,i,r)}catch(e){console.info(e)}}}}exports.wrapReport=wrapReport;
|
package/dist/utils/request.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initGlobalProxy=exports.getCiProxy=exports.setCiProxy=exports.request=void 0;const tslib_1=require("tslib"),log_1=tslib_1.__importDefault(require("./log")),interruptibletask_1=require("./interruptibletask"),req=require("request"),getGlobalProxySettings=require("get-proxy");class RequestTask extends interruptibletask_1.InterruptibleTask{constructor(e){super(e),this._alreadyRefresh=!1,this._promise.catch(e=>{log_1.default.error(`${this._opt.url} ${e}`)})}static async formateQuery(e){const t=Object.assign({},e),{needRandom:r}=t;delete t.needRandom;const s=(t.url||"").split("?"),o=s[0],i=[];return-1!==r&&i.push("_r="+Math.random()),s[1]&&i.push(s[1]),t.url=`${o}?${i.join("&")}`,t}abort(){this._aborted||(this._aborted=!0,this._realRequest&&"function"==typeof this._realRequest.abort&&this._realRequest.abort())}async request(){if(this._aborted)throw interruptibletask_1.AbortEvent;const e=await RequestTask.formateQuery(this._opt);return RequestTask.requestProxy&&(e.proxy=RequestTask.requestProxy),new Promise((t,r)=>{this._realRequest=req(e,(e,s,o)=>{e?r(e):t({resp:s,body:o})}),this._realRequest.on("abort",()=>{r(interruptibletask_1.AbortEvent)})})}async run(e){return this._opt=Object.assign({},e),await this.request()}}function request(e){return new RequestTask(e)}function setCiProxy(e){RequestTask.requestProxy=e,log_1.default.info("miniprogram-ci is using proxy: "+e)}function getCiProxy(){return RequestTask.requestProxy}function initGlobalProxy(){const e=getCiProxy(),t=`${process.env.no_proxy||""},${process.env.NO_PROXY||""}`.split(",").map(e=>e.trim());if(!e&&!t.includes("servicewechat.com")){const e=getGlobalProxySettings();e&&setCiProxy(e)}}RequestTask.requestProxy="",exports.request=request,exports.setCiProxy=setCiProxy,exports.getCiProxy=getCiProxy,exports.initGlobalProxy=initGlobalProxy;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initGlobalProxy=exports.getCiProxy=exports.setCiProxy=exports.request=void 0;const tslib_1=require("tslib"),log=tslib_1.__importStar(require("./log")),interruptibletask_1=require("./interruptibletask"),req=require("request"),getGlobalProxySettings=require("get-proxy");class RequestTask extends interruptibletask_1.InterruptibleTask{constructor(e){super(e),this._alreadyRefresh=!1,this._promise.catch(e=>{log.error(`${this._opt.url} ${e}`)})}static async formateQuery(e){const t=Object.assign({},e),{needRandom:r}=t;delete t.needRandom;const s=(t.url||"").split("?"),o=s[0],i=[];return-1!==r&&i.push("_r="+Math.random()),s[1]&&i.push(s[1]),t.url=`${o}?${i.join("&")}`,t}abort(){this._aborted||(this._aborted=!0,this._realRequest&&"function"==typeof this._realRequest.abort&&this._realRequest.abort())}async request(){if(this._aborted)throw interruptibletask_1.AbortEvent;const e=await RequestTask.formateQuery(this._opt);return RequestTask.requestProxy&&(e.proxy=RequestTask.requestProxy),new Promise((t,r)=>{this._realRequest=req(e,(e,s,o)=>{e?r(e):t({resp:s,body:o})}),this._realRequest.on("abort",()=>{r(interruptibletask_1.AbortEvent)})})}async run(e){return this._opt=Object.assign({},e),await this.request()}}function request(e){return new RequestTask(e)}function setCiProxy(e){RequestTask.requestProxy=e,log.info("miniprogram-ci is using proxy: "+e)}function getCiProxy(){return RequestTask.requestProxy}function initGlobalProxy(){const e=getCiProxy(),t=`${process.env.no_proxy||""},${process.env.NO_PROXY||""}`.split(",").map(e=>e.trim());if(!e&&!t.includes("servicewechat.com")){const e=getGlobalProxySettings();e&&setCiProxy(e)}}RequestTask.requestProxy="",exports.request=request,exports.setCiProxy=setCiProxy,exports.getCiProxy=getCiProxy,exports.initGlobalProxy=initGlobalProxy;
|
package/dist/utils/sign.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSignature=exports.getRandomString=void 0;const tslib_1=require("tslib"),config_1=require("../config"),crypto_1=tslib_1.__importDefault(require("crypto")),request_1=require("./request"),error_1=require("./error"),locales_1=tslib_1.__importDefault(require("./locales/locales")),url_config_1=require("./url_config"),jsonParse_1=require("./jsonParse");async function getRandomString(r){try{const{body:e}=await(0,request_1.request)({url:url_config_1.GET_RAND_STRING,method:"post",body:JSON.stringify({appid:r,clientRand:Math.floor(1e8*Math.random())}),headers:{"content-type":"application/json"}}),t=(0,jsonParse_1.jsonRespParse)(e,url_config_1.GET_RAND_STRING);if(0===t.errCode)return t.data.randomString;throw new Error(`errCode: ${t.errCode}; errMsg: ${t.errMsg}`)}catch(r){throw new error_1.CodeError(r.toString(),config_1.GET_SIGNATURE_RAND_STRING_ERR)}}async function getSignature(r,e){const t={appid:e,rand_str:await getRandomString(e)};try{return crypto_1.default.privateEncrypt({key:r,padding:crypto_1.default.constants.RSA_PKCS1_PADDING},Buffer.from(JSON.stringify(t))).toString("base64")}catch(r){throw new error_1.CodeError(locales_1.default.config.GENERATE_LOCAL_SIGNATURE_FAIL.format(r.toString()),config_1.GENERATE_LOCAL_SIGNATURE_ERR)}}exports.getRandomString=getRandomString,exports.getSignature=getSignature;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSignature=exports.getRandomString=void 0;const tslib_1=require("tslib"),crypto_1=tslib_1.__importDefault(require("crypto")),config_1=require("../config/config"),url_config_1=require("../config/url.config"),request_1=require("./request"),error_1=require("./error"),locales_1=tslib_1.__importDefault(require("./locales/locales")),jsonParse_1=require("./jsonParse");async function getRandomString(r){try{const{body:e}=await(0,request_1.request)({url:url_config_1.GET_RAND_STRING,method:"post",body:JSON.stringify({appid:r,clientRand:Math.floor(1e8*Math.random())}),headers:{"content-type":"application/json"}}),t=(0,jsonParse_1.jsonRespParse)(e,url_config_1.GET_RAND_STRING);if(0===t.errCode)return t.data.randomString;throw new Error(`errCode: ${t.errCode}; errMsg: ${t.errMsg}`)}catch(r){throw new error_1.CodeError(r.toString(),config_1.GET_SIGNATURE_RAND_STRING_ERR)}}async function getSignature(r,e){const t={appid:e,rand_str:await getRandomString(e)};try{return crypto_1.default.privateEncrypt({key:r,padding:crypto_1.default.constants.RSA_PKCS1_PADDING},Buffer.from(JSON.stringify(t))).toString("base64")}catch(r){throw new error_1.CodeError(locales_1.default.config.GENERATE_LOCAL_SIGNATURE_FAIL.format(r.toString()),config_1.GENERATE_LOCAL_SIGNATURE_ERR)}}exports.getRandomString=getRandomString,exports.getSignature=getSignature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.aesDecrypt=exports.aesEncrypt=exports.checkFileMd5Signature=exports.checkSignature=exports.checkBufferSignature=exports.generateMd5=void 0;const fs=require("fs"),crypto=require("crypto"),PUBLIKEY="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCZm2cFP/uF81V5KH/B9dn/g7WA\nCM3yu0P7n9sm/O6c58HTYI0+xugCfwMuoX7hyU4jkWbZ/BYK7IgWhmVfiRtgomJe\nwuZlxfGUpmrr1PA2KbYVpPW0V6e/2uZu1Ev3xU7PkHKYf4AKgPO8w98hvKlUJRbk\nH4AYMxX6eL9j9qCBGQIDAQAB\n-----END PUBLIC KEY-----";function generateMd5(e){const r=crypto.createHash("md5");r.update(e);return r.digest("hex")}function checkBufferSignature(e,r,t){if(!r)return!1;return checkSignature(generateMd5(e),r,t)}function checkSignature(e,r,t){if(!r)return!1;const c=Buffer.from(r,"base64"),n=crypto.createVerify("RSA-SHA1");return n.update(e),!!n.verify(t||PUBLIKEY,c)}function checkFileMd5Signature(e,r,t){return checkBufferSignature(fs.readFileSync(e),r,t)}function aesEncrypt(e){const{data:r,key:t,iv:c,algorithm:n}=e,a=crypto.createCipheriv(n||"aes-128-cbc",t,c);let u=a.update(r,"utf8","binary");return u+=a.final("binary"),u=Buffer.from(u,"binary").toString("base64"),u}function aesDecrypt(e){const{key:r,iv:t,algorithm:c}=e,n=Buffer.from(e.data,"base64").toString("binary"),a=crypto.createDecipheriv(c||"aes-128-cbc",r,t);let u=a.update(n,"binary","utf8");return u+=a.final("utf8"),u}exports.generateMd5=generateMd5,exports.checkBufferSignature=checkBufferSignature,exports.checkSignature=checkSignature,exports.checkFileMd5Signature=checkFileMd5Signature,exports.aesEncrypt=aesEncrypt,exports.aesDecrypt=aesDecrypt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var SingletonTaskStatus;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SingletonTask=exports.SingletonTaskStatus=void 0,function(t){t[t.WAITING=0]="WAITING",t[t.PENDING=1]="PENDING",t[t.RESOLVED=2]="RESOLVED",t[t.REJECTED=3]="REJECTED"}(SingletonTaskStatus=exports.SingletonTaskStatus||(exports.SingletonTaskStatus={}));class SingletonTask{constructor(t,s="",e=6e4){this.executor=t,this.key=s,this.timeout=e,this.status=SingletonTaskStatus.WAITING,this.queue=[]}async _run(){this.status=SingletonTaskStatus.PENDING,this.timer=setTimeout(()=>{this._reject("timeout")},this.timeout);try{const t=await this.executor();return this._resolve(t),t}catch(t){throw this._reject(t),t}}_emit(){const{queue:t}=this;this.queue=[];for(const s of t)this.status===SingletonTaskStatus.REJECTED?s.reject(this.rejectedReason):s.resolve(this.result)}_resolve(t){this.status=SingletonTaskStatus.RESOLVED,this.result=t,clearTimeout(this.timer),this._emit()}_reject(t){this.status=SingletonTaskStatus.REJECTED,this.rejectedReason=t,clearTimeout(this.timer),this._emit()}async getResult(t=!1,s=!1){if(this.status===SingletonTaskStatus.WAITING||this.status===SingletonTaskStatus.REJECTED&&t||this.status===SingletonTaskStatus.RESOLVED&&s)return this._run();if(this.status===SingletonTaskStatus.PENDING)return new Promise((t,s)=>{this.queue.push({resolve:t,reject:s})});if(this.status===SingletonTaskStatus.REJECTED)throw this.rejectedReason;return this.result}getResultCache(){return this.result}}exports.SingletonTask=SingletonTask;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.runSubProcess=void 0;let exitTimer,inited=!1;function setExitTimer(e=6e4){-1!==e&&(clearTimeout(exitTimer),exitTimer=setTimeout(()=>{process.exit(0)},e))}function processOnMessageFactory(e){return async s=>{if("object"!=typeof s)return void console.error("child process unrecognized message "+s);const{initHandler:o,messageHandler:r}=e;if("init"===s.type){if(inited)return void console.error("native compiler has been inited");try{await o(s),inited=!0,process.send({type:"ready"})}catch(e){process.send({type:"noReady",error:{code:e.code||-1,message:e.message,stack:e.stack,path:e.path||""}}),process.exit(-1e3)}}else inited||console.error("compiler not inited yet"),await r(s);setExitTimer(e.timeout)}}function runSubProcess(e){process.on("message",processOnMessageFactory(e)),process.on("disconnect",()=>{try{process.exit(0)}catch(e){process.kill(process.pid,"SIGTERM")}}),process.on("uncaughtException",e=>{console.log(e)})}exports.runSubProcess=runSubProcess;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SubProcessProxy=void 0;const tslib_1=require("tslib"),child_process_1=require("child_process"),path_1=tslib_1.__importDefault(require("path")),customError_1=require("../customError"),singletontask_1=require("../singletontask");function performanceMark(s,e){}function shouldInspectCompiler(){var s;return!!(null===(s=global.localStorage)||void 0===s?void 0:s.getItem("inspectCompiler"))}const PROCESS_READY_TIMEOUT=2e4;class SubProcessProxy{constructor(s,e,t,r,o=8891){this.project=s,this.entryPath=e,this.passData=t,this.initOptions=r,this.inspectPort=o,this.taskMap=new Map,this.taskId=0,this.init=async()=>{performanceMark("process init"),this.process=await this.forkProcess(),performanceMark("process init",!0)}}async ready(){var s;return this._checkReadyTask||(this._checkReadyTask=new singletontask_1.SingletonTask(this.init)),await(null===(s=this._checkReadyTask)||void 0===s?void 0:s.getResult(!0))}async sendProcessMessage(s){await this.ready(),this.process.send(s)}destroy(){var s;null===(s=this.process)||void 0===s||s.kill("SIGTERM"),this.process=void 0,this._checkReadyTask=void 0}async forkProcess(){const s=this.entryPath,e={stdio:["pipe","pipe","pipe","ipc"],cwd:this.project.projectPath,env:Object.assign(Object.assign({},process.env),{cpprocessEnv:"childprocess",nativeProcess:"1",timeout:global.TEST_COMPILER_PROCESS_TIMEOUT})};shouldInspectCompiler()&&(e.execArgv=["--inspect-brk="+this.inspectPort]);const t=process.__nwjs&&"wechatwebdevtools"===nw.App.manifest.appname;if(e.env.isDevtools=t,t){let s=path_1.default.join(path_1.default.dirname(process.execPath),"node");"darwin"!==process.platform&&(s+=".exe"),e.execPath=s}performanceMark("fork process");const r=await this.project.serialize();return new Promise((o,i)=>{const a=(0,child_process_1.fork)(s,["--expose-gc"],e),n=setTimeout(()=>{this.destroy(),i(new Error("fork process timeout"))},2e4);a.stdout.setEncoding("utf8"),a.stdout.on("data",s=>{console.log("child process stdout: "+s)}),a.stderr.on("data",s=>{console.error("child process stderr: "+s)}),a.on("exit",(s,e)=>{this.process=void 0,this._checkReadyTask=void 0,t&&console.error(`child process exit: code(${s}), signal(${e})`),0!==s&&i(new Error(`native child process exit: code(${s}), signal(${e})`))}),a.on("message",s=>{if("ready"===s.type&&(clearTimeout(n),performanceMark("process ready"),o(a)),"noReady"===s.type&&(performanceMark("process not ready"),i(new Error(s.error.message))),"progress"===s.type){const e=this.taskMap.get(s.taskId);(null==e?void 0:e.progressUpdate)&&e.progressUpdate(s.id,s.status,s.message)}if("response"===s.type){const{id:e,data:t,error:r}=s;r?this.onResponse(e,void 0,r):this.onResponse(e,t,void 0)}}),a.unref(),this.taskId+=1;const c={type:"init",data:{passData:this.passData,projectInfo:r,options:this.initOptions}};return a.send(c),a})}onResponse(s,e,t){const r=this.taskMap.get(s);this.taskMap.delete(s),r?t?(t=new customError_1.CustomError(t),r.reject(t)):r.resolve(e):console.error(`child process task: ${s} not found`)}async sendEvent(s,e){this.sendProcessMessage({type:"event",name:s,data:e})}async runTask(s,e,t){return new Promise((r,o)=>{const i={name:s,data:e,resolve:r,reject:o,progressUpdate:t};this.taskId+=1,this.taskMap.set(this.taskId,i),this.sendProcessMessage({type:"request",id:this.taskId,name:s,data:e})})}}exports.SubProcessProxy=SubProcessProxy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DepMap=void 0,exports.DepMap={_apply_decorated_descriptor:[],_apply_decs_2203_r:[],_array_like_to_array:[],_array_with_holes:[],_array_without_holes:["_array_like_to_array"],_assert_this_initialized:[],_async_generator:["_await_value"],_async_generator_delegate:[],_async_iterator:[],_async_to_generator:[],_await_async_generator:["_await_value"],_await_value:[],_check_private_redeclaration:[],_class_apply_descriptor_destructure:[],_class_apply_descriptor_get:[],_class_apply_descriptor_set:[],_class_apply_descriptor_update:[],_class_call_check:[],_class_check_private_static_access:[],_class_check_private_static_field_descriptor:[],_class_extract_field_descriptor:[],_class_name_tdz_error:[],_class_private_field_destructure:["_class_apply_descriptor_destructure","_class_extract_field_descriptor"],_class_private_field_get:["_class_apply_descriptor_get","_class_extract_field_descriptor"],_class_private_field_init:["_check_private_redeclaration"],_class_private_field_loose_base:[],_class_private_field_loose_key:[],_class_private_field_set:["_class_apply_descriptor_set","_class_extract_field_descriptor"],_class_private_field_update:["_class_apply_descriptor_update","_class_extract_field_descriptor"],_class_private_method_get:[],_class_private_method_init:["_check_private_redeclaration"],_class_private_method_set:[],_class_static_private_field_destructure:["_class_apply_descriptor_destructure","_class_check_private_static_access","_class_check_private_static_field_descriptor"],_class_static_private_field_spec_get:["_class_apply_descriptor_get","_class_check_private_static_access","_class_check_private_static_field_descriptor"],_class_static_private_field_spec_set:["_class_apply_descriptor_set","_class_check_private_static_access","_class_check_private_static_field_descriptor"],_class_static_private_field_update:["_class_apply_descriptor_update","_class_check_private_static_access","_class_check_private_static_field_descriptor"],_class_static_private_method_get:["_class_check_private_static_access"],_construct:["_is_native_reflect_construct","_set_prototype_of"],_create_class:[],_create_for_of_iterator_helper_loose:["_unsupported_iterable_to_array"],_create_super:["_get_prototype_of","_is_native_reflect_construct","_possible_constructor_return"],_decorate:["_to_array","_to_property_key","_type_of"],_defaults:[],_define_enumerable_properties:[],_define_property:[],_dispose:[],_export_star:[],_extends:[],_get:["_super_prop_base"],_get_prototype_of:[],_identity:[],_inherits:["_set_prototype_of"],_inherits_loose:[],_initializer_define_property:[],_initializer_warning_helper:[],_instanceof:[],_interop_require_default:[],_interop_require_wildcard:[],_is_native_function:[],_is_native_reflect_construct:[],_iterable_to_array:[],_iterable_to_array_limit:[],_iterable_to_array_limit_loose:[],_jsx:[],_new_arrow_check:[],_non_iterable_rest:[],_non_iterable_spread:[],_object_destructuring_empty:[],_object_spread:["_define_property"],_object_spread_props:[],_object_without_properties:["_object_without_properties_loose"],_object_without_properties_loose:[],_possible_constructor_return:["_assert_this_initialized","_type_of"],_read_only_error:[],_set:["_define_property","_super_prop_base"],_set_prototype_of:[],_skip_first_generator_next:[],_sliced_to_array:["_array_with_holes","_iterable_to_array_limit","_non_iterable_rest","_unsupported_iterable_to_array"],_sliced_to_array_loose:["_array_with_holes","_iterable_to_array_limit_loose","_non_iterable_rest","_unsupported_iterable_to_array"],_super_prop_base:["_get_prototype_of"],_tagged_template_literal:[],_tagged_template_literal_loose:[],_throw:[],_to_array:["_array_with_holes","_iterable_to_array","_non_iterable_rest","_unsupported_iterable_to_array"],_to_consumable_array:["_array_without_holes","_iterable_to_array","_non_iterable_spread","_unsupported_iterable_to_array"],_to_primitive:["_type_of"],_to_property_key:["_to_primitive","_type_of"],_ts_decorate:[],_ts_generator:[],_ts_metadata:[],_ts_param:[],_ts_values:[],_type_of:[],_unsupported_iterable_to_array:["_array_like_to_array"],_update:["_get","_set"],_using:[],_wrap_async_generator:["_async_generator"],_wrap_native_super:["_construct","_get_prototype_of","_is_native_function","_set_prototype_of"],_write_only_error:[]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIgnore=exports.collectSWCHelpers=exports.replaceSWCHelpers=exports.getHelperContent=exports.getSWCOutputPath=exports.getHelperDeps=exports.isValidSWCHelperFunc=void 0;const tslib_1=require("tslib"),path=tslib_1.__importStar(require("path")),fs=tslib_1.__importStar(require("fs-extra")),tools_1=require("./tools"),swc_config_1=require("./swc_config");function isValidSWCHelperFunc(e){return swc_config_1.DepMap.hasOwnProperty(e)}function getHelperDeps(e,t){const r=Array.from(e),s=new Set(e);for(;r.length;){const e=r.shift()||"",o=e.substr(0,e.indexOf(t)+t.length),n=e.replace(o+"/","");n in swc_config_1.DepMap&&swc_config_1.DepMap[n].forEach(e=>{const t=`${o}/${e}`;s.has(t)||(r.push(t),s.add(t))})}return Array.from(s)}function getSWCOutputPath(e){var t;let r=(null===(t=null==e?void 0:e.swcSetting)||void 0===t?void 0:t.outputPath)||"";return r?(r=(0,tools_1.normalizePath)(r),r.replace(/(^[./\\])|(\/$)/g,""),r):"@swc/runtime"}function getHelperContent(e,t){const r=e.substr(0,e.indexOf(t)+t.length),s=e.replace(r,"swc_runtime"),o=(0,tools_1.normalizePath)(path.join(__dirname,"../vendor/",s+".js"));return fs.readFile(o,"utf8")}exports.isValidSWCHelperFunc=isValidSWCHelperFunc,exports.getHelperDeps=getHelperDeps,exports.getSWCOutputPath=getSWCOutputPath,exports.getHelperContent=getHelperContent;const SWCHelperRequireReg=/require\("(@swc\/helpers\/_\/([^"]+))"\)/gi;function replaceSWCHelpers(e,t,r){const s=new Set,o=t.split("/").map((e,t)=>0===t?"":"../").join("");return{transformCode:e.replace(SWCHelperRequireReg,(e,t,n)=>{const p=t.replace("@swc/helpers/_",r);return swc_config_1.DepMap.hasOwnProperty(n)?(s.add(p),`require("${o+p}")`):e}),helpers:Array.from(s)}}function collectSWCHelpers(e){const t=new Set;return e.replace(SWCHelperRequireReg,(e,r,s)=>(t.add(s),e)),t}function isIgnore(e,t){const r=e||[],s=t.split(path.sep).join("/");for(const e of r){if(t===e)return!0;if(!/^[./\\]+/.test(e)&&/.+\/\*$/.test(e)&&-1!==s.indexOf(e.substr(0,e.length-1)))return!0}return!1}exports.replaceSWCHelpers=replaceSWCHelpers,exports.collectSWCHelpers=collectSWCHelpers,exports.isIgnore=isIgnore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const AbortEvent="TaskManagerAborted";function taskTool(t,s,o){const r=[],e=[];let n=0,a=!1;const i=function(){if(n===o.length)return Promise.resolve();if(a)throw console.log(`!!!! task pool aborted, ${o.length-n} task not execute`),AbortEvent;const l=o[n],h=Promise.resolve().then(()=>l());return r.push(h),e.push(h),n+=1,e.length>=t?Promise.race(e).then(()=>(e.splice(e.indexOf(h),1),i())).catch(t=>{if(s)throw t;return e.splice(e.indexOf(h),1),i()}):i()};return{run:i().then(()=>Promise.all(r)),abort:function(){a=!0}}}class TaskManager{constructor(t={}){this.breakWhenError=!0;const{poolLimit:s=10,breakWhenError:o=!0}=t;this._tasks=[],this.poolLimit=s,this.breakWhenError=o,this.taskPool=null}static get shared(){return this._instance||(this._instance=new this),this._instance}addTask(t,...s){this._tasks.push(t.bind(null,...s))}async runAllAsync(t){if(!this._tasks.length)return[];if(this.taskPool)return this.taskPool.run;let s;try{this.taskPool=taskTool(t||this.poolLimit,this.breakWhenError,this._tasks),s=await this.taskPool.run}catch(t){throw console.log("runAllAsync error:",t),t}finally{this.taskPool=null,this._tasks=[]}return s}async abortAsyncTask(){this.taskPool&&(this.taskPool.abort(),this.taskPool=null,this._tasks=[])}async runAllSerial(){const t=[];try{for(let s=0,o=this._tasks.length;s<o;s++){const o=await this._tasks[s]();t.push(o)}}catch(t){}finally{this._tasks=[]}return t}}exports.default=TaskManager;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/utils/taskstatus.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TaskStatus=void 0;const tslib_1=require("tslib"),locales_1=tslib_1.__importDefault(require("./locales/locales"));class TaskStatus{constructor(t){this._status="doing",this._msg="",this._id=`${Math.random()}${Date.now()}`,this._msg=t}get id(){return this._id}get status(){return this._status}get message(){return this._msg}done(){this._status="done"}toString(){return"doing"===this._status?locales_1.default.config.PROCESSING.format(this._msg):"done"===this._status?locales_1.default.config.DONE.format(this._msg):this._msg}}exports.TaskStatus=TaskStatus;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TaskStatus=void 0;const tslib_1=require("tslib"),locales_1=tslib_1.__importDefault(require("./locales/locales"));class TaskStatus{constructor(t){this._status="doing",this._msg="",this._id=`${Math.random()}${Date.now()}`,this._msg=t}get id(){return this._id}get status(){return this._status}get message(){return this._msg}done(){this._status="done"}toString(){return"doing"===this._status?locales_1.default.config.PROCESSING.format(this._msg):"done"===this._status?locales_1.default.config.DONE.format(this._msg):this._msg}}exports.TaskStatus=TaskStatus;
|
package/dist/utils/tools.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
!function(require,
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pathRelative=exports.getWorkersPath=exports.formatTime=exports.formatNumber=exports.generateMD5=exports.formatSourceMap=exports.isFileIncluded=exports.isFileIgnored=exports.leading=exports.trailing=exports.escapeQuot=exports.mkdirSync=exports.rmSync=exports.isHexColor=exports.formatJSONParseErr=exports.bufferToUtf8String=exports.getType=exports.normalizePath=void 0;const tslib_1=require("tslib"),fs_1=tslib_1.__importDefault(require("fs")),path_1=tslib_1.__importDefault(require("path")),babel_code_frame_1=tslib_1.__importDefault(require("babel-code-frame")),minimatch_1=tslib_1.__importDefault(require("minimatch")),crypto_1=tslib_1.__importDefault(require("crypto")),jsonlint=require("./jsonlint");function normalizePath(e=""){const t=path_1.default.posix.normalize(e.replace(/\\/g,"/"));return!e.startsWith("//")&&!e.startsWith("\\\\")||t.startsWith("//")?t:"/"+t}function getType(e){return Object.prototype.toString.call(e).toLowerCase().split(" ")[1].replace("]","")}exports.normalizePath=normalizePath,exports.getType=getType;const bufferToUtf8String=e=>{const t=e.toString();if(0===Buffer.compare(Buffer.from(t,"utf8"),e))return t};function getErrLine(e,t,r,a){r=r>0?r:1;return`${a}\n${(0,babel_code_frame_1.default)(e,t,r)}`}exports.bufferToUtf8String=bufferToUtf8String;const formatJSONParseErr=e=>{const t=e.data||"";try{jsonlint.parser.parse(t)}catch(r){try{const a=`Expecting ${r.expected}, got ${r.token}`,i=getErrLine(t,r.line,r.loc.first_column,a);return`${e.filePath}\n${i}`}catch(e){}}return`${e.filePath}\n${e.error}`};exports.formatJSONParseErr=formatJSONParseErr;const isHexColor=e=>/^#[a-f\d]{3}$/i.test(e)||/^#[a-f\d]{4}$/i.test(e)||/^#[a-f\d]{6}$/i.test(e)||/^#[a-f\d]{8}$/i.test(e);function rmSync(e){try{if(e=path_1.default.resolve(e),!fs_1.default.existsSync(e))return;if(fs_1.default.lstatSync(e).isDirectory()){const t=fs_1.default.readdirSync(e);if(t.length>0)for(let r=0,a=t.length;r<a;r++)rmSync(path_1.default.posix.join(e,t[r]));fs_1.default.rmdirSync(e)}else fs_1.default.unlinkSync(e)}catch(e){}}function mkdirSync(e){if(e=path_1.default.resolve(e),fs_1.default.existsSync(e)){if(fs_1.default.lstatSync(e).isDirectory())return;fs_1.default.unlinkSync(e)}mkdirSync(path_1.default.dirname(e)),fs_1.default.mkdirSync(e)}function escapeQuot(e,t="`"){return e?"`"===t?e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$/g,"\\$"):'"'===t?e.replace(/\\/g,"\\\\").replace(/\r\n/g,"\n").replace(/\n/g,"\\n").replace(/"/g,'\\"'):"'"===t?e.replace(/\\/g,"\\\\").replace(/\r\n/g,"\n").replace(/\n/g,"\\n").replace(/'/g,"\\'"):e:e}function trailing(e,t,r=!1){return r?e.endsWith(t)?e.slice(0,e.length-1):e:e.endsWith(t)?e:e+t}function leading(e,t,r=!1){return r?e.startsWith(t)?e.slice(1):e:e.startsWith(t)?e:t+e}exports.isHexColor=isHexColor,exports.rmSync=rmSync,exports.mkdirSync=mkdirSync,exports.escapeQuot=escapeQuot,exports.trailing=trailing,exports.leading=leading;const FFSPRGRulesFactory=function(e){let t=null,r=Object.create(null);return function(e,a){if(a.length<1)return!1;if(t===a){if(void 0!==r[e])return r[e]}else t=a,r=Object.create(null);const i=e.replace(/\\/g,"/").toLowerCase();if(!i)return!1;const o=i.slice(i.lastIndexOf("/")+1);let n=!1;for(const e of a){if(!e)continue;const t=e.value.toLowerCase();if("prefix"===e.type)n=o.startsWith(t);else if("suffix"===e.type)n=o.endsWith(t);else if("folder"===e.type)n=leading(i,"/").startsWith(trailing(leading(t,"/"),"/"));else if("file"===e.type)n=leading(i,"/")===leading(t,"/");else if("glob"===e.type)try{n=(0,minimatch_1.default)(i,t)||(0,minimatch_1.default)(leading(i,"/"),t)}catch(e){n=!1}else if("regexp"===e.type)try{n=new RegExp(t,"igm").test(i)||new RegExp(t,"igm").test(leading(i,"/"))}catch(e){n=!1}if(n)break}return r[e]=n,n}};function formatSourceMap(e){if(e){if("string"===getType(e))return e;try{return JSON.stringify(e)}catch(e){}}}function generateMD5(e){const t=crypto_1.default.createHash("md5");return t.update(e),t.digest("hex")}exports.isFileIgnored=FFSPRGRulesFactory(),exports.isFileIncluded=FFSPRGRulesFactory(),exports.formatSourceMap=formatSourceMap,exports.generateMD5=generateMD5;const formatNumber=e=>e>9?""+e:"0"+e;exports.formatNumber=formatNumber;const formatTime=e=>{const t=e.getFullYear(),r=e.getMonth()+1,a=e.getDate(),i=e.getHours(),o=e.getMinutes(),n=e.getSeconds();return`${[t,r,a].map(exports.formatNumber).join("/")} ${[i,o,n].map(exports.formatNumber).join(":")}`};exports.formatTime=formatTime;const getWorkersPath=e=>"string"==typeof e?e:e.path;exports.getWorkersPath=getWorkersPath;const pathRelative=(e,t)=>(e=path_1.default.posix.normalize(e.replace(/\\/g,"/")),t=path_1.default.posix.normalize(t.replace(/\\/g,"/")),path_1.default.posix.relative(e,t));exports.pathRelative=pathRelative;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkIsUseCompilerPlugins=exports.isGameApp=exports.isLeftSubPathOfRight=exports.pathRelative=exports.compareVersion=exports.unifyPath=exports.getWorkersPath=exports.getPluginJson=exports.getAppJson=exports.getTerm=exports.checkIsIndependentSubpackage=exports.checkIsInSubPackage=exports.devtoolsError=exports.devtoolsLog=exports.devtoolsInfo=exports.formatTime=exports.formatNumber=exports.generateMD5=exports.formatSourceMap=exports.isFileIncluded=exports.isFileIgnored=exports.leading=exports.trailing=exports.escapeQuot=exports.mkdirSync=exports.rmSync=exports.isHexColor=exports.formatJSONParseErr=exports.bufferToUtf8String=exports.getType=exports.wrapCodeByEval=exports.escapeScript=exports.normalizePath=void 0;const tslib_1=require("tslib"),fs_1=tslib_1.__importDefault(require("fs")),path_1=tslib_1.__importDefault(require("path")),crypto_1=tslib_1.__importDefault(require("crypto")),babel_code_frame_1=tslib_1.__importDefault(require("babel-code-frame")),minimatch_1=tslib_1.__importDefault(require("minimatch")),startWith_1=tslib_1.__importDefault(require("licia/startWith")),fs_extra_1=tslib_1.__importDefault(require("fs-extra")),lodash_1=tslib_1.__importDefault(require("lodash")),define_1=require("../config/define"),types_1=require("../types"),jsonlint=require("./jsonlint");function normalizePath(e=""){const t=path_1.default.posix.normalize(e.replace(/\\/g,"/"));return!e.startsWith("//")&&!e.startsWith("\\\\")||t.startsWith("//")?t:"/"+t}function escapeScript(e){return e?e.replace(/<script/g,"<script").replace(/<\/script/g,"</script"):e}function wrapCodeByEval(e){return`;(window.eval || __global.__hackEval)('${e}')`}function getType(e){return Object.prototype.toString.call(e).toLowerCase().split(" ")[1].replace("]","")}exports.normalizePath=normalizePath,exports.escapeScript=escapeScript,exports.wrapCodeByEval=wrapCodeByEval,exports.getType=getType;const bufferToUtf8String=e=>{const t=e.toString();if(0===Buffer.compare(Buffer.from(t,"utf8"),e))return t};function getErrLine(e,t,r,o){r=r>0?r:1;return`${o}\n${(0,babel_code_frame_1.default)(e,t,r)}`}exports.bufferToUtf8String=bufferToUtf8String;const formatJSONParseErr=e=>{const t=e.data||"";try{jsonlint.parser.parse(t)}catch(r){try{const o=`Expecting ${r.expected}, got ${r.token}`,n=getErrLine(t,r.line,r.loc.first_column,o);return`${e.filePath}\n${n}`}catch(e){}}return`${e.filePath}\n${e.error}`};exports.formatJSONParseErr=formatJSONParseErr;const isHexColor=e=>/^#[a-f\d]{3}$/i.test(e)||/^#[a-f\d]{4}$/i.test(e)||/^#[a-f\d]{6}$/i.test(e)||/^#[a-f\d]{8}$/i.test(e);function rmSync(e){try{if(e=path_1.default.resolve(e),!fs_1.default.existsSync(e))return;if(fs_1.default.lstatSync(e).isDirectory()){const t=fs_1.default.readdirSync(e);if(t.length>0)for(let r=0,o=t.length;r<o;r++)rmSync(path_1.default.posix.join(e,t[r]));fs_1.default.rmdirSync(e)}else fs_1.default.unlinkSync(e)}catch(e){}}function mkdirSync(e){if(e=path_1.default.resolve(e),fs_1.default.existsSync(e)){if(fs_1.default.lstatSync(e).isDirectory())return;fs_1.default.unlinkSync(e)}mkdirSync(path_1.default.dirname(e)),fs_1.default.mkdirSync(e)}function escapeQuot(e,t="`"){return e?"`"===t?e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$/g,"\\$"):'"'===t?e.replace(/\\/g,"\\\\").replace(/\r\n/g,"\n").replace(/\n/g,"\\n").replace(/"/g,'\\"'):"'"===t?e.replace(/\\/g,"\\\\").replace(/\r\n/g,"\n").replace(/\n/g,"\\n").replace(/'/g,"\\'"):e:e}function trailing(e,t,r=!1){return r?e.endsWith(t)?e.slice(0,e.length-1):e:e.endsWith(t)?e:e+t}function leading(e,t,r=!1){return r?e.startsWith(t)?e.slice(1):e:e.startsWith(t)?e:t+e}exports.isHexColor=isHexColor,exports.rmSync=rmSync,exports.mkdirSync=mkdirSync,exports.escapeQuot=escapeQuot,exports.trailing=trailing,exports.leading=leading;const FFSPRGRulesFactory=function(e){let t=null,r=Object.create(null);return function(e,o){if(o.length<1)return!1;if(t===o){if(void 0!==r[e])return r[e]}else t=o,r=Object.create(null);const n=e.replace(/\\/g,"/").toLowerCase();if(!n)return!1;const i=n.slice(n.lastIndexOf("/")+1);let s=!1;for(const e of o){if(!e)continue;const t=e.value.toLowerCase();if("prefix"===e.type)s=i.startsWith(t);else if("suffix"===e.type)s=i.endsWith(t);else if("folder"===e.type)s=leading(n,"/").startsWith(trailing(leading(t,"/"),"/"));else if("file"===e.type)s=leading(n,"/")===leading(t,"/");else if("glob"===e.type)try{s=(0,minimatch_1.default)(n,t)||(0,minimatch_1.default)(leading(n,"/"),t)}catch(e){s=!1}else if("regexp"===e.type)try{s=new RegExp(t,"igm").test(n)||new RegExp(t,"igm").test(leading(n,"/"))}catch(e){s=!1}if(s)break}return r[e]=s,s}};function formatSourceMap(e){if(e){if("string"===getType(e))return e;try{return JSON.stringify(e)}catch(e){}}}function generateMD5(e){const t=crypto_1.default.createHash("md5");return t.update(e),t.digest("hex")}exports.isFileIgnored=FFSPRGRulesFactory(),exports.isFileIncluded=FFSPRGRulesFactory(),exports.formatSourceMap=formatSourceMap,exports.generateMD5=generateMD5;const formatNumber=e=>e>9?""+e:"0"+e;exports.formatNumber=formatNumber;const formatTime=e=>{const t=e.getFullYear(),r=e.getMonth()+1,o=e.getDate(),n=e.getHours(),i=e.getMinutes(),s=e.getSeconds();return`${[t,r,o].map(exports.formatNumber).join("/")} ${[n,i,s].map(exports.formatNumber).join(":")}`};exports.formatTime=formatTime;const isDevtools=process.__nwjs&&window.nw&&"wechatwebdevtools"===nw.App.manifest.appname;function devtoolsInfo(...e){isDevtools&&console.info(...e)}function devtoolsLog(...e){isDevtools&&console.log(...e)}function devtoolsError(...e){isDevtools&&console.error(...e)}function getPluginByAliasOrProvider(e,t){if(e){const r=e[t];if(r)return{alias:t,provider:r.provider,version:r.version};for(const r in e){const o=e[r];if(o.provider===t)return{alias:r,provider:o.provider,version:o.version}}}}function checkPluginByAliasOrProvider(e,t){let r;if(e.subPackages)for(const o of e.subPackages)if(r=getPluginByAliasOrProvider(o.plugins,t),r)return Object.assign(Object.assign({},r),{config:o});if(r=getPluginByAliasOrProvider(e.plugins,t),r)return r}function checkIsInSubPackage(e,t=""){let r;if((0,startWith_1.default)(t,"plugin://")){const r=t.match(/^plugin:\/\/([^/]*)\/(.*)/),o=null==r?void 0:r[1];if(!o)return;const n=checkPluginByAliasOrProvider(e,o);return null==n?void 0:n.config}if(e.subPackages)for(let o=0,n=e.subPackages.length;o<n;o++){const n=e.subPackages[o];if(t.startsWith(n.root)){r=n;break}}return r}function checkIsIndependentSubpackage(e,t){const r=checkIsInSubPackage(e,t);if(r&&!0===r.independent)return r}function getTerm(){if(!!!(null===window||void 0===window?void 0:window.nw))return require("terminal-kit").terminal}function getTargetPlatformJson(e,t=define_1.PLATFORM["mini-weixin"]){const r=Object.values(define_1.PLATFORM),o=fs_extra_1.default.readJsonSync(e),n=lodash_1.default.omit(o,r);return lodash_1.default.merge(n,o[t]||("mini-weixin"===t?o["mini-wechat"]:{}))}function getAppJson(e,t=define_1.PLATFORM["mini-weixin"]){const r=path_1.default.join(e.projectPath,e.miniprogramRoot||"","app.json");if(!fs_extra_1.default.existsSync(r))throw Error("no found app.json");return getTargetPlatformJson(r,t)}function getPluginJson(e,t=define_1.PLATFORM["mini-weixin"]){const r=path_1.default.join(e.projectPath,e.pluginRoot||"","plugin.json");if(!fs_extra_1.default.existsSync(r))throw Error("no found plugin.json");return getTargetPlatformJson(r,t)}exports.devtoolsInfo=devtoolsInfo,exports.devtoolsLog=devtoolsLog,exports.devtoolsError=devtoolsError,exports.checkIsInSubPackage=checkIsInSubPackage,exports.checkIsIndependentSubpackage=checkIsIndependentSubpackage,exports.getTerm=getTerm,exports.getAppJson=getAppJson,exports.getPluginJson=getPluginJson;const getWorkersPath=e=>"string"==typeof e?e:e.path;exports.getWorkersPath=getWorkersPath;const unifyPath=e=>e.replace(/\\/g,"/");exports.unifyPath=unifyPath;const compareVersion=(e,t)=>{e=e.split("."),t=t.split(".");const r=Math.max(e.length,t.length);for(;e.length<r;)e.push("0");for(;t.length<r;)t.push("0");for(let o=0;o<r;o++){const r=parseInt(e[o],10),n=parseInt(t[o],10);if(r>n)return 1;if(r<n)return-1}return 0};exports.compareVersion=compareVersion;const pathRelative=(e,t)=>(e=path_1.default.posix.normalize(e.replace(/\\/g,"/")),t=path_1.default.posix.normalize(t.replace(/\\/g,"/")),path_1.default.posix.relative(e,t));function _isLeftSubPathOfRight(e,t){if(!t)return!0;if(t=normalizePath(t),e=normalizePath(e),!t.endsWith("/")){if(e===t)return!0;t+="/"}return!!e.startsWith(t)}function isLeftSubPathOfRight(e,t){void 0===e&&(console.error(new Error("The child string is undefined here, please check!!")),e="");const r=e.startsWith(t),o=_isLeftSubPathOfRight(e,t);return r!==o&&console.error(new Error(`${e} ${t} difference check sub path here! new result: ${o}`)),o}function isGameApp(e){return e.type===types_1.EProjectType.miniGame||e.type===types_1.EProjectType.miniGamePlugin}exports.pathRelative=pathRelative,exports.isLeftSubPathOfRight=isLeftSubPathOfRight,exports.isGameApp=isGameApp;const checkIsUseCompilerPlugins=e=>{var t,r,o;return!isGameApp(e)||(null===(t=e.setting)||void 0===t?void 0:t.condition)||((null===(r=e.setting)||void 0===r?void 0:r.useCompilerPlugins)||[]).length>0||(null===(o=e.setting)||void 0===o?void 0:o.swc)};exports.checkIsUseCompilerPlugins=checkIsUseCompilerPlugins;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class WaitAble{constructor(){this._ready=!1,this._waitForReadyQueue=[]}wait(e){return new Promise(async(t,a)=>{if(this._ready)t(!0);else if(this._waitForReadyQueue.push({resolve:t,reject:a}),e)try{await(null==e?void 0:e()),this.makeReady()}catch(e){this.makeError(e)}else this.makeReady()})}makeReady(){this._ready=!0,this._waitForReadyQueue.forEach(({resolve:e})=>{e()}),this._waitForReadyQueue=[]}makeError(e){this._ready=!1,this._waitForReadyQueue.forEach(({reject:t})=>{t(e)}),this._waitForReadyQueue=[]}}exports.default=WaitAble;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWhiteExtList=exports.GameWhiteList=exports.MiniProgramWhiteList=void 0;const tslib_1=require("tslib"),url_config_1=require("./url_config"),request_1=require("./request"),log_1=tslib_1.__importDefault(require("./log")),jsonParse_1=require("./jsonParse");let cacheResult;async function getWhiteExtList(){if(cacheResult)return cacheResult;try{const{body:t}=await(0,request_1.request)({url:url_config_1.GET_WHITE_EXT_LIST,method:"get"}),e=(0,jsonParse_1.jsonRespParse)(t,url_config_1.GET_WHITE_EXT_LIST);if(0===e.errCode&&e.data)return cacheResult={GameWhiteList:new Set(e.data.game||exports.GameWhiteList),MiniProgramWhiteList:new Set(e.data.miniProgram||exports.MiniProgramWhiteList)},cacheResult}catch(t){log_1.default.error("get white ext list fail "+t)}return{GameWhiteList:new Set(exports.GameWhiteList),MiniProgramWhiteList:new Set(exports.MiniProgramWhiteList)}}exports.MiniProgramWhiteList=[".wxml",".wxss",".wxs",".png",".jpg",".jpeg",".gif",".svg",".js",".json",".cer",".mp3",".aac",".m4a",".mp4",".wav",".ogg",".silk",".wasm",".br",".cur",".ico",".skel",".crt",".cert"],exports.GameWhiteList=[".png",".jpg",".jpeg",".gif",".svg",".js",".json",".cer",".obj",".dae",".fbx",".mtl",".stl",".3ds",".mp3",".pvr",".wav",".plist",".ttf",".fnt",".gz",".ccz",".m4a",".mp4",".bmp",".atlas",".swf",".ani",".part",".proto",".bin",".sk",".mipmaps",".txt",".zip",".ogg",".silk",".dbbin",".dbmv",".etc",".lmat",".lm",".ls",".lh",".lani",".lav",".lsani",".ltc",".csv",".scene",".prefab",".lml",".lmani",".ktx",".dds",".xml",".aac",".pkm",".skel",".cur",".ico",".wasm",".br",".gltf",".glb",".astc",".dat",".tt"],exports.getWhiteExtList=getWhiteExtList;
|
|
3
|
-
}(require("licia/lazyImport")(require), require)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getWhiteExtList=exports.GameWhiteList=exports.MiniProgramWhiteList=void 0;const tslib_1=require("tslib"),url_config_1=require("../config/url.config"),request_1=require("./request"),log=tslib_1.__importStar(require("./log")),jsonParse_1=require("./jsonParse");let cacheResult;async function getWhiteExtList(){if(cacheResult)return cacheResult;try{const{body:t}=await(0,request_1.request)({url:url_config_1.GET_WHITE_EXT_LIST,method:"get"}),e=(0,jsonParse_1.jsonRespParse)(t,url_config_1.GET_WHITE_EXT_LIST);if(0===e.errCode&&e.data)return cacheResult={GameWhiteList:new Set(e.data.game||exports.GameWhiteList),MiniProgramWhiteList:new Set(e.data.miniProgram||exports.MiniProgramWhiteList)},cacheResult}catch(t){log.error("get white ext list fail "+t)}return{GameWhiteList:new Set(exports.GameWhiteList),MiniProgramWhiteList:new Set(exports.MiniProgramWhiteList)}}exports.MiniProgramWhiteList=[".wxml",".wxss",".wxs",".png",".jpg",".jpeg",".gif",".svg",".js",".json",".cer",".mp3",".aac",".m4a",".mp4",".wav",".ogg",".silk",".wasm",".br",".cur",".ico",".skel",".crt",".cert"],exports.GameWhiteList=[".png",".jpg",".jpeg",".gif",".svg",".js",".json",".cer",".obj",".dae",".fbx",".mtl",".stl",".3ds",".mp3",".pvr",".wav",".plist",".ttf",".fnt",".gz",".ccz",".m4a",".mp4",".bmp",".atlas",".swf",".ani",".part",".proto",".bin",".sk",".mipmaps",".txt",".zip",".ogg",".silk",".dbbin",".dbmv",".etc",".lmat",".lm",".ls",".lh",".lani",".lav",".lsani",".ltc",".csv",".scene",".prefab",".lml",".lmani",".ktx",".dds",".xml",".aac",".pkm",".skel",".cur",".ico",".wasm",".br",".gltf",".glb",".astc",".dat",".tt"],exports.getWhiteExtList=getWhiteExtList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.packCore=void 0;const tslib_1=require("tslib"),fs_1=tslib_1.__importDefault(require("fs")),path_1=tslib_1.__importDefault(require("path")),glob_1=tslib_1.__importDefault(require("glob")),rtrim_1=tslib_1.__importDefault(require("licia/rtrim")),fs_extra_1=tslib_1.__importDefault(require("fs-extra")),tools_1=require("../tools"),B_PROTOCOL=0,B_PROTOCOL_VERSION=1,B_FILEINFO_LEN=2,B_FILEDATA_LEN=3,B_PROTOCOL_END=4;function packCore(t){const e=[Buffer.alloc(1),Buffer.alloc(4),Buffer.alloc(4),Buffer.alloc(4),Buffer.alloc(1)];e[0].writeUIntLE(190,0,1),e[1].writeInt32BE(0,0),e[4].writeUIntLE(237,0,1);const r=t.length,o=[],a=[];t.forEach(({path:t,data:e})=>{o.push(Buffer.from(t)),a.push(e)});let l=18+12*r+Buffer.concat(o).length;const f=o.map((t,e)=>{const r=Buffer.alloc(4);r.writeInt32BE(t.length,0);const o=a[e].length,f=Buffer.alloc(4);f.writeInt32BE(l,0),l+=o;const n=Buffer.alloc(4);return n.writeInt32BE(o,0),Buffer.concat([r,t,f,n])}),n=Buffer.alloc(4);n.writeInt32BE(r,0),f.unshift(n);const c=Buffer.concat(f),i=Buffer.concat(a);e[2].writeInt32BE(c.length,0),e[3].writeInt32BE(i.length,0);const u=Buffer.concat(e);return Buffer.concat([u,c,i])}async function pack(t,e,r,o){const a=packCore(await readFiles(t,r,o));return fs_extra_1.default.ensureFileSync(e),fs_extra_1.default.writeFileSync(e,a),a}function readFiles(t,e,r){return t=(0,tools_1.normalizePath)(t),t=(0,rtrim_1.default)(t," /"),new Promise((o,a)=>{const l=[];(0,glob_1.default)(path_1.default.join(t,"**/*"),{nodir:!0,ignore:r,cwd:e},async(r,f)=>{if(r)return a(r);for(let r=0,o=f.length;r<o;r++){const o=f[r];l[r]={path:o.replace(t,""),data:fs_1.default.readFileSync(path_1.default.join(e,o))}}o(l)})})}exports.packCore=packCore,exports.default=pack;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFileInfo=exports.getFileCount=exports.getFileContentLength=exports.getFileInfoLength=void 0;const fs=require("fs"),path=require("path"),mkdir=require("mkdir-p"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFileInfo=exports.getFileCount=exports.getFileContentLength=exports.getFileInfoLength=void 0;const fs=require("fs"),path=require("path"),mkdir=require("mkdir-p"),INFO_LENGTH_BEGIN=5,INFO_LENGTH_END=9,FILE_LENGTH_BEGIN=9,FILE_LENGTH_END=13,FILE_COUNT_BEGIN=14,FILE_COUNT_END=18,FILF_INFO_BEGIN=18;function getFileInfoLength(e){return e.slice(5,9).readInt32BE(0)}function getFileContentLength(e){return e.slice(9,13).readInt32BE(0)}function getFileCount(e){return e.slice(14,18).readInt32BE(0)}function getFileInfo(e){const t=getFileCount(e),n=[];let o=18;for(let r=0;r<t;r++){const t=e.slice(o,o+4).readInt32BE(0);o+=4;const r=e.slice(o,o+t).toString();o+=t;const i=e.slice(o,o+4).readInt32BE(0);o+=4;const s=e.slice(o,o+4).readInt32BE(0);o+=4,n.push({name:r,offset:i,length:s})}return n}function unpack(e,t){try{const n=getFileInfo(e),o={};for(const r of n){const{name:n,offset:i,length:s}=r;if(o[n]=e.slice(i,i+s),t){const e=path.join(t,n);mkdir.sync(path.dirname(e)),fs.writeFileSync(e,o[n])}}return o}catch(e){throw new Error("unpack wxvpkg catch error "+e)}}exports.getFileInfoLength=getFileInfoLength,exports.getFileContentLength=getFileContentLength,exports.getFileCount=getFileCount,exports.getFileInfo=getFileInfo,exports.default=unpack;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFileInfo=exports.getFileCount=exports.getFileContentLength=exports.getFileIndexLength=exports.getFileInfoLength=void 0;const fs=require("fs"),path=require("path"),mkdir=require("mkdir-p"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFileInfo=exports.getFileCount=exports.getFileContentLength=exports.getFileIndexLength=exports.getFileInfoLength=void 0;const fs=require("fs"),path=require("path"),mkdir=require("mkdir-p"),INFO_LENGTH_BEGIN=5,INFO_LENGTH_END=9,INDEX_LENGTH_BEGIN=9,INDEX_LENGTH_END=13,FILE_LENGTH_BEGIN=13,FILE_LENGTH_END=17,FILE_COUNT_BEGIN=18,FILE_COUNT_END=22,FILF_INFO_BEGIN=22;function getFileInfoLength(e){return e.slice(5,9).readInt32BE(0)}function getFileIndexLength(e){return e.slice(9,13).readInt32BE(0)}function getFileContentLength(e){return e.slice(13,17).readInt32BE(0)}function getFileCount(e){return e.slice(18,22).readInt32BE(0)}function getFileInfo(e){const t=getFileCount(e),n=[];let o=22;for(let r=0;r<t;r++){const t=e.slice(o,o+4).readInt32BE(0);o+=4;const r=e.slice(o,o+t).toString();o+=t;const i=e.slice(o,o+1).readIntBE(0,1,!1);o+=1;const s=e.slice(o,o+2).readIntBE(0,2,!1);o+=2;const g=e.slice(o,o+4).readInt32BE(0);o+=4;const l=e.slice(o,o+4).readInt32BE(0);o+=4,n.push({name:r,encType:i,mode:s,offset:g,length:l})}return n}function unpack(e,t){try{const n=getFileInfo(e),o={},r=18+getFileInfoLength(e)+getFileIndexLength(e);for(const i of n){const{name:n,offset:s,length:g,mode:l}=i;if(o[n]=e.slice(s+r,s+r+g),t){const e=path.join(t,n);mkdir.sync(path.dirname(e)),fs.writeFileSync(e,o[n],{mode:l.toString(8)})}}return o}catch(e){throw new Error("unpack wxvpkg catch error "+e)}}exports.getFileInfoLength=getFileInfoLength,exports.getFileIndexLength=getFileIndexLength,exports.getFileContentLength=getFileContentLength,exports.getFileCount=getFileCount,exports.getFileInfo=getFileInfo,exports.default=unpack;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const fs=require("fs"),Reader0=require("./wxvpkg/reader/version0"),Reader10=require("./wxvpkg/reader/version10")
|
|
1
|
+
"use strict";const utils_1=require("./wxvpkg/utils"),fs=require("fs"),Reader0=require("./wxvpkg/reader/version0"),Reader10=require("./wxvpkg/reader/version10");class WxvpkgReader{constructor(e){this.readSync=(e,s)=>this.instance.readSync(e,s);const s=fs.openSync(e,"r");if(this.version=(0,utils_1.getVersionByFD)(s),0===this.version&&(this.instance=new Reader0(e)),10===this.version&&(this.instance=new Reader10(e)),!this.instance)throw new Error(`${e} unrecognized version: ${this.version}`);fs.close(s,()=>{})}getFile(e){return this.instance.getFile(e)}exists(e){return this.instance.exists(e)}stat(e){return this.instance.stat(e)}close(){this.instance.close()}}module.exports=WxvpkgReader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.archiveZip=exports.genZip=exports.unzip=void 0;const AdmZip=require("adm-zip"),fse=require("fs-extra"),archiver=require("archiver");async function unzip(e,r){return console.warn("@@@@@ [unzip]",e),new Promise((i,t)=>{try{setTimeout(()=>{const n=new AdmZip(e),o=n.getEntries();for(const e of o){const r=e.entryName;/^\.\.(\\|\/)+/.test(r)&&t("illegal access"),/(\\|\/)+\.\.(\\|\/)+/.test(r)&&t("illegal access"),/(\\|\/)+\.\.$/.test(r)&&t("illegal access")}n.extractAllTo(r,!0),i({})},200)}catch(e){console.warn("@@@@@ [unzip] Fail. Error:",e),t(e)}})}function genZip(e,r){const i=new AdmZip;i.addLocalFolder(e),fse.writeFileSync(r,i.toBuffer())}function archiveZip(e,r){return new Promise((i,t)=>{const n=fse.createWriteStream(r),o=archiver("zip",{zlib:{level:9}});o.on("error",e=>{t(e)}),o.on("end",()=>{i({})}),o.pipe(n),o.directory(e,!1),o.finalize()})}exports.unzip=unzip,exports.genZip=genZip,exports.archiveZip=archiveZip;
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _apply_decorated_descriptor(e,i,r,t,l){var a={};Object.keys(t).forEach(function(e){a[e]=t[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce(function(r,t){return t&&t(e,i,r)||r},a);var o=Object.prototype.hasOwnProperty.call(a,"get")||Object.prototype.hasOwnProperty.call(a,"set");return l&&void 0!==a.initializer&&!o&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),o&&(delete a.writable,delete a.initializer,delete a.value),void 0===a.initializer&&(Object.defineProperty(e,i,a),a=null),a}exports._=exports._apply_decorated_descriptor=_apply_decorated_descriptor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _apply_decs_2203_r(t,e,r,n){function o(t,e){return function(r){(function(t,e){if(t.v)throw Error("attempted to call "+e+" after decoration was finished")})(e,"addInitializer"),i(r,"An initializer"),t.push(r)}}function a(t,e,r,n,a,i,s,c,u){switch(a){case 1:l="accessor";break;case 2:l="method";break;case 3:l="getter";break;case 4:l="setter";break;default:l="field"}var l,f,d,p={kind:l,name:s?"#"+e:e,static:i,private:s,metadata:c},v={v:!1};p.addInitializer=o(n,v),0===a?s?(f=r.get,d=r.set):(f=function(){return this[e]},d=function(t){this[e]=t}):2===a?f=function(){return r.value}:((1===a||3===a)&&(f=function(){return r.get.call(this)}),(1===a||4===a)&&(d=function(t){r.set.call(this,t)})),p.access=f&&d?{get:f,set:d}:f?{get:f}:{set:d};try{return t(u,p)}finally{v.v=!0}}function i(t,e){if("function"!=typeof t)throw TypeError(e+" must be a function")}function s(t,e){var r=typeof e;if(1===t){if("object"!==r||null===e)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==e.get&&i(e.get,"accessor.get"),void 0!==e.set&&i(e.set,"accessor.set"),void 0!==e.init&&i(e.init,"accessor.init")}else if("function"!==r)throw TypeError((0===t?"field":10===t?"class":"method")+" decorators must return a function or void 0")}function c(t,e){e&&t.push(function(t){for(var r=0;r<e.length;r++)e[r].call(t);return t})}function u(t,e){return Object.defineProperty(t,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:e})}return exports._=exports._apply_decs_2203_r=_apply_decs_2203_r=function(t,e,r,n){if(void 0!==n)var i=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===i?null:i),f=function(t,e,r){for(var n=[],o=new Map,i=new Map,u=0;u<e.length;u++){var l,f,d,p,v=e[u];if(Array.isArray(v)){var g=v[1],h=v[2],y=v.length>3,m=g>=5;if(m?(d=t,g-=5,p=f=f||[]):(d=t.prototype,p=l=l||[]),0!==g&&!y){var _=m?i:o,b=_.get(h)||0;if(!0===b||3===b&&4!==g||4===b&&3!==g)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&g>2?_.set(h,g):_.set(h,!0)}!function(t,e,r,n,o,i,c,u,l){var f,d,p,v,g,h,y=r[0];if(c?f=0===o||1===o?{get:r[3],set:r[4]}:3===o?{get:r[3]}:4===o?{set:r[3]}:{value:r[3]}:0!==o&&(f=Object.getOwnPropertyDescriptor(e,n)),1===o?p={get:f.get,set:f.set}:2===o?p=f.value:3===o?p=f.get:4===o&&(p=f.set),"function"==typeof y)void 0!==(v=a(y,n,f,u,o,i,c,l,p))&&(s(o,v),0===o?d=v:1===o?(d=v.init,p={get:v.get||p.get,set:v.set||p.set}):p=v);else for(var m=y.length-1;m>=0;m--)void 0!==(v=a(y[m],n,f,u,o,i,c,l,p))&&(s(o,v),0===o?h=v:1===o?(h=v.init,p={get:v.get||p.get,set:v.set||p.set}):p=v,void 0!==h&&(void 0===d?d=h:"function"==typeof d?d=[d,h]:d.push(h)));if(0===o||1===o){if(void 0===d)d=function(t,e){return e};else if("function"!=typeof d){var _=d;d=function(t,e){for(var r=e,n=0;n<_.length;n++)r=_[n].call(t,r);return r}}else{var b=d;d=function(t,e){return b.call(t,e)}}t.push(d)}0!==o&&(1===o?(f.get=p.get,f.set=p.set):2===o?f.value=p:3===o?f.get=p:4===o&&(f.set=p),c?1===o?(t.push(function(t,e){return p.get.call(t,e)}),t.push(function(t,e){return p.set.call(t,e)})):2===o?t.push(p):t.push(function(t,e){return p.call(t,e)}):Object.defineProperty(e,n,f))}(n,d,v,h,g,m,y,p,r)}}return c(n,l),c(n,f),n}(t,e,l);return r.length||u(t,l),{e:f,get c(){return function(t,e,r){if(e.length>0){for(var n=[],a=t,i=t.name,c=e.length-1;c>=0;c--){var l={v:!1};try{var f=e[c](a,{kind:"class",name:i,addInitializer:o(n,l),metadata:r})}finally{l.v=!0}void 0!==f&&(s(10,f),a=f)}return[u(a,r),function(){for(var t=0;t<n.length;t++)n[t].call(a)}]}}(t,r,l)}}},_apply_decs_2203_r(t,e,r,n)}exports._=exports._apply_decs_2203_r=_apply_decs_2203_r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _array_like_to_array(r,a){(null==a||a>r.length)&&(a=r.length);for(var _=0,t=Array(a);_<a;_++)t[_]=r[_];return t}exports._=exports._array_like_to_array=_array_like_to_array;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _array_with_holes(r){if(Array.isArray(r))return r}exports._=exports._array_with_holes=_array_with_holes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _array_like_to_array=require("./_array_like_to_array.js");function _array_without_holes(r){if(Array.isArray(r))return _array_like_to_array._(r)}exports._=exports._array_without_holes=_array_without_holes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _assert_this_initialized(i){if(void 0===i)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return i}exports._=exports._assert_this_initialized=_assert_this_initialized;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _await_value=require("./_await_value.js");function _async_generator(e){var t,r;function n(t,r){try{var a=e[t](r),u=a.value,i=u instanceof _await_value._;Promise.resolve(i?u.wrapped:u).then(function(e){if(i){n("next",e);return}o(a.done?"return":"normal",e)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise(function(a,u){var i={key:e,arg:o,resolve:a,reject:u,next:null};r?r=r.next=i:(t=r=i,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}exports._=exports._async_generator=_async_generator,"function"==typeof Symbol&&Symbol.asyncIterator&&(_async_generator.prototype[Symbol.asyncIterator]=function(){return this}),_async_generator.prototype.next=function(e){return this._invoke("next",e)},_async_generator.prototype.throw=function(e){return this._invoke("throw",e)},_async_generator.prototype.return=function(e){return this._invoke("return",e)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _async_generator_delegate(t,n){var e={},r=!1;function o(e,o){return r=!0,{done:!1,value:n(o=new Promise(function(n){n(t[e](o))}))}}return"function"==typeof Symbol&&Symbol.iterator&&(e[Symbol.iterator]=function(){return this}),e.next=function(t){return r?(r=!1,t):o("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(r)throw r=!1,t;return o("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return o("return",t)}),e}exports._=exports._async_generator_delegate=_async_generator_delegate;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _async_iterator(r){var t,n,e,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,e=Symbol.iterator);o--;){if(n&&null!=(t=r[n]))return t.call(r);if(e&&null!=(t=r[e]))return new AsyncFromSyncIterator(t.call(r));n="@@asyncIterator",e="@@iterator"}throw TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function t(r){if(Object(r)!==r)return Promise.reject(TypeError(r+" is not an object."));var t=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:t}})}return(AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):t(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):t(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}exports._=exports._async_iterator=_async_iterator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function asyncGeneratorStep(n,t,e,r,o,a,c){try{var s=n[a](c),i=s.value}catch(n){e(n);return}s.done?t(i):Promise.resolve(i).then(r,o)}function _async_to_generator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function c(n){asyncGeneratorStep(a,r,o,c,s,"next",n)}function s(n){asyncGeneratorStep(a,r,o,c,s,"throw",n)}c(void 0)})}}exports._=exports._async_to_generator=_async_to_generator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _await_value=require("./_await_value.js");function _await_async_generator(a){return new _await_value._(a)}exports._=exports._await_async_generator=_await_async_generator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _await_value(a){this.wrapped=a}exports._=exports._await_value=_await_value;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _check_private_redeclaration(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}exports._=exports._check_private_redeclaration=_check_private_redeclaration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function _class_apply_descriptor_destructure(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(v){e.set.call(t,v)}}),e.__destrObj;if(!e.writable)throw TypeError("attempted to set read only private field");return e}exports._=exports._class_apply_descriptor_destructure=_class_apply_descriptor_destructure;
|