@yongdall/web 0.5.4 → 0.5.6
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/index.d.mts +20 -1
- package/index.mjs +13 -13
- package/index.mjs.map +1 -1
- package/package.json +3 -1
- package/require.d.mts +7 -0
- package/require.mjs +2 -0
- package/require.mjs.map +1 -0
- package/yongdall.assets.json +44 -0
- package/assets.yongdall.mjs +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yongdall/web",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -16,12 +16,14 @@
|
|
|
16
16
|
"@yongdall/types": "^0.5.2",
|
|
17
17
|
"dompurify": "^3.3.3",
|
|
18
18
|
"dot-request": "^0.5.4",
|
|
19
|
+
"jszip": "^3.10.1",
|
|
19
20
|
"signal-polyfill": "^0.2.2"
|
|
20
21
|
},
|
|
21
22
|
"peerDependencies": {
|
|
22
23
|
"@neeloong/form": "^0.29.0",
|
|
23
24
|
"dompurify": "^3.3.3",
|
|
24
25
|
"dot-request": "^0.5.4",
|
|
26
|
+
"jszip": "^3.10.1",
|
|
25
27
|
"signal-polyfill": "^0.2.2"
|
|
26
28
|
}
|
|
27
29
|
}
|
package/require.d.mts
ADDED
package/require.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{importScript as e}from"@yongdall/web";const t=new URL(import.meta.url).searchParams,n=t.getAll(`path`).find(Boolean)||`/`,r=t.getAll(`name`).find(Boolean)||``,i=t.getAll(`type`).find(Boolean)||``;let a;switch(i.toLowerCase()){default:await e(n),a=globalThis;for(let e of r.split(`.`)){if(!a||typeof a!=`object`)break;a=a[e]}}var o=a;export{o as default,r as name,n as path,i as type};
|
|
2
|
+
//# sourceMappingURL=require.mjs.map
|
package/require.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require.mjs","names":[],"sources":["../../packages/web/require.mts"],"sourcesContent":["import { importScript } from '@yongdall/web';\nconst searchParams = new URL(import.meta.url).searchParams;\nexport const path = searchParams.getAll('path').find(Boolean) || '/';\nexport const name = searchParams.getAll('name').find(Boolean) || '';\nexport const type = searchParams.getAll('type').find(Boolean) || '';\n\nlet exports: any;\nswitch (type.toLowerCase()) {\n\tcase 'umd':\n\tcase 'iife':\n\tdefault: {\n\t\tawait importScript(path);\n\t\texports = globalThis;\n\t\tfor (const k of name.split('.')) {\n\t\t\tif (!exports || typeof exports !== 'object') { break; }\n\t\t\texports = exports[k];\n\t\t}\n\t}\n\n}\nexport default exports;\n"],"mappings":"6CACA,MAAM,EAAe,IAAI,IAAI,OAAO,KAAK,IAAI,CAAC,aACjC,EAAO,EAAa,OAAO,OAAO,CAAC,KAAK,QAAQ,EAAI,IACpD,EAAO,EAAa,OAAO,OAAO,CAAC,KAAK,QAAQ,EAAI,GACpD,EAAO,EAAa,OAAO,OAAO,CAAC,KAAK,QAAQ,EAAI,GAEjE,IAAI,EACJ,OAAQ,EAAK,aAAa,CAA1B,CAGC,QACC,MAAM,EAAa,EAAK,CACxB,EAAU,WACV,IAAK,IAAM,KAAK,EAAK,MAAM,IAAI,CAAE,CAChC,GAAI,CAAC,GAAW,OAAO,GAAY,SAAY,MAC/C,EAAU,EAAQ,IAKrB,IAAA,EAAe"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"alias": {
|
|
3
|
+
".": "index",
|
|
4
|
+
"require": "require",
|
|
5
|
+
"plugin": "plugin"
|
|
6
|
+
},
|
|
7
|
+
"esm": {
|
|
8
|
+
"boot": "boot.mjs",
|
|
9
|
+
"index": "index.mjs",
|
|
10
|
+
"plugin": "plugin.mjs",
|
|
11
|
+
"require": "require.mjs"
|
|
12
|
+
},
|
|
13
|
+
"importmap": {
|
|
14
|
+
"*": {
|
|
15
|
+
"{%origin%}/plugin": "{%root:origin%}/{%esm:plugin%}?plugin={%plugin%}"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"nodeModules": {
|
|
19
|
+
"dot-request": {
|
|
20
|
+
"esm": {
|
|
21
|
+
".": "index.min.mjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"@neeloong/form": {
|
|
25
|
+
"esm": {
|
|
26
|
+
".": "index.min.mjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"signal-polyfill": {
|
|
30
|
+
"esm": {
|
|
31
|
+
".": "dist/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"jszip": {
|
|
35
|
+
"script": {
|
|
36
|
+
".": {
|
|
37
|
+
"path": "dist/jszip.min.js",
|
|
38
|
+
"name": "JSZip"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"dompurify": true
|
|
43
|
+
}
|
|
44
|
+
}
|
package/assets.yongdall.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export const alias = {".":"index","plugin":"plugin"};
|
|
2
|
-
export const esm = {"boot":"boot.mjs","index":"index.mjs","plugin":"plugin.mjs"};
|
|
3
|
-
export const importmap = {"*":{"{%origin%}/plugin":"{%root:origin%}/{%esm:plugin%}?plugin={%plugin%}"}};
|
|
4
|
-
export const nodeModules = {"dot-request":{"esm":{".":"index.min.mjs"}},"@neeloong/form":{"esm":{".":"index.min.mjs"}},"signal-polyfill":{"esm":{".":"dist/index.js"}},"dompurify":true};
|