miniprogram-ci 2.1.36 → 2.1.37
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 +2 -0
- package/README.md +2 -0
- package/dist/@types/ci/getDevSourceMap.d.ts +6 -0
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/config/url.config.d.ts +1 -0
- package/dist/ci/getDevSourceMap.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/config/url.config.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { IProject } from '../types';
|
|
2
|
+
export interface ISourceMapProgress {
|
|
3
|
+
totalSize: number;
|
|
4
|
+
downloadedSize: number;
|
|
5
|
+
percentage: number;
|
|
6
|
+
}
|
|
2
7
|
export interface IGetDevSourceMapOption {
|
|
3
8
|
project: IProject;
|
|
4
9
|
robot: number;
|
|
5
10
|
sourceMapSavePath: string;
|
|
6
11
|
streaming?: boolean;
|
|
12
|
+
onProgress?: (info: ISourceMapProgress) => void;
|
|
7
13
|
}
|
|
8
14
|
export declare function getDevSourceMap(options: IGetDevSourceMapOption): Promise<any>;
|
|
@@ -5,6 +5,7 @@ export declare const GET_WHITE_EXT_LIST = "https://servicewechat.com/wxa/ci/getw
|
|
|
5
5
|
export declare const GET_ONLINE_SCHEMA = "https://servicewechat.com/wxa/ci/getonlineschema";
|
|
6
6
|
export declare const GET_RAND_STRING = "https://servicewechat.com/wxa/ci/getrandstr";
|
|
7
7
|
export declare const GET_DEV_SOURCE_MAP = "https://servicewechat.com/wxa/ci/get_dev_sourcemap";
|
|
8
|
+
export declare const GET_DEV_SOURCE_MAP_INFO = "https://servicewechat.com/wxa/ci/get_dev_sourcemap_info";
|
|
8
9
|
export declare const TRANSLATE_FILENAME = "https://servicewechat.com/wxa/ci/translate_filename";
|
|
9
10
|
export declare const GET_CLOUD_API_SIGNATURE = "https://servicewechat.com/wxa/ci/getqcloudapisignature";
|
|
10
11
|
export declare const GET_UPLOAD_TOKEN = "https://servicewechat.com/wxa/ci/getuploadtoken";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDevSourceMap=getDevSourceMap;const tslib_1=require("tslib"),fs_1=tslib_1.__importDefault(require("fs")),path_1=tslib_1.__importDefault(require("path")),log=tslib_1.__importStar(require("../utils/log")),request_1=require("../utils/request"),url_config_1=require("../config/url.config"),sign_1=require("../utils/sign"),JsZip=require("jszip"),ERR_MSG_PREFIX="download source map failed:";async function getExtAppId(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDevSourceMap=getDevSourceMap;const tslib_1=require("tslib"),fs_1=tslib_1.__importDefault(require("fs")),path_1=tslib_1.__importDefault(require("path")),log=tslib_1.__importStar(require("../utils/log")),request_1=require("../utils/request"),url_config_1=require("../config/url.config"),sign_1=require("../utils/sign"),JsZip=require("jszip"),ERR_MSG_PREFIX="download source map failed:";async function getExtAppId(e){let r,t={};try{r=await e.getFile(e.miniprogramRoot,"ext.json"),t=JSON.parse(r.toString("utf-8"))}catch(e){}if(null==t?void 0:t.extEnable)return t.extAppid}async function fetchSourceMapInfo(e,r,t,o){const{body:a}=await(0,request_1.request)({url:url_config_1.GET_DEV_SOURCE_MAP_INFO,method:"post",gzip:!0,body:JSON.stringify({appid:e,signature:r,robot:t,extAppId:o}),headers:{"content-type":"application/json"}});let i;try{i=JSON.parse(a)}catch(e){const r=`${ERR_MSG_PREFIX} info resp is not valid json`;throw log.error(r),new Error(r)}if(0!==i.errCode){const e=`${ERR_MSG_PREFIX} get info failed, errCode: ${i.errCode}, errMsg: ${i.errMsg}`;throw log.error(e),new Error(e)}return i.data}async function fetchChunk(e,r,t,o,a,i){var s,n;const{body:p}=await(0,request_1.request)({url:url_config_1.GET_DEV_SOURCE_MAP,method:"post",body:JSON.stringify({appid:e,signature:r,robot:t,extAppId:o,offset:a,limit:i}),headers:{"content-type":"application/json"}}),l=Buffer.isBuffer(p)?p.toString():p;let c="";try{const e=JSON.parse(l);if(0!==(null===(s=e.innerRequestResp)||void 0===s?void 0:s.errCode))throw new Error(`get-sourcemap-chunk fetch faield, errcode=${null===(n=e.innerRequestResp)||void 0===n?void 0:n.errCode}`);c=e.innerRequestResp.body}catch(e){throw new Error(`get-sourcemap-chunk failed: JSON.parse err ${e}, ${l}`)}return c}async function downloadChunked(e,r,t,o,a,i,s){const n=[];let p=0;for(let l=0;l<o;l+=a){let c=a;l+a>o&&(c=o-l),log.info(`downloading sourcemap chunk offset=${l}, limit=${c}`);const u=await i(),d=await fetchChunk(e,u,r,t,l,c);n.push(d),p+=d.length,s&&s({totalSize:o,downloadedSize:p,percentage:Math.min(100,Math.round(p/o*100))})}const l=n.join("");try{return{errCode:0,data:JSON.parse(l),errMsg:""}}catch(e){throw new Error(`downloadChunked JSON.parse(wholeChunk) failed ${e}`)}}async function getDevSourceMap(e){const{project:r,robot:t,onProgress:o}=e;let{streaming:a}=e;void 0===a&&(a=!0);let{sourceMapSavePath:i}=e;if(!r){const e="params project is requried";throw log.error(e),e}if("number"!=typeof t||Math.round(t)>30||Math.round(t)<=0){const e="params robot is invalid";throw log.error(e),e}if(!i){const e="params sourceMapSavePath is invalid";throw log.error(e),e}path_1.default.isAbsolute(i)||(i=path_1.default.join(process.cwd(),i));const s=await(0,sign_1.getSignature)(r.privateKey,r.appid),n=await getExtAppId(r);let p="",l={errCode:0,data:{},errMsg:""};if(a){log.info("fetching sourcemap info...");const e=await fetchSourceMapInfo(r.appid,s,t,n);log.info(`sourcemap total_size: ${e.total_size} bytes, chunk limit: ${e.limit} bytes`);const a=e.limit;l=await downloadChunked(r.appid,t,n,e.total_size,a,(async()=>await(0,sign_1.getSignature)(r.privateKey,r.appid)),o)}else p=(await(0,request_1.request)({url:url_config_1.GET_DEV_SOURCE_MAP,method:"post",gzip:!0,body:JSON.stringify({appid:r.appid,signature:s,robot:t,extAppId:n,streaming:!1}),headers:{"content-type":"application/json"}})).body;if("string"==typeof p&&p.length>0)try{l=JSON.parse(p)}catch(e){const r=`${ERR_MSG_PREFIX} resp body is not a valid json`;throw log.error(r),r}if(0!==l.errCode)throw new Error(`request failed, errCode: ${l.errCode}, errMsg: ${l.errMsg}`);const c=l.data;if(!Array.isArray(c.sourcemap_list)){const e=`${ERR_MSG_PREFIX} respData.sourcemap_list, respData: ${JSON.stringify(c)}`;throw log.error(e),e}const u=c.sourcemap_list,d=new JsZip;try{u.forEach((e=>{d.folder(path_1.default.dirname(e.fullpath)).file(path_1.default.basename(e.fullpath),e.sourcemap)}))}catch(e){const r=`${ERR_MSG_PREFIX} source map add folder or add file error`;throw log.error(r),r}let f;try{f=await d.generateAsync({type:"nodebuffer"})}catch(e){const r=`${ERR_MSG_PREFIX} source map generate zip error`;throw log.error(r),r}try{fs_1.default.writeFileSync(i,f)}catch(e){const r=`${ERR_MSG_PREFIX} save source map to ${i} failed. Error detail: ${JSON.stringify(e)}`;throw log.error(r),r}return f}
|
package/dist/config/config.js
CHANGED
|
@@ -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.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.getDefaultIgnores=getDefaultIgnores,exports.CI_VERSION="2.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.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.getDefaultIgnores=getDefaultIgnores,exports.CI_VERSION="2.1.37",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=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.compileTypeConfig={weapp:"weapp",game:"game",plugin:"plugin",gamePlugin:"gamePlugin"},function(e){e.Babel="babel",e.Acorn="acorn"}(AstType||(exports.AstType=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=EFilterCode={})),exports.MAX_CODE_LENGTH=2048e3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getUsedPluginVersionInfo=exports.downloadMiniAppPlugin=exports.getPkgWxapkg=exports.miniappUpload=exports.getCloudBuildPkgUrl=exports.getCloudBuildTaskList=exports.uploadCloudBuildResourcePack=exports.getSdkIntInfo=exports.getAsyncResult=exports.testSourceNewFeatureURL=exports.testSourceURL=exports.getUploadToken=exports.commitSourceURL=exports.commitSourceNewFeatureURL=exports.tcbTencentCloudUrl=exports.dbTencentCloudUrl=exports.scfTencentCloudUrl=exports.cloudCosUploadURL=exports.get3rdCloudCodeSecret=exports.cloudAPIAgentURL=exports.GET_LATEST_VERSION=exports.UPLOAD_JS_SERVER=exports.GET_UPLOAD_SIGN=exports.GET_UPLOAD_INFO=exports.GET_PLUG_PKG_CHECK_USERVERSION=exports.GET_PLUG_PKG_GET_URL=exports.GET_PLUG_PKG_GET_LIST=exports.GET_MULTI_COS_UPLOAD_SIGN=exports.GET_MULTI_COS_UPLOAD_INFO=exports.GET_MULTI_COS_ASYNC_RESULT=exports.GET_GAME_PKG_UPLOAD_SIGN=exports.GET_GAME_PKG_UPLOAD_INFO=exports.GET_GAME_PKG_ASYNC_RESULT=exports.GAME_PKG_UPLOAD_URL=exports.GET_ASYNC_RESULT=exports.GET_UPLOAD_TOKEN=exports.GET_CLOUD_API_SIGNATURE=exports.TRANSLATE_FILENAME=exports.GET_DEV_SOURCE_MAP=exports.GET_RAND_STRING=exports.GET_ONLINE_SCHEMA=exports.GET_WHITE_EXT_LIST=exports.TEST_SOURCE_URL=exports.UPLOAD_URL=exports.GET_ATTR_URL=void 0;const Domain="https://servicewechat.com";exports.GET_ATTR_URL=`${Domain}/wxa/ci/getattr`,exports.UPLOAD_URL=`${Domain}/wxa/ci/upload`,exports.TEST_SOURCE_URL=`${Domain}/wxa/ci/testSourceURL`,exports.GET_WHITE_EXT_LIST=`${Domain}/wxa/ci/getwhiteextlist`,exports.GET_ONLINE_SCHEMA=`${Domain}/wxa/ci/getonlineschema`,exports.GET_RAND_STRING=`${Domain}/wxa/ci/getrandstr`,exports.GET_DEV_SOURCE_MAP=`${Domain}/wxa/ci/get_dev_sourcemap`,exports.TRANSLATE_FILENAME=`${Domain}/wxa/ci/translate_filename`,exports.GET_CLOUD_API_SIGNATURE=`${Domain}/wxa/ci/getqcloudapisignature`,exports.GET_UPLOAD_TOKEN=`${Domain}/wxa/ci/getuploadtoken`,exports.GET_ASYNC_RESULT=`${Domain}/wxa/ci/getasyncresult`,exports.GAME_PKG_UPLOAD_URL=`${Domain}/wxa/ci/gamepkgupload`,exports.GET_GAME_PKG_ASYNC_RESULT=`${Domain}/wxa/ci/getgamepkgasyncresult`,exports.GET_GAME_PKG_UPLOAD_INFO=`${Domain}/wxa/ci/getgamepkguploadinfo`,exports.GET_GAME_PKG_UPLOAD_SIGN=`${Domain}/wxa/ci/getgamepkguploadsign`,exports.GET_MULTI_COS_ASYNC_RESULT=`${Domain}/wxa/ci/getmulticosasyncresult`,exports.GET_MULTI_COS_UPLOAD_INFO=`${Domain}/wxa/ci/getmulticosuploadinfo`,exports.GET_MULTI_COS_UPLOAD_SIGN=`${Domain}/wxa/ci/getmulticosuploadsign`,exports.GET_PLUG_PKG_GET_LIST=`${Domain}/wxa/ci/apkpluggetlist`,exports.GET_PLUG_PKG_GET_URL=`${Domain}/wxa/ci/apkpluggeturl`,exports.GET_PLUG_PKG_CHECK_USERVERSION=`${Domain}/wxa/ci/apkplugcheckuserversion`,exports.GET_UPLOAD_INFO=`${Domain}/wxa/ci/getuploadinfo`,exports.GET_UPLOAD_SIGN=`${Domain}/wxa/ci/getuploadsign`,exports.UPLOAD_JS_SERVER=`${Domain}/wxa/ci/uploadjsserver`,exports.GET_LATEST_VERSION=`${Domain}/wxa/ci/getlatestversion`,exports.cloudAPIAgentURL=`${Domain}/wxa/ci/cloudapihttpagent`,exports.get3rdCloudCodeSecret=`${Domain}/wxa/ci/getcloudcodesecret`,exports.cloudCosUploadURL=`${Domain}/wxa/ci/cloudcosupload`,exports.scfTencentCloudUrl="https://scf.tencentcloudapi.com",exports.dbTencentCloudUrl="https://flexdb.tencentcloudapi.com",exports.tcbTencentCloudUrl="https://tcb.tencentcloudapi.com",exports.commitSourceNewFeatureURL=`${Domain}wxa-dev-new/commitsource`,exports.commitSourceURL=`${Domain}wxa-dev/commitsource`,exports.getUploadToken=`${Domain}wxa-dev/getuploadtoken`,exports.testSourceURL=`${Domain}wxa-dev/testsource`,exports.testSourceNewFeatureURL=`${Domain}wxa-dev-new/testsource`,exports.getAsyncResult=`${Domain}wxa-dev/getasyncresult`,exports.getSdkIntInfo=`${Domain}/wxa/ci/getsdkinitinfo`,exports.uploadCloudBuildResourcePack=`${Domain}/wxa/ci/uploadcloudbuildresourcepack`,exports.getCloudBuildTaskList=`${Domain}/wxa/ci/getcloudbuildtasklist`,exports.getCloudBuildPkgUrl=`${Domain}/wxa/ci/getcloudbuildpkgurl`,exports.miniappUpload=`${Domain}/wxa/ci/miniappupload`,exports.getPkgWxapkg=`${Domain}/wxa/ci/downloadpackage`,exports.downloadMiniAppPlugin=`${Domain}/wxa/ci/downloadcpfplugin`,exports.getUsedPluginVersionInfo=`${Domain}/wxa/ci/getcpfusedpluginversioninfo`;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getUsedPluginVersionInfo=exports.downloadMiniAppPlugin=exports.getPkgWxapkg=exports.miniappUpload=exports.getCloudBuildPkgUrl=exports.getCloudBuildTaskList=exports.uploadCloudBuildResourcePack=exports.getSdkIntInfo=exports.getAsyncResult=exports.testSourceNewFeatureURL=exports.testSourceURL=exports.getUploadToken=exports.commitSourceURL=exports.commitSourceNewFeatureURL=exports.tcbTencentCloudUrl=exports.dbTencentCloudUrl=exports.scfTencentCloudUrl=exports.cloudCosUploadURL=exports.get3rdCloudCodeSecret=exports.cloudAPIAgentURL=exports.GET_LATEST_VERSION=exports.UPLOAD_JS_SERVER=exports.GET_UPLOAD_SIGN=exports.GET_UPLOAD_INFO=exports.GET_PLUG_PKG_CHECK_USERVERSION=exports.GET_PLUG_PKG_GET_URL=exports.GET_PLUG_PKG_GET_LIST=exports.GET_MULTI_COS_UPLOAD_SIGN=exports.GET_MULTI_COS_UPLOAD_INFO=exports.GET_MULTI_COS_ASYNC_RESULT=exports.GET_GAME_PKG_UPLOAD_SIGN=exports.GET_GAME_PKG_UPLOAD_INFO=exports.GET_GAME_PKG_ASYNC_RESULT=exports.GAME_PKG_UPLOAD_URL=exports.GET_ASYNC_RESULT=exports.GET_UPLOAD_TOKEN=exports.GET_CLOUD_API_SIGNATURE=exports.TRANSLATE_FILENAME=exports.GET_DEV_SOURCE_MAP_INFO=exports.GET_DEV_SOURCE_MAP=exports.GET_RAND_STRING=exports.GET_ONLINE_SCHEMA=exports.GET_WHITE_EXT_LIST=exports.TEST_SOURCE_URL=exports.UPLOAD_URL=exports.GET_ATTR_URL=void 0;const Domain="https://servicewechat.com";exports.GET_ATTR_URL=`${Domain}/wxa/ci/getattr`,exports.UPLOAD_URL=`${Domain}/wxa/ci/upload`,exports.TEST_SOURCE_URL=`${Domain}/wxa/ci/testSourceURL`,exports.GET_WHITE_EXT_LIST=`${Domain}/wxa/ci/getwhiteextlist`,exports.GET_ONLINE_SCHEMA=`${Domain}/wxa/ci/getonlineschema`,exports.GET_RAND_STRING=`${Domain}/wxa/ci/getrandstr`,exports.GET_DEV_SOURCE_MAP=`${Domain}/wxa/ci/get_dev_sourcemap`,exports.GET_DEV_SOURCE_MAP_INFO=`${Domain}/wxa/ci/get_dev_sourcemap_info`,exports.TRANSLATE_FILENAME=`${Domain}/wxa/ci/translate_filename`,exports.GET_CLOUD_API_SIGNATURE=`${Domain}/wxa/ci/getqcloudapisignature`,exports.GET_UPLOAD_TOKEN=`${Domain}/wxa/ci/getuploadtoken`,exports.GET_ASYNC_RESULT=`${Domain}/wxa/ci/getasyncresult`,exports.GAME_PKG_UPLOAD_URL=`${Domain}/wxa/ci/gamepkgupload`,exports.GET_GAME_PKG_ASYNC_RESULT=`${Domain}/wxa/ci/getgamepkgasyncresult`,exports.GET_GAME_PKG_UPLOAD_INFO=`${Domain}/wxa/ci/getgamepkguploadinfo`,exports.GET_GAME_PKG_UPLOAD_SIGN=`${Domain}/wxa/ci/getgamepkguploadsign`,exports.GET_MULTI_COS_ASYNC_RESULT=`${Domain}/wxa/ci/getmulticosasyncresult`,exports.GET_MULTI_COS_UPLOAD_INFO=`${Domain}/wxa/ci/getmulticosuploadinfo`,exports.GET_MULTI_COS_UPLOAD_SIGN=`${Domain}/wxa/ci/getmulticosuploadsign`,exports.GET_PLUG_PKG_GET_LIST=`${Domain}/wxa/ci/apkpluggetlist`,exports.GET_PLUG_PKG_GET_URL=`${Domain}/wxa/ci/apkpluggeturl`,exports.GET_PLUG_PKG_CHECK_USERVERSION=`${Domain}/wxa/ci/apkplugcheckuserversion`,exports.GET_UPLOAD_INFO=`${Domain}/wxa/ci/getuploadinfo`,exports.GET_UPLOAD_SIGN=`${Domain}/wxa/ci/getuploadsign`,exports.UPLOAD_JS_SERVER=`${Domain}/wxa/ci/uploadjsserver`,exports.GET_LATEST_VERSION=`${Domain}/wxa/ci/getlatestversion`,exports.cloudAPIAgentURL=`${Domain}/wxa/ci/cloudapihttpagent`,exports.get3rdCloudCodeSecret=`${Domain}/wxa/ci/getcloudcodesecret`,exports.cloudCosUploadURL=`${Domain}/wxa/ci/cloudcosupload`,exports.scfTencentCloudUrl="https://scf.tencentcloudapi.com",exports.dbTencentCloudUrl="https://flexdb.tencentcloudapi.com",exports.tcbTencentCloudUrl="https://tcb.tencentcloudapi.com",exports.commitSourceNewFeatureURL=`${Domain}wxa-dev-new/commitsource`,exports.commitSourceURL=`${Domain}wxa-dev/commitsource`,exports.getUploadToken=`${Domain}wxa-dev/getuploadtoken`,exports.testSourceURL=`${Domain}wxa-dev/testsource`,exports.testSourceNewFeatureURL=`${Domain}wxa-dev-new/testsource`,exports.getAsyncResult=`${Domain}wxa-dev/getasyncresult`,exports.getSdkIntInfo=`${Domain}/wxa/ci/getsdkinitinfo`,exports.uploadCloudBuildResourcePack=`${Domain}/wxa/ci/uploadcloudbuildresourcepack`,exports.getCloudBuildTaskList=`${Domain}/wxa/ci/getcloudbuildtasklist`,exports.getCloudBuildPkgUrl=`${Domain}/wxa/ci/getcloudbuildpkgurl`,exports.miniappUpload=`${Domain}/wxa/ci/miniappupload`,exports.getPkgWxapkg=`${Domain}/wxa/ci/downloadpackage`,exports.downloadMiniAppPlugin=`${Domain}/wxa/ci/downloadcpfplugin`,exports.getUsedPluginVersionInfo=`${Domain}/wxa/ci/getcpfusedpluginversioninfo`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miniprogram-ci",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.37",
|
|
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",
|