miniprogram-ci 2.1.19 → 2.1.26-alpha.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.
Files changed (61) hide show
  1. package/dist/@types/ci/upload.d.ts +1 -0
  2. package/dist/@types/config/config.d.ts +1 -1
  3. package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -1
  4. package/dist/ci/upload.js +1 -1
  5. package/dist/config/config.js +1 -1
  6. package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -1
  7. package/package.json +1 -1
  8. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/bin/jar +0 -0
  9. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/bin/jarsigner +0 -0
  10. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/bin/java +0 -0
  11. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/bin/keytool +0 -0
  12. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/net.properties +0 -139
  13. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/java.policy +0 -44
  14. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/java.security +0 -1366
  15. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/policy/README.txt +0 -54
  16. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/policy/limited/default_US_export.policy +0 -6
  17. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/policy/limited/default_local.policy +0 -14
  18. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/policy/limited/exempt_local.policy +0 -13
  19. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/policy/unlimited/default_US_export.policy +0 -6
  20. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/conf/security/policy/unlimited/default_local.policy +0 -6
  21. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/include/classfile_constants.h +0 -582
  22. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/include/darwin/jni_md.h +0 -56
  23. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/include/jni.h +0 -1973
  24. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/include/jvmti.h +0 -2625
  25. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/include/jvmticmlr.h +0 -115
  26. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/ADDITIONAL_LICENSE_INFO +0 -37
  27. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/ASSEMBLY_EXCEPTION +0 -27
  28. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/LICENSE +0 -347
  29. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/aes.md +0 -36
  30. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/asm.md +0 -36
  31. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/c-libutl.md +0 -35
  32. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/cldr.md +0 -66
  33. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/icu.md +0 -66
  34. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/public_suffix.md +0 -399
  35. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/java.base/unicode.md +0 -66
  36. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/jdk.jartool/ADDITIONAL_LICENSE_INFO +0 -37
  37. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/jdk.jartool/ASSEMBLY_EXCEPTION +0 -27
  38. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/legal/jdk.jartool/LICENSE +0 -347
  39. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/classlist +0 -1153
  40. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/jli/libjli.dylib +0 -0
  41. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/jrt-fs.jar +0 -0
  42. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/jspawnhelper +0 -0
  43. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/jvm.cfg +0 -2
  44. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libjava.dylib +0 -0
  45. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libjimage.dylib +0 -0
  46. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libjsig.dylib +0 -0
  47. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libnet.dylib +0 -0
  48. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libnio.dylib +0 -0
  49. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libosxsecurity.dylib +0 -0
  50. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libverify.dylib +0 -0
  51. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/libzip.dylib +0 -0
  52. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/modules +0 -0
  53. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/security/blocked.certs +0 -39
  54. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/security/cacerts +0 -0
  55. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/security/default.policy +0 -222
  56. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/security/public_suffix_list.dat +0 -0
  57. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/server/Xusage.txt +0 -22
  58. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/server/libjsig.dylib +0 -0
  59. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/server/libjvm.dylib +0 -0
  60. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/lib/tzdb.dat +0 -0
  61. package/dist/ci/android-miniapp-toolkit/jdk/jdk-11.0.18_osx-x64_0.1.0/release +0 -2
