delta-comic-core 0.1.1 → 0.1.2
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/dist/bundle.cjs +2 -2
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +75 -71
- package/dist/bundle.js.map +1 -1
- package/dist/bundle2.cjs +1 -1
- package/dist/bundle2.cjs.map +1 -1
- package/dist/bundle2.js +2 -2
- package/dist/bundle2.js.map +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +1 -1
package/dist/bundle2.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=(e,t)=>({entry:e.entry??`src/main.ts`,userscript:{name:{ds:e.displayName,default:e.name},version:e.version,author:e.author,description:e.description,require:[`core`,...e.require??[]]},build:{externalGlobals:t==`serve`?
|
|
1
|
+
const e=(e,t)=>({entry:e.entry??`src/main.ts`,userscript:{name:{ds:e.displayName,default:e.name},version:e.version,author:e.author,description:e.description,require:[`core`,...e.require??[]]},build:{externalGlobals:t==`serve`?{}:{vue:`window.$$lib$$.Vue`,vant:`window.$$lib$$.Vant`,"naive-ui":`window.$$lib$$.Naive`,axios:`window.$$lib$$.Axios`,"es-toolkit":`window.$$lib$$.EsKits`,"delta-comic-core":`window.$$lib$$.Dcc`,"vue-router":`window.$$lib$$.VR`,"crypto-js":`window.$$lib$$.Crypto`}},server:{mountGmApi:!1,open:!1,prefix:!1}}),t=e=>e==`build`?{}:{externals:{vue:`window.$$lib$$.Vue`,vant:`window.$$lib$$.Vant`,"naive-ui":`window.$$lib$$.Naive`,axios:`window.$$lib$$.Axios`,"es-toolkit":`window.$$lib$$.EsKits`,"delta-comic-core":`window.$$lib$$.Dcc`,"vue-router":`window.$$lib$$.VR`,"crypto-js":`window.$$lib$$.Crypto`}};exports.createExternalConfig=t,exports.createMonkeyConfig=e;
|
|
2
2
|
//# sourceMappingURL=bundle2.cjs.map
|
package/dist/bundle2.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** @default ['core'] */ require?: string[]\r\n /** @default 'src/main.ts' */ entry?: string\r\n}, command: \"build\" | \"serve\") => ({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n ds: config.displayName,\r\n default: config.name\r\n },\r\n version: config.version,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])],\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ?
|
|
1
|
+
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** @default ['core'] */ require?: string[]\r\n /** @default 'src/main.ts' */ entry?: string\r\n}, command: \"build\" | \"serve\") => ({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n ds: config.displayName,\r\n default: config.name\r\n },\r\n version: config.version,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])],\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ? {} : {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n },\r\n },\r\n server: {\r\n mountGmApi: false,\r\n open: false,\r\n prefix: false\r\n }\r\n} as any)\r\n\r\nexport const createExternalConfig = (command: \"build\" | \"serve\") => command == 'build' ? {} : {\r\n externals: {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n }\r\n} as any\r\n"],"mappings":"AAAA,MAAa,GAAsB,EAQhC,KAAgC,CACjC,MAAO,EAAO,OAAS,cACvB,WAAY,CACV,KAAM,CACJ,GAAI,EAAO,YACX,QAAS,EAAO,KACjB,CACD,QAAS,EAAO,QAChB,OAAQ,EAAO,OACf,YAAa,EAAO,YACpB,QAAS,CAAC,OAAQ,GAAI,EAAO,SAAW,EAAE,CAAE,CAC7C,CACD,MAAO,CACL,gBAAiB,GAAW,QAAU,EAAE,CAAG,CACzC,IAAK,qBACL,KAAM,sBACN,WAAY,uBACZ,MAAO,uBACP,aAAc,wBACd,mBAAoB,qBACpB,aAAc,oBACd,YAAa,wBACd,CACF,CACD,OAAQ,CACN,WAAY,GACZ,KAAM,GACN,OAAQ,GACT,CACF,EAEY,EAAwB,GAA+B,GAAW,QAAU,EAAE,CAAG,CAC5F,UAAW,CACT,IAAK,qBACL,KAAM,sBACN,WAAY,uBACZ,MAAO,uBACP,aAAc,wBACd,mBAAoB,qBACpB,aAAc,oBACd,YAAa,wBACd,CACF"}
|
package/dist/bundle2.js
CHANGED
|
@@ -10,7 +10,7 @@ const createMonkeyConfig = (e, t) => ({
|
|
|
10
10
|
description: e.description,
|
|
11
11
|
require: ["core", ...e.require ?? []]
|
|
12
12
|
},
|
|
13
|
-
build: { externalGlobals: t == "serve" ?
|
|
13
|
+
build: { externalGlobals: t == "serve" ? {} : {
|
|
14
14
|
vue: "window.$$lib$$.Vue",
|
|
15
15
|
vant: "window.$$lib$$.Vant",
|
|
16
16
|
"naive-ui": "window.$$lib$$.Naive",
|
|
@@ -25,7 +25,7 @@ const createMonkeyConfig = (e, t) => ({
|
|
|
25
25
|
open: !1,
|
|
26
26
|
prefix: !1
|
|
27
27
|
}
|
|
28
|
-
}), createExternalConfig = (e) => e == "build" ?
|
|
28
|
+
}), createExternalConfig = (e) => e == "build" ? {} : { externals: {
|
|
29
29
|
vue: "window.$$lib$$.Vue",
|
|
30
30
|
vant: "window.$$lib$$.Vant",
|
|
31
31
|
"naive-ui": "window.$$lib$$.Naive",
|
package/dist/bundle2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** @default ['core'] */ require?: string[]\r\n /** @default 'src/main.ts' */ entry?: string\r\n}, command: \"build\" | \"serve\") => ({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n ds: config.displayName,\r\n default: config.name\r\n },\r\n version: config.version,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])],\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ?
|
|
1
|
+
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** @default ['core'] */ require?: string[]\r\n /** @default 'src/main.ts' */ entry?: string\r\n}, command: \"build\" | \"serve\") => ({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n ds: config.displayName,\r\n default: config.name\r\n },\r\n version: config.version,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])],\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ? {} : {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n },\r\n },\r\n server: {\r\n mountGmApi: false,\r\n open: false,\r\n prefix: false\r\n }\r\n} as any)\r\n\r\nexport const createExternalConfig = (command: \"build\" | \"serve\") => command == 'build' ? {} : {\r\n externals: {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n }\r\n} as any\r\n"],"mappings":"AAAA,MAAa,sBAAsB,GAQhC,OAAgC;CACjC,OAAO,EAAO,SAAS;CACvB,YAAY;EACV,MAAM;GACJ,IAAI,EAAO;GACX,SAAS,EAAO;GACjB;EACD,SAAS,EAAO;EAChB,QAAQ,EAAO;EACf,aAAa,EAAO;EACpB,SAAS,CAAC,QAAQ,GAAI,EAAO,WAAW,EAAE,CAAE;EAC7C;CACD,OAAO,EACL,iBAAiB,KAAW,UAAU,EAAE,GAAG;EACzC,KAAK;EACL,MAAM;EACN,YAAY;EACZ,OAAO;EACP,cAAc;EACd,oBAAoB;EACpB,cAAc;EACd,aAAa;EACd,EACF;CACD,QAAQ;EACN,YAAY;EACZ,MAAM;EACN,QAAQ;EACT;CACF,GAEY,wBAAwB,MAA+B,KAAW,UAAU,EAAE,GAAG,EAC5F,WAAW;CACT,KAAK;CACL,MAAM;CACN,YAAY;CACZ,OAAO;CACP,cAAc;CACd,oBAAoB;CACpB,cAAc;CACd,aAAa;CACd,EACF"}
|
package/dist/pack.tgz
CHANGED
|
Binary file
|