@yongdall/web 0.5.3 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yongdall/web",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
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
@@ -0,0 +1,7 @@
1
+ //#region packages/web/require.d.mts
2
+ declare const path: string;
3
+ declare const name: string;
4
+ declare const type: string;
5
+ declare let exports: any;
6
+ //#endregion
7
+ export { exports as default, name, path, type };
package/require.mjs ADDED
@@ -0,0 +1,2 @@
1
+ const e=new URL(import.meta.url).search.substring(1).split(`&`),t=decodeURIComponent(e.find(e=>e.startsWith(`path=`)&&e.length>5)?.substring(5)||``),n=decodeURIComponent(e.find(e=>e.startsWith(`name=`)&&e.length>5)?.substring(5)||``),r=decodeURIComponent(e.find(e=>e.startsWith(`type=`)&&e.length>5)?.substring(5)||``);let i;switch(r.toLowerCase()){default:await import(t),i=globalThis;for(let e of n.split(`.`)){if(!i||typeof i!=`object`)break;i=i[e]}}var a=i;export{a as default,n as name,t as path,r as type};
2
+ //# sourceMappingURL=require.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"require.mjs","names":[],"sources":["../../packages/web/require.mts"],"sourcesContent":["const url = new URL(import.meta.url);\nconst pathKey = `path=`;\nconst nameKey = `name=`;\nconst typeKey = `type=`;\n\nconst query = url.search.substring(1).split('&');\nexport const path = decodeURIComponent(query\n\t.find(v => v.startsWith(pathKey) && v.length > pathKey.length)\n\t?.substring(pathKey.length) || '');\nexport const name = decodeURIComponent(query\n\t.find(v => v.startsWith(nameKey) && v.length > nameKey.length)\n\t?.substring(nameKey.length) || '');\nexport const type = decodeURIComponent(query\n\t.find(v => v.startsWith(typeKey) && v.length > typeKey.length)\n\t?.substring(typeKey.length) || '');\n\nlet exports: any;\nswitch (type.toLowerCase()) {\n\tcase 'umd':\n\tcase 'iife':\n\tdefault: {\n\t\tawait import(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":"AAAA,MAKM,EALM,IAAI,IAAI,OAAO,KAAK,IAAI,CAKlB,OAAO,UAAU,EAAE,CAAC,MAAM,IAAI,CACnC,EAAO,mBAAmB,EACrC,KAAK,GAAK,EAAE,WAAW,QAAQ,EAAI,EAAE,OAAS,EAAe,EAC5D,UAAU,EAAe,EAAI,GAAG,CACtB,EAAO,mBAAmB,EACrC,KAAK,GAAK,EAAE,WAAW,QAAQ,EAAI,EAAE,OAAS,EAAe,EAC5D,UAAU,EAAe,EAAI,GAAG,CACtB,EAAO,mBAAmB,EACrC,KAAK,GAAK,EAAE,WAAW,QAAQ,EAAI,EAAE,OAAS,EAAe,EAC5D,UAAU,EAAe,EAAI,GAAG,CAEnC,IAAI,EACJ,OAAQ,EAAK,aAAa,CAA1B,CAGC,QACC,MAAM,OAAO,GACb,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
+ }
@@ -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};