package/dist/ci/upload.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.innerUpload=exports.upload=void 0;const tslib_1=require("tslib"),log=tslib_1.__importStar(require("../utils/log")),request_1=require("../utils/request"),pack_1=require("./utils/pack"),zlib_1=tslib_1.__importDefault(require("zlib")),sign_1=require("../utils/sign"),tools_1=require("../utils/tools"),config_1=require("../config/config"),taskstatus_1=require("../utils/taskstatus"),error_1=require("../utils/error"),locales_1=tslib_1.__importDefault(require("../utils/locales/locales")),querystring_1=tslib_1.__importDefault(require("querystring")),progressupdate_1=require("./utils/progressupdate"),url_config_1=require("../config/url.config"),jsonParse_1=require("../utils/jsonParse"),cache_1=require("../utils/cache"),cos_upload_1=require("./cos-upload"),getcompiler_1=require("./getcompiler"),tools_2=require("./utils/tools"),index_1=require("../utils/asyncTask/index"),MIN_COS_UPLOAD_SIZE=5242880;async function upload(e){var o;const r=await innerUpload(e);return(null===(o=r.respBody)||void 0===o?void 0:o.dev_plugin_id)&&(log.log("Development Version Plugin ID: "+r.respBody.dev_plugin_id),r.devPluginId=r.respBody.dev_plugin_id),{subPackageInfo:r.subPackageInfo,pluginInfo:r.pluginInfo,devPluginId:r.devPluginId}}async function innerUpload(e){const{project:o,setting:r={useProjectConfig:!1},desc:t=`robot ${e.robot||"1"} use miniprogram-ci to upload at ${(0,tools_1.formatTime)(new Date)}`,version:i="",robot:s="1",test:a,pagePath:n,searchQuery:l,threads:u=0,bigPackageSizeSupport:p}=e,c=(0,progressupdate_1.transProgressUpdate)(e.onProgressUpdate||(e=>{if("object"==typeof e)try{const o=JSON.stringify(e);console.log(o)}catch(e){}console.log(""+e)}));let{useCOS:d}=e;if(process.env.COMPILE_THREADS=u.toString(),!i)throw new error_1.CodeError(locales_1.default.config.PARAM_ERROR.format("upload","version"),config_1.PARAM_ERROR);if(!o)throw new error_1.CodeError(locales_1.default.config.PARAM_ERROR.format("upload","project"),config_1.PARAM_ERROR);cache_1.cacheManager.clean();const g=await(0,getcompiler_1.getCompiler)(o,r),_=(0,tools_2.formatCISetting)(o,r),f=await g.compile({setting:_,onProgressUpdate:c,resultType:"prod",disableSpreadingUsingComponents:!0}),y=config_1.CI_VERSION,b={codeprotect:r.codeProtect?1:0,type:o.type,appid:o.appid,version:i,desc:t,robot:s},S={scene:e.scene||1011};let q;n&&(S.path=n,b.path=n),l&&(S.query=querystring_1.default.parse(l)),b.debugLaunchInfo=JSON.stringify(S),n&&l&&(b.path+="?"+l),a&&p&&(b.bigPackageSizeSupport=1);let P={};try{q=await o.getFile(o.miniprogramRoot,"ext.json"),P=JSON.parse(q.toString("utf-8"))}catch(e){}if(P&&(P.extEnable&&(b.extAppId=P.extAppid),P.directCommit)){let e="";e=P.extEnable?"The code will be uploaded into the waiting list of extAppid.":"The code will be uploaded into the draft box of the third-party platform.",log.warn(e)}try{const e=new taskstatus_1.TaskStatus(locales_1.default.config.UPLOAD.toString());c(e);const r=`${a?url_config_1.TEST_SOURCE_URL:url_config_1.UPLOAD_URL}?${querystring_1.default.stringify(b)}`;let t,i=!1,n=0;const l=(0,pack_1.pack)(f),u=zlib_1.default.gzipSync(l.buffer);if(log.info("useCOS parameter: ",d),log.info("upload zip buffer size: ",u.length),void 0===d&&(d=u.length>5242880),d){log.info("upload by COS: ",d);const e=await(0,cos_upload_1.uploadByCosSafely)(u,r,o,s);e.fallback?(i=e.fallback,log.info("upload by COS failed, fallback to http way")):(t={body:e.body},n=e.uploadCOSCostTime)}if(!d||i){const e=await(0,sign_1.getSignature)(o.privateKey,o.appid);f[index_1.SIGNATURE_FILE_NAME]=JSON.stringify({signature:e,version:y});const i=(0,pack_1.pack)(f),s=zlib_1.default.gzipSync(i.buffer);log.info("request url:",r);const a=(await(0,request_1.request)({url:r,method:"post",body:s})).body.toString();if(t=(0,jsonParse_1.jsonRespParse)(a,r),0!==t.errCode)throw new Error(a)}e.done(),c(e);const p={respBody:t.body};if(Array.isArray(t.body.subpackage_info)){const e=t.body.subpackage_info;p.subPackageInfo=e}if(Array.isArray(t.body.ext_plugin_info)){const e=t.body.ext_plugin_info;p.pluginInfo=e.map(e=>({pluginProviderAppid:e.provider,version:e.version,size:e.size}))}return g.destroy(),p}catch(e){throw new error_1.CodeError(e.toString(),config_1.UPLOAD_CGI_ERR)}}exports.upload=upload,exports.innerUpload=innerUpload;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.innerUpload=exports.upload=void 0;const tslib_1=require("tslib"),log=tslib_1.__importStar(require("../utils/log")),request_1=require("../utils/request"),pack_1=require("./utils/pack"),zlib_1=tslib_1.__importDefault(require("zlib")),sign_1=require("../utils/sign"),tools_1=require("../utils/tools"),config_1=require("../config/config"),taskstatus_1=require("../utils/taskstatus"),error_1=require("../utils/error"),locales_1=tslib_1.__importDefault(require("../utils/locales/locales")),querystring_1=tslib_1.__importDefault(require("querystring")),progressupdate_1=require("./utils/progressupdate"),url_config_1=require("../config/url.config"),jsonParse_1=require("../utils/jsonParse"),cache_1=require("../utils/cache"),cos_upload_1=require("./cos-upload"),getcompiler_1=require("./getcompiler"),tools_2=require("./utils/tools"),index_1=require("../utils/asyncTask/index"),MIN_COS_UPLOAD_SIZE=5242880;async function upload(e){var o,r;const t=await innerUpload(e);(null===(o=t.respBody)||void 0===o?void 0:o.dev_plugin_id)&&(log.log("Development Version Plugin ID: "+t.respBody.dev_plugin_id),t.devPluginId=t.respBody.dev_plugin_id);const i={subPackageInfo:t.subPackageInfo,pluginInfo:t.pluginInfo,devPluginId:t.devPluginId};return(null===(r=t.respBody)||void 0===r?void 0:r.str_uint64version)&&(i.strUint64Version=t.respBody.str_uint64version),i}async function innerUpload(e){const{project:o,setting:r={useProjectConfig:!1},desc:t=`robot ${e.robot||"1"} use miniprogram-ci to upload at ${(0,tools_1.formatTime)(new Date)}`,version:i="",robot:s="1",test:n,pagePath:a,searchQuery:l,threads:u=0,bigPackageSizeSupport:p}=e,d=(0,progressupdate_1.transProgressUpdate)(e.onProgressUpdate||(e=>{if("object"==typeof e)try{const o=JSON.stringify(e);console.log(o)}catch(e){}console.log(""+e)}));let{useCOS:c}=e;if(process.env.COMPILE_THREADS=u.toString(),!i)throw new error_1.CodeError(locales_1.default.config.PARAM_ERROR.format("upload","version"),config_1.PARAM_ERROR);if(!o)throw new error_1.CodeError(locales_1.default.config.PARAM_ERROR.format("upload","project"),config_1.PARAM_ERROR);cache_1.cacheManager.clean();const _=await(0,getcompiler_1.getCompiler)(o,r),g=(0,tools_2.formatCISetting)(o,r),f=await _.compile({setting:g,onProgressUpdate:d,resultType:"prod",disableSpreadingUsingComponents:!0}),y=config_1.CI_VERSION,b={codeprotect:r.codeProtect?1:0,type:o.type,appid:o.appid,version:i,desc:t,robot:s},S={scene:e.scene||1011};let q;a&&(S.path=a,b.path=a),l&&(S.query=querystring_1.default.parse(l)),b.debugLaunchInfo=JSON.stringify(S),a&&l&&(b.path+="?"+l),n&&p&&(b.bigPackageSizeSupport=1);let P={};try{q=await o.getFile(o.miniprogramRoot,"ext.json"),P=JSON.parse(q.toString("utf-8"))}catch(e){}if(P&&(P.extEnable&&(b.extAppId=P.extAppid),P.directCommit)){let e="";e=P.extEnable?"The code will be uploaded into the waiting list of extAppid.":"The code will be uploaded into the draft box of the third-party platform.",log.warn(e)}try{const e=new taskstatus_1.TaskStatus(locales_1.default.config.UPLOAD.toString());d(e);const r=`${n?url_config_1.TEST_SOURCE_URL:url_config_1.UPLOAD_URL}?${querystring_1.default.stringify(b)}`;let t,i=!1,a=0;const l=(0,pack_1.pack)(f),u=zlib_1.default.gzipSync(l.buffer);if(log.info("useCOS parameter: ",c),log.info("upload zip buffer size: ",u.length),void 0===c&&(c=u.length>5242880),c){log.info("upload by COS: ",c);const e=await(0,cos_upload_1.uploadByCosSafely)(u,r,o,s);e.fallback?(i=e.fallback,log.info("upload by COS failed, fallback to http way")):(t={body:e.body},a=e.uploadCOSCostTime)}if(!c||i){const e=await(0,sign_1.getSignature)(o.privateKey,o.appid);f[index_1.SIGNATURE_FILE_NAME]=JSON.stringify({signature:e,version:y});const i=(0,pack_1.pack)(f),s=zlib_1.default.gzipSync(i.buffer);log.info("request url:",r);const n=(await(0,request_1.request)({url:r,method:"post",body:s})).body.toString();if(t=(0,jsonParse_1.jsonRespParse)(n,r),0!==t.errCode)throw new Error(n)}e.done(),d(e);const p={respBody:t.body};if(Array.isArray(t.body.subpackage_info)){const e=t.body.subpackage_info;p.subPackageInfo=e}if(Array.isArray(t.body.ext_plugin_info)){const e=t.body.ext_plugin_info;p.pluginInfo=e.map(e=>({pluginProviderAppid:e.provider,version:e.version,size:e.size}))}return _.destroy(),p}catch(e){throw new error_1.CodeError(e.toString(),config_1.UPLOAD_CGI_ERR)}}exports.upload=upload,exports.innerUpload=innerUpload;
@@ -1 +1 @@
1
- "use strict";var COMPILE_TYPE,AstType,EFilterCode;function getDefaultIgnores(e){const _=["node_modules/**/*","**/node_modules/**","**/.git/**",".git/**/*","**/.svn/**",".svn/**/*",".DS_Store","**/.DS_Store"];return"multiPlatform"===e.projectArchitecture&&_.push(exports.multiPlatformRoot+"/**/*"),_}Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=exports.EFilterCode=exports.AstType=exports.compileTypeConfig=exports.getDefaultIgnores=exports.FullPkg=exports.MainPkg=exports.multiPlatformRoot=exports.extendedLibMap=exports.jsonVariablePropertyWhiteList=exports.DefaultProjectAttr=exports.TABBAR_ICON_WHITE_LIST=exports.COMPILE_TYPE=exports.APP_TYPE=exports.MINI_GAME_WORKERS_PACKAGE_ROOT=exports.MINI_GAME_MAIN_PACKAGE_ROOT=exports.MINI_PROGRAM_MAIN_PACKAGE_ROOT=exports.PROJECT_TYPE_ERROR=exports.GET_LATEST_VERSION_CGI_ERR=exports.UPLOAD_JS_SERVER_CGI_ERR=exports.CODE_PROTECT_TRANSLATE_FILENAME=exports.UPLOAD_CGI_ERR=exports.GENERATE_LOCAL_SIGNATURE_ERR=exports.GET_SIGNATURE_RAND_STRING_ERR=exports.APP_JSON_NOT_FOUND=exports.JSON_CONTENT_ERR=exports.FILE_NOT_UTF8=exports.JSON_PARSE_ERR=exports.FILE_NOT_FOUND=exports.PLUGIN_JSON_PARSE_ERR=exports.PLUGIN_JSON_CONTENT_ERR=exports.PLUGIN_JSON_FILE_NOT_FOUND=exports.GAME_PLUGIN_LIB_MD5_NOT_MATCH=exports.SUMMER_PLUGIN_CODE_ERR=exports.SUMMER_PLUGIN_ERR=exports.MINIFY_WXML_ERR=exports.POST_WXSS_ERR=exports.FILE_FLAT_ERR=exports.JS_ES6_ERR=exports.BABILI_JS_ERR=exports.UGLIFY_JS_ERR=exports.BABEL_TRANS_JS_ERR=exports.JS_NOT_FOUND=exports.WXML_NOT_FOUND=exports.PARAM_ERROR=exports.CI_VERSION=void 0,exports.CI_VERSION="2.1.19",exports.PARAM_ERROR=1e4,exports.WXML_NOT_FOUND=10007,exports.JS_NOT_FOUND=10008,exports.BABEL_TRANS_JS_ERR=10032,exports.UGLIFY_JS_ERR=10033,exports.BABILI_JS_ERR=10034,exports.JS_ES6_ERR=10035,exports.FILE_FLAT_ERR=10036,exports.POST_WXSS_ERR=10037,exports.MINIFY_WXML_ERR=10038,exports.SUMMER_PLUGIN_ERR=10045,exports.SUMMER_PLUGIN_CODE_ERR=10046,exports.GAME_PLUGIN_LIB_MD5_NOT_MATCH=10081,exports.PLUGIN_JSON_FILE_NOT_FOUND=10091,exports.PLUGIN_JSON_CONTENT_ERR=10092,exports.PLUGIN_JSON_PARSE_ERR=10093,exports.FILE_NOT_FOUND=10005,exports.JSON_PARSE_ERR=10006,exports.FILE_NOT_UTF8=10031,exports.JSON_CONTENT_ERR=10009,exports.APP_JSON_NOT_FOUND=2e4,exports.GET_SIGNATURE_RAND_STRING_ERR=20001,exports.GENERATE_LOCAL_SIGNATURE_ERR=20002,exports.UPLOAD_CGI_ERR=20003,exports.CODE_PROTECT_TRANSLATE_FILENAME=20004,exports.UPLOAD_JS_SERVER_CGI_ERR=20005,exports.GET_LATEST_VERSION_CGI_ERR=20006,exports.PROJECT_TYPE_ERROR=3e4,exports.MINI_PROGRAM_MAIN_PACKAGE_ROOT="__APP__",exports.MINI_GAME_MAIN_PACKAGE_ROOT="__GAME__",exports.MINI_GAME_WORKERS_PACKAGE_ROOT="workers.js",exports.APP_TYPE={NORMAL:0,PLUGIN:1,SHOP:2,MINISHOP:3,GAME:4,CARD:5,NATIVE:7},function(e){e.miniProgram="miniProgram",e.miniProgramPlugin="miniProgramPlugin",e.miniGame="miniGame",e.miniGamePlugin="miniGamePlugin"}(COMPILE_TYPE=exports.COMPILE_TYPE||(exports.COMPILE_TYPE={})),exports.TABBAR_ICON_WHITE_LIST=[".png",".jpg",".jpeg"],exports.DefaultProjectAttr={platform:!1,appType:0,isSandbox:!1,released:!1,setting:{MaxCodeSize:2,MaxSubpackageSubCodeSize:2,MaxSubpackageFullCodeSize:12,NavigateMiniprogramLimit:10,MaxSubPackageLimit:100,MinTabbarCount:2,MaxTabbarCount:5,MaxCustomTabbarCount:10,MaxTabbarIconSize:40}},exports.jsonVariablePropertyWhiteList={windowPropertWhiteList:["navigationBarBackgroundColor","navigationBarTextStyle","backgroundColor","backgroundTextStyle","backgroundColorTop","backgroundColorBottom","backgroundColorContent"],tabBarPropertyWhiteList:["color","selectedColor","backgroundColor","borderStyle"],tabbarListItemPropertyWhiteList:["iconPath","selectedIconPath"]},exports.extendedLibMap={kbone:{packages:["miniprogram-element","miniprogram-render"]},weui:{packages:["weui-miniprogram"]}},exports.multiPlatformRoot="miniapp",exports.MainPkg="__APP__",exports.FullPkg="__FULL__",exports.getDefaultIgnores=getDefaultIgnores,exports.compileTypeConfig={weapp:"weapp",game:"game",plugin:"plugin",gamePlugin:"gamePlugin"},function(e){e.Babel="babel",e.Acorn="acorn"}(AstType=exports.AstType||(exports.AstType={})),function(e){e[e.Include=0]="Include",e[e.PackOptionsIgnore=1]="PackOptionsIgnore",e[e.AnalyseNoUse=2]="AnalyseNoUse",e[e.PartialCompileNoUse=3]="PartialCompileNoUse"}(EFilterCode=exports.EFilterCode||(exports.EFilterCode={})),exports.MAX_CODE_LENGTH=2048e3;
1
+ "use strict";var COMPILE_TYPE,AstType,EFilterCode;function getDefaultIgnores(e){const _=["node_modules/**/*","**/node_modules/**","**/.git/**",".git/**/*","**/.svn/**",".svn/**/*",".DS_Store","**/.DS_Store"];return"multiPlatform"===e.projectArchitecture&&_.push(exports.multiPlatformRoot+"/**/*"),_}Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=exports.EFilterCode=exports.AstType=exports.compileTypeConfig=exports.getDefaultIgnores=exports.FullPkg=exports.MainPkg=exports.multiPlatformRoot=exports.extendedLibMap=exports.jsonVariablePropertyWhiteList=exports.DefaultProjectAttr=exports.TABBAR_ICON_WHITE_LIST=exports.COMPILE_TYPE=exports.APP_TYPE=exports.MINI_GAME_WORKERS_PACKAGE_ROOT=exports.MINI_GAME_MAIN_PACKAGE_ROOT=exports.MINI_PROGRAM_MAIN_PACKAGE_ROOT=exports.PROJECT_TYPE_ERROR=exports.GET_LATEST_VERSION_CGI_ERR=exports.UPLOAD_JS_SERVER_CGI_ERR=exports.CODE_PROTECT_TRANSLATE_FILENAME=exports.UPLOAD_CGI_ERR=exports.GENERATE_LOCAL_SIGNATURE_ERR=exports.GET_SIGNATURE_RAND_STRING_ERR=exports.APP_JSON_NOT_FOUND=exports.JSON_CONTENT_ERR=exports.FILE_NOT_UTF8=exports.JSON_PARSE_ERR=exports.FILE_NOT_FOUND=exports.PLUGIN_JSON_PARSE_ERR=exports.PLUGIN_JSON_CONTENT_ERR=exports.PLUGIN_JSON_FILE_NOT_FOUND=exports.GAME_PLUGIN_LIB_MD5_NOT_MATCH=exports.SUMMER_PLUGIN_CODE_ERR=exports.SUMMER_PLUGIN_ERR=exports.MINIFY_WXML_ERR=exports.POST_WXSS_ERR=exports.FILE_FLAT_ERR=exports.JS_ES6_ERR=exports.BABILI_JS_ERR=exports.UGLIFY_JS_ERR=exports.BABEL_TRANS_JS_ERR=exports.JS_NOT_FOUND=exports.WXML_NOT_FOUND=exports.PARAM_ERROR=exports.CI_VERSION=void 0,exports.CI_VERSION="2.1.26",exports.PARAM_ERROR=1e4,exports.WXML_NOT_FOUND=10007,exports.JS_NOT_FOUND=10008,exports.BABEL_TRANS_JS_ERR=10032,exports.UGLIFY_JS_ERR=10033,exports.BABILI_JS_ERR=10034,exports.JS_ES6_ERR=10035,exports.FILE_FLAT_ERR=10036,exports.POST_WXSS_ERR=10037,exports.MINIFY_WXML_ERR=10038,exports.SUMMER_PLUGIN_ERR=10045,exports.SUMMER_PLUGIN_CODE_ERR=10046,exports.GAME_PLUGIN_LIB_MD5_NOT_MATCH=10081,exports.PLUGIN_JSON_FILE_NOT_FOUND=10091,exports.PLUGIN_JSON_CONTENT_ERR=10092,exports.PLUGIN_JSON_PARSE_ERR=10093,exports.FILE_NOT_FOUND=10005,exports.JSON_PARSE_ERR=10006,exports.FILE_NOT_UTF8=10031,exports.JSON_CONTENT_ERR=10009,exports.APP_JSON_NOT_FOUND=2e4,exports.GET_SIGNATURE_RAND_STRING_ERR=20001,exports.GENERATE_LOCAL_SIGNATURE_ERR=20002,exports.UPLOAD_CGI_ERR=20003,exports.CODE_PROTECT_TRANSLATE_FILENAME=20004,exports.UPLOAD_JS_SERVER_CGI_ERR=20005,exports.GET_LATEST_VERSION_CGI_ERR=20006,exports.PROJECT_TYPE_ERROR=3e4,exports.MINI_PROGRAM_MAIN_PACKAGE_ROOT="__APP__",exports.MINI_GAME_MAIN_PACKAGE_ROOT="__GAME__",exports.MINI_GAME_WORKERS_PACKAGE_ROOT="workers.js",exports.APP_TYPE={NORMAL:0,PLUGIN:1,SHOP:2,MINISHOP:3,GAME:4,CARD:5,NATIVE:7},function(e){e.miniProgram="miniProgram",e.miniProgramPlugin="miniProgramPlugin",e.miniGame="miniGame",e.miniGamePlugin="miniGamePlugin"}(COMPILE_TYPE=exports.COMPILE_TYPE||(exports.COMPILE_TYPE={})),exports.TABBAR_ICON_WHITE_LIST=[".png",".jpg",".jpeg"],exports.DefaultProjectAttr={platform:!1,appType:0,isSandbox:!1,released:!1,setting:{MaxCodeSize:2,MaxSubpackageSubCodeSize:2,MaxSubpackageFullCodeSize:12,NavigateMiniprogramLimit:10,MaxSubPackageLimit:100,MinTabbarCount:2,MaxTabbarCount:5,MaxCustomTabbarCount:10,MaxTabbarIconSize:40}},exports.jsonVariablePropertyWhiteList={windowPropertWhiteList:["navigationBarBackgroundColor","navigationBarTextStyle","backgroundColor","backgroundTextStyle","backgroundColorTop","backgroundColorBottom","backgroundColorContent"],tabBarPropertyWhiteList:["color","selectedColor","backgroundColor","borderStyle"],tabbarListItemPropertyWhiteList:["iconPath","selectedIconPath"]},exports.extendedLibMap={kbone:{packages:["miniprogram-element","miniprogram-render"]},weui:{packages:["weui-miniprogram"]}},exports.multiPlatformRoot="miniapp",exports.MainPkg="__APP__",exports.FullPkg="__FULL__",exports.getDefaultIgnores=getDefaultIgnores,exports.compileTypeConfig={weapp:"weapp",game:"game",plugin:"plugin",gamePlugin:"gamePlugin"},function(e){e.Babel="babel",e.Acorn="acorn"}(AstType=exports.AstType||(exports.AstType={})),function(e){e[e.Include=0]="Include",e[e.PackOptionsIgnore=1]="PackOptionsIgnore",e[e.AnalyseNoUse=2]="AnalyseNoUse",e[e.PartialCompileNoUse=3]="PartialCompileNoUse"}(EFilterCode=exports.EFilterCode||(exports.EFilterCode={})),exports.MAX_CODE_LENGTH=2048e3;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),postcss_1=tslib_1.__importDefault(require("postcss")),autoprefixer_1=tslib_1.__importDefault(require("autoprefixer")),cssnano_1=tslib_1.__importDefault(require("cssnano")),tools_1=require("../../../../../utils/tools"),config_1=require("../../../../../config/config"),customError_1=require("../../../../../utils/customError");"undefined"!=typeof process&&process.env&&(process.env.BROWSERSLIST=process.env.BROWSERSLIST||"iOS >= 8, Chrome >= 37");const MAX_LINE_SHOW_LENGTH=45;function shortString(r,e,t=-1){const s=r.length;if(s<=e)return{result:r,marker:t};const o=Math.floor(e/2);return-1===t||t<=o?{result:r.substr(0,e-3)+"...",marker:t}:t+o>=s?{result:"..."+r.substr(s-e+3,e-3),marker:Math.min(e,e-(s-t))}:{result:`...${r.substr(t-o+3,e-6)}...`,marker:o}}function formatPostcssError(r,e){try{const t=e.line-1,s=e.column-1,o=r.replace(/\r\n/g,"\n").split("\n"),n=[],i=Math.max(0,t-1),u=Math.min(t+2,o.length);for(let r=i;r<u;r++){const e=shortString(o[r],45,s);r===t?n.push(`> ${r+1} | ${e.result.substr(0,e.marker)}${e.result.substr(e.marker)}`):n.push(`> ${r+1} | ${e.result}`)}return`${e.message}\n${n.join("\n")}`}catch(r){}return e.message}function default_1(r,e){const{autoPrefix:t=!0,minify:s=!0}=e||{},o=["iOS >= 8","Chrome >= 37"];return{name:"summer-wxss",workerMethods:{async doOptimize(r,e){try{const n=[];t&&n.push((0,autoprefixer_1.default)({overrideBrowserslist:o,remove:!1})),s&&n.push((0,cssnano_1.default)({preset:["default",{reduceTransforms:!1,calc:!1,minifySelectors:!1,normalizeUrl:!1}]}));return{error:null,content:(await(0,postcss_1.default)(n).process(e,{from:(0,tools_1.leading)(r,"/")})).css.replace(/\r\n/g,"\n")}}catch(t){return{error:(0,customError_1.makeCustomError)(formatPostcssError(e,t),config_1.POST_WXSS_ERR,r)}}}},async optimize(r,e){if("dev"===e.resultType||!r.targetPath.endsWith(".wxss")||!t&&!s)return r;const o=Date.now(),n=await this.runWorkerMethod("doOptimize",r.targetPath,r.target.code);if(n.error)throw n.error;return Object.assign(Object.assign({},r),{target:Object.assign(Object.assign({},r.target),{code:n.content}),process:[...r.process,{cost:Date.now()-o,pluginName:"summer-wxss",action:"optimize"}]})}}}exports.default=default_1;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),postcss_1=tslib_1.__importDefault(require("postcss")),autoprefixer_1=tslib_1.__importDefault(require("autoprefixer")),cssnano_1=tslib_1.__importDefault(require("cssnano")),tools_1=require("../../../../../utils/tools"),config_1=require("../../../../../config/config"),customError_1=require("../../../../../utils/customError");"undefined"!=typeof process&&process.env&&(process.env.BROWSERSLIST=process.env.BROWSERSLIST||"iOS >= 8, Chrome >= 37");const MAX_LINE_SHOW_LENGTH=45;function shortString(r,e,t=-1){const s=r.length;if(s<=e)return{result:r,marker:t};const o=Math.floor(e/2);return-1===t||t<=o?{result:r.substr(0,e-3)+"...",marker:t}:t+o>=s?{result:"..."+r.substr(s-e+3,e-3),marker:Math.min(e,e-(s-t))}:{result:`...${r.substr(t-o+3,e-6)}...`,marker:o}}function formatPostcssError(r,e){try{const t=e.line-1,s=e.column-1,o=r.replace(/\r\n/g,"\n").split("\n"),n=[],i=Math.max(0,t-1),u=Math.min(t+2,o.length);for(let r=i;r<u;r++){const e=shortString(o[r],45,s);r===t?n.push(`> ${r+1} | ${e.result.substr(0,e.marker)}${e.result.substr(e.marker)}`):n.push(`> ${r+1} | ${e.result}`)}return`${e.message}\n${n.join("\n")}`}catch(r){}return e.message}function default_1(r,e){const{autoPrefix:t=!0,minify:s=!0}=e||{},o=["iOS >= 8","Chrome >= 37"];return{name:"summer-wxss",workerMethods:{async doOptimize(r,e){try{const n=[];t&&n.push((0,autoprefixer_1.default)({overrideBrowserslist:o,remove:!1})),s&&n.push((0,cssnano_1.default)({preset:["default",{reduceTransforms:!1,calc:!1,minifySelectors:!1,normalizeUrl:!1}]}));return{error:null,content:(await(0,postcss_1.default)(n).process(e,{from:(0,tools_1.leading)(r,"/")})).css.replace(/\r\n/g,"\n")}}catch(t){throw(0,customError_1.makeCustomError)(formatPostcssError(e,t),config_1.POST_WXSS_ERR,r)}}},async optimize(r,e){if("dev"===e.resultType||!r.targetPath.endsWith(".wxss")||!t&&!s)return r;const o=Date.now(),n=await this.runWorkerMethod("doOptimize",r.targetPath,r.target.code);if(n.error)throw n.error;return Object.assign(Object.assign({},r),{target:Object.assign(Object.assign({},r.target),{code:n.content}),process:[...r.process,{cost:Date.now()-o,pluginName:"summer-wxss",action:"optimize"}]})}}}exports.default=default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miniprogram-ci",
3
- "version": "2.1.19",
3
+ "version": "2.1.26-alpha.1",
4
4
  "description": "Module that build miniprogram project for web or app extracted from WeChatDevtools.",
5
5
  "homepage": "https://developers.weixin.qq.com/community/homepage",
6
6
  "main": "dist/index.js",
@@ -1,139 +0,0 @@
1
- ############################################################
2
- # Default Networking Configuration File
3
- #
4
- # This file may contain default values for the networking system properties.
5
- # These values are only used when the system properties are not specified
6
- # on the command line or set programmatically.
7
- # For now, only the various proxy settings can be configured here.
8
- ############################################################
9
-
10
- # Whether or not the DefaultProxySelector will default to System Proxy
11
- # settings when they do exist.
12
- # Set it to 'true' to enable this feature and check for platform
13
- # specific proxy settings
14
- # Note that the system properties that do explicitly set proxies
15
- # (like http.proxyHost) do take precedence over the system settings
16
- # even if java.net.useSystemProxies is set to true.
17
-
18
- java.net.useSystemProxies=false
19
-
20
- #------------------------------------------------------------------------
21
- # Proxy configuration for the various protocol handlers.
22
- # DO NOT uncomment these lines if you have set java.net.useSystemProxies
23
- # to true as the protocol specific properties will take precedence over
24
- # system settings.
25
- #------------------------------------------------------------------------
26
-
27
- # HTTP Proxy settings. proxyHost is the name of the proxy server
28
- # (e.g. proxy.mydomain.com), proxyPort is the port number to use (default
29
- # value is 80) and nonProxyHosts is a '|' separated list of hostnames which
30
- # should be accessed directly, ignoring the proxy server (default value is
31
- # localhost & 127.0.0.1).
32
- #
33
- # http.proxyHost=
34
- # http.proxyPort=80
35
- http.nonProxyHosts=localhost|127.*|[::1]
36
- #
37
- # HTTPS Proxy Settings. proxyHost is the name of the proxy server
38
- # (e.g. proxy.mydomain.com), proxyPort is the port number to use (default
39
- # value is 443). The HTTPS protocol handlers uses the http nonProxyHosts list.
40
- #
41
- # https.proxyHost=
42
- # https.proxyPort=443
43
- #
44
- # FTP Proxy settings. proxyHost is the name of the proxy server
45
- # (e.g. proxy.mydomain.com), proxyPort is the port number to use (default
46
- # value is 80) and nonProxyHosts is a '|' separated list of hostnames which
47
- # should be accessed directly, ignoring the proxy server (default value is
48
- # localhost & 127.0.0.1).
49
- #
50
- # ftp.proxyHost=
51
- # ftp.proxyPort=80
52
- ftp.nonProxyHosts=localhost|127.*|[::1]
53
- #
54
- # Gopher Proxy settings. proxyHost is the name of the proxy server
55
- # (e.g. proxy.mydomain.com), proxyPort is the port number to use (default
56
- # value is 80)
57
- #
58
- # gopher.proxyHost=
59
- # gopher.proxyPort=80
60
- #
61
- # Socks proxy settings. socksProxyHost is the name of the proxy server
62
- # (e.g. socks.domain.com), socksProxyPort is the port number to use
63
- # (default value is 1080)
64
- #
65
- # socksProxyHost=
66
- # socksProxyPort=1080
67
- #
68
- # HTTP Keep Alive settings. remainingData is the maximum amount of data
69
- # in kilobytes that will be cleaned off the underlying socket so that it
70
- # can be reused (default value is 512K), queuedConnections is the maximum
71
- # number of Keep Alive connections to be on the queue for clean up (default
72
- # value is 10).
73
- # http.KeepAlive.remainingData=512
74
- # http.KeepAlive.queuedConnections=10
75
-
76
- # Authentication Scheme restrictions for HTTP and HTTPS.
77
- #
78
- # In some environments certain authentication schemes may be undesirable
79
- # when proxying HTTP or HTTPS. For example, "Basic" results in effectively the
80
- # cleartext transmission of the user's password over the physical network.
81
- # This section describes the mechanism for disabling authentication schemes
82
- # based on the scheme name. Disabled schemes will be treated as if they are not
83
- # supported by the implementation.
84
- #
85
- # The 'jdk.http.auth.tunneling.disabledSchemes' property lists the authentication
86
- # schemes that will be disabled when tunneling HTTPS over a proxy, HTTP CONNECT.
87
- # The 'jdk.http.auth.proxying.disabledSchemes' property lists the authentication
88
- # schemes that will be disabled when proxying HTTP.
89
- #
90
- # In both cases the property is a comma-separated list of, case-insensitive,
91
- # authentication scheme names, as defined by their relevant RFCs. An
92
- # implementation may, but is not required to, support common schemes whose names
93
- # include: 'Basic', 'Digest', 'NTLM', 'Kerberos', 'Negotiate'. A scheme that
94
- # is not known, or not supported, by the implementation is ignored.
95
- #
96
- # Note: This property is currently used by the JDK Reference implementation. It
97
- # is not guaranteed to be examined and used by other implementations.
98
- #
99
- #jdk.http.auth.proxying.disabledSchemes=
100
- jdk.http.auth.tunneling.disabledSchemes=Basic
101
-
102
- #
103
- # Allow restricted HTTP request headers
104
- #
105
- # By default, the following request headers are not allowed to be set by user code
106
- # in HttpRequests: "connection", "content-length", "expect", "host" and "upgrade".
107
- # The 'jdk.httpclient.allowRestrictedHeaders' property allows one or more of these
108
- # headers to be specified as a comma separated list to override the default restriction.
109
- # The names are case-insensitive and white-space is ignored (removed before processing
110
- # the list). Note, this capability is mostly intended for testing and isn't expected
111
- # to be used in real deployments. Protocol errors or other undefined behavior is likely
112
- # to occur when using them. The property is not set by default.
113
- # Note also, that there may be other headers that are restricted from being set
114
- # depending on the context. This includes the "Authorization" header when the
115
- # relevant HttpClient has an authenticator set. These restrictions cannot be
116
- # overridden by this property.
117
- #
118
- # jdk.httpclient.allowRestrictedHeaders=host
119
- #
120
- #
121
- # Transparent NTLM HTTP authentication mode on Windows. Transparent authentication
122
- # can be used for the NTLM scheme, where the security credentials based on the
123
- # currently logged in user's name and password can be obtained directly from the
124
- # operating system, without prompting the user. This property has three possible
125
- # values which regulate the behavior as shown below. Other unrecognized values
126
- # are handled the same as 'disabled'. Note, that NTLM is not considered to be a
127
- # strongly secure authentication scheme and care should be taken before enabling
128
- # this mechanism.
129
- #
130
- # Transparent authentication never used.
131
- #jdk.http.ntlm.transparentAuth=disabled
132
- #
133
- # Enabled for all hosts.
134
- #jdk.http.ntlm.transparentAuth=allHosts
135
- #
136
- # Enabled for hosts that are trusted in Windows Internet settings
137
- #jdk.http.ntlm.transparentAuth=trustedHosts
138
- #
139
- jdk.http.ntlm.transparentAuth=disabled
@@ -1,44 +0,0 @@
1
- //
2
- // This system policy file grants a set of default permissions to all domains
3
- // and can be configured to grant additional permissions to modules and other
4
- // code sources. The code source URL scheme for modules linked into a
5
- // run-time image is "jrt".
6
- //
7
- // For example, to grant permission to read the "foo" property to the module
8
- // "com.greetings", the grant entry is:
9
- //
10
- // grant codeBase "jrt:/com.greetings" {
11
- // permission java.util.PropertyPermission "foo", "read";
12
- // };
13
- //
14
-
15
- // default permissions granted to all domains
16
- grant {
17
- // allows anyone to listen on dynamic ports
18
- permission java.net.SocketPermission "localhost:0", "listen";
19
-
20
- // "standard" properies that can be read by anyone
21
- permission java.util.PropertyPermission "java.version", "read";
22
- permission java.util.PropertyPermission "java.vendor", "read";
23
- permission java.util.PropertyPermission "java.vendor.url", "read";
24
- permission java.util.PropertyPermission "java.class.version", "read";
25
- permission java.util.PropertyPermission "os.name", "read";
26
- permission java.util.PropertyPermission "os.version", "read";
27
- permission java.util.PropertyPermission "os.arch", "read";
28
- permission java.util.PropertyPermission "file.separator", "read";
29
- permission java.util.PropertyPermission "path.separator", "read";
30
- permission java.util.PropertyPermission "line.separator", "read";
31
- permission java.util.PropertyPermission
32
- "java.specification.version", "read";
33
- permission java.util.PropertyPermission "java.specification.vendor", "read";
34
- permission java.util.PropertyPermission "java.specification.name", "read";
35
- permission java.util.PropertyPermission
36
- "java.vm.specification.version", "read";
37
- permission java.util.PropertyPermission
38
- "java.vm.specification.vendor", "read";
39
- permission java.util.PropertyPermission
40
- "java.vm.specification.name", "read";
41
- permission java.util.PropertyPermission "java.vm.version", "read";
42
- permission java.util.PropertyPermission "java.vm.vendor", "read";
43
- permission java.util.PropertyPermission "java.vm.name", "read";
44
- };