@xylabs/url 2.11.2 → 2.11.4

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/Url.d.mts ADDED
@@ -0,0 +1,9 @@
1
+ declare const BrowserUrl: {
2
+ new (url: string | URL, base?: string | URL | undefined): URL;
3
+ prototype: URL;
4
+ canParse(url: string | URL, base?: string | undefined): boolean;
5
+ createObjectURL(obj: Blob | MediaSource): string;
6
+ revokeObjectURL(url: string): void;
7
+ };
8
+
9
+ export { BrowserUrl };
package/dist/Url.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ declare const BrowserUrl: {
2
+ new (url: string | URL, base?: string | URL | undefined): URL;
3
+ prototype: URL;
4
+ canParse(url: string | URL, base?: string | undefined): boolean;
5
+ createObjectURL(obj: Blob | MediaSource): string;
6
+ revokeObjectURL(url: string): void;
7
+ };
8
+
9
+ export { BrowserUrl };
package/dist/Url.js CHANGED
@@ -1,11 +1,31 @@
1
- 'use strict';
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
19
 
3
- var node_url = require('node:url');
4
-
5
-
6
-
7
- Object.defineProperty(exports, 'NodeUrl', {
8
- enumerable: true,
9
- get: function () { return node_url.URL; }
20
+ // src/node/Url.ts
21
+ var Url_exports = {};
22
+ __export(Url_exports, {
23
+ NodeUrl: () => import_node_url.URL
24
+ });
25
+ module.exports = __toCommonJS(Url_exports);
26
+ var import_node_url = require("url");
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ NodeUrl
10
30
  });
11
- //# sourceMappingURL=Url.js.map
31
+ //# sourceMappingURL=Url.js.map
package/dist/Url.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Url.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"sources":["../src/node/Url.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL as NodeUrl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAoB;","names":[]}
package/dist/Url.mjs CHANGED
@@ -1,2 +1,6 @@
1
- export { URL as NodeUrl } from 'node:url';
2
- //# sourceMappingURL=Url.mjs.map
1
+ // src/node/Url.ts
2
+ import { URL } from "node:url";
3
+ export {
4
+ URL as NodeUrl
5
+ };
6
+ //# sourceMappingURL=Url.mjs.map
package/dist/Url.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Url.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"sources":["../src/node/Url.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL as NodeUrl }\n"],"mappings":";AAAA,SAAS,WAAW;","names":[]}
@@ -1,7 +1,7 @@
1
1
  declare const BrowserUrl: {
2
- new (url: string | URL, base?: string | URL | undefined): URL;
2
+ new (url: string | URL, base?: string | URL): URL;
3
3
  prototype: URL;
4
- canParse(url: string | URL, base?: string | undefined): boolean;
4
+ canParse(url: string | URL, base?: string): boolean;
5
5
  createObjectURL(obj: Blob | MediaSource): string;
6
6
  revokeObjectURL(url: string): void;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  declare const BrowserUrl: {
2
- new (url: string | URL, base?: string | URL | undefined): URL;
2
+ new (url: string | URL, base?: string | URL): URL;
3
3
  prototype: URL;
4
- canParse(url: string | URL, base?: string | undefined): boolean;
4
+ canParse(url: string | URL, base?: string): boolean;
5
5
  createObjectURL(obj: Blob | MediaSource): string;
6
6
  revokeObjectURL(url: string): void;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export declare const URL: {
2
- new (url: string | URL, base?: string | URL | undefined): URL;
2
+ new (url: string | URL, base?: string | URL): URL;
3
3
  prototype: URL;
4
- canParse(url: string | URL, base?: string | undefined): boolean;
4
+ canParse(url: string | URL, base?: string): boolean;
5
5
  createObjectURL(obj: Blob | MediaSource): string;
6
6
  revokeObjectURL(url: string): void;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export declare const URL: {
2
- new (url: string | URL, base?: string | URL | undefined): URL;
2
+ new (url: string | URL, base?: string | URL): URL;
3
3
  prototype: URL;
4
- canParse(url: string | URL, base?: string | undefined): boolean;
4
+ canParse(url: string | URL, base?: string): boolean;
5
5
  createObjectURL(obj: Blob | MediaSource): string;
6
6
  revokeObjectURL(url: string): void;
7
7
  };
@@ -1,9 +1,36 @@
1
- 'use strict';
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
19
 
3
- var Url = require('./Url2.js');
4
- require('node:url');
20
+ // src/browserIndex.ts
21
+ var browserIndex_exports = {};
22
+ __export(browserIndex_exports, {
23
+ URL: () => URL2
24
+ });
25
+ module.exports = __toCommonJS(browserIndex_exports);
5
26
 
6
- const URL = Url.BrowserUrl;
27
+ // src/browser/Url.ts
28
+ var BrowserUrl = URL;
7
29
 
8
- exports.URL = URL;
9
- //# sourceMappingURL=browserIndex.js.map
30
+ // src/browserIndex.ts
31
+ var URL2 = BrowserUrl;
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ URL
35
+ });
36
+ //# sourceMappingURL=browserIndex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browserIndex.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"sources":["../src/browserIndex.ts","../src/browser/Url.ts"],"sourcesContent":["import { BrowserUrl } from './browser'\nexport const URL = BrowserUrl\n","const BrowserUrl = URL\nexport { BrowserUrl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,aAAAA;AAAA;AAAA;;;ACAA,IAAM,aAAa;;;ADCZ,IAAMC,OAAM;","names":["URL","URL"]}
@@ -1,7 +1,9 @@
1
- import { BrowserUrl } from './Url2.mjs';
2
- import 'node:url';
1
+ // src/browser/Url.ts
2
+ var BrowserUrl = URL;
3
3
 
4
- const URL = BrowserUrl;
5
-
6
- export { URL };
7
- //# sourceMappingURL=browserIndex.mjs.map
4
+ // src/browserIndex.ts
5
+ var URL2 = BrowserUrl;
6
+ export {
7
+ URL2 as URL
8
+ };
9
+ //# sourceMappingURL=browserIndex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"browserIndex.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"sources":["../src/browser/Url.ts","../src/browserIndex.ts"],"sourcesContent":["const BrowserUrl = URL\nexport { BrowserUrl }\n","import { BrowserUrl } from './browser'\nexport const URL = BrowserUrl\n"],"mappings":";AAAA,IAAM,aAAa;;;ACCZ,IAAMA,OAAM;","names":["URL"]}
package/dist/index.js CHANGED
@@ -1,11 +1,40 @@
1
- 'use strict';
2
-
3
- var node_url = require('node:url');
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
4
19
 
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ BrowserUrl: () => BrowserUrl,
24
+ NodeUrl: () => import_node_url.URL,
25
+ URL: () => import_node_url.URL
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
5
28
 
29
+ // src/browser/Url.ts
30
+ var BrowserUrl = URL;
6
31
 
7
- Object.defineProperty(exports, 'NodeUrl', {
8
- enumerable: true,
9
- get: function () { return node_url.URL; }
32
+ // src/node/Url.ts
33
+ var import_node_url = require("url");
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ BrowserUrl,
37
+ NodeUrl,
38
+ URL
10
39
  });
11
- //# sourceMappingURL=index.js.map
40
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"sources":["../src/index.ts","../src/browser/Url.ts","../src/node/Url.ts"],"sourcesContent":["export * from './browser'\nexport { NodeUrl as URL } from './node'\nexport * from './node'\n","const BrowserUrl = URL\nexport { BrowserUrl }\n","import { URL } from 'node:url'\nexport { URL as NodeUrl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAM,aAAa;;;ACAnB,sBAAoB;","names":[]}
package/dist/index.mjs CHANGED
@@ -1,2 +1,11 @@
1
- export { URL as NodeUrl } from 'node:url';
2
- //# sourceMappingURL=index.mjs.map
1
+ // src/browser/Url.ts
2
+ var BrowserUrl = URL;
3
+
4
+ // src/node/Url.ts
5
+ import { URL as URL2 } from "node:url";
6
+ export {
7
+ BrowserUrl,
8
+ URL2 as NodeUrl,
9
+ URL2 as URL
10
+ };
11
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"sources":["../src/browser/Url.ts","../src/node/Url.ts"],"sourcesContent":["const BrowserUrl = URL\nexport { BrowserUrl }\n","import { URL } from 'node:url'\nexport { URL as NodeUrl }\n"],"mappings":";AAAA,IAAM,aAAa;;;ACAnB,SAAS,OAAAA,YAAW;","names":["URL"]}
package/dist/nodeIndex.js CHANGED
@@ -1,8 +1,36 @@
1
- 'use strict';
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
19
 
3
- var node_url = require('node:url');
20
+ // src/nodeIndex.ts
21
+ var nodeIndex_exports = {};
22
+ __export(nodeIndex_exports, {
23
+ URL: () => URL2
24
+ });
25
+ module.exports = __toCommonJS(nodeIndex_exports);
4
26
 
5
- const URL = node_url.URL;
27
+ // src/node/Url.ts
28
+ var import_node_url = require("url");
6
29
 
7
- exports.URL = URL;
8
- //# sourceMappingURL=nodeIndex.js.map
30
+ // src/nodeIndex.ts
31
+ var URL2 = import_node_url.URL;
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ URL
35
+ });
36
+ //# sourceMappingURL=nodeIndex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodeIndex.js","sources":["../src/nodeIndex.ts"],"sourcesContent":[null],"names":["NodeUrl"],"mappings":";;;;AAAS,MAAA,GAAO,GAAEA;;;;"}
1
+ {"version":3,"sources":["../src/nodeIndex.ts","../src/node/Url.ts"],"sourcesContent":["import { NodeUrl } from './node'\nexport const URL = NodeUrl\n","import { URL } from 'node:url'\nexport { URL as NodeUrl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,aAAAA;AAAA;AAAA;;;ACAA,sBAAoB;;;ADCb,IAAMC,OAAM;","names":["URL","URL"]}
@@ -1,6 +1,9 @@
1
- import { URL as URL$1 } from 'node:url';
1
+ // src/node/Url.ts
2
+ import { URL } from "node:url";
2
3
 
3
- const URL = URL$1;
4
-
5
- export { URL };
6
- //# sourceMappingURL=nodeIndex.mjs.map
4
+ // src/nodeIndex.ts
5
+ var URL2 = URL;
6
+ export {
7
+ URL2 as URL
8
+ };
9
+ //# sourceMappingURL=nodeIndex.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodeIndex.mjs","sources":["../src/nodeIndex.ts"],"sourcesContent":[null],"names":["NodeUrl"],"mappings":";;AAAS,MAAA,GAAO,GAAEA;;;;"}
1
+ {"version":3,"sources":["../src/node/Url.ts","../src/nodeIndex.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL as NodeUrl }\n","import { NodeUrl } from './node'\nexport const URL = NodeUrl\n"],"mappings":";AAAA,SAAS,WAAW;;;ACCb,IAAMA,OAAM;","names":["URL"]}
package/package.json CHANGED
@@ -61,9 +61,9 @@
61
61
  "buffer": "^6.0.3"
62
62
  },
63
63
  "devDependencies": {
64
- "@xylabs/ts-scripts-yarn3": "^3.0.0-rc.27",
65
- "@xylabs/tsconfig": "^3.0.0-rc.27",
66
- "@xylabs/tsconfig-dom": "^3.0.0-rc.27",
64
+ "@xylabs/ts-scripts-yarn3": "^3.0.20",
65
+ "@xylabs/tsconfig": "^3.0.20",
66
+ "@xylabs/tsconfig-dom": "^3.0.20",
67
67
  "typescript": "^5.2.2"
68
68
  },
69
69
  "publishConfig": {
@@ -74,5 +74,10 @@
74
74
  "url": "https://github.com/xylabs/sdk-js.git"
75
75
  },
76
76
  "sideEffects": false,
77
- "version": "2.11.2"
77
+ "version": "2.11.4",
78
+ "xy": {
79
+ "compile": {
80
+ "depth": 1
81
+ }
82
+ }
78
83
  }
package/dist/Url2.js DELETED
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- require('node:url');
4
-
5
- const BrowserUrl = URL;
6
-
7
- exports.BrowserUrl = BrowserUrl;
8
- //# sourceMappingURL=Url2.js.map
package/dist/Url2.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Url2.js","sources":["../src/browser/Url.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA,MAAA,UAAgB,GAAA;;;;"}
package/dist/Url2.mjs DELETED
@@ -1,6 +0,0 @@
1
- import 'node:url';
2
-
3
- const BrowserUrl = URL;
4
-
5
- export { BrowserUrl };
6
- //# sourceMappingURL=Url2.mjs.map
package/dist/Url2.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Url2.mjs","sources":["../src/browser/Url.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA,MAAA,UAAgB,GAAA;;;;"}
package/dist/index2.js DELETED
@@ -1,9 +0,0 @@
1
- 'use strict';
2
-
3
- var Url = require('./Url2.js');
4
- require('node:url');
5
-
6
-
7
-
8
- exports.BrowserUrl = Url.BrowserUrl;
9
- //# sourceMappingURL=index2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
package/dist/index2.mjs DELETED
@@ -1,3 +0,0 @@
1
- export { BrowserUrl } from './Url2.mjs';
2
- import 'node:url';
3
- //# sourceMappingURL=index2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index3.js DELETED
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var Url = require('./Url2.js');
4
- var node_url = require('node:url');
5
-
6
-
7
-
8
- exports.BrowserUrl = Url.BrowserUrl;
9
- Object.defineProperty(exports, 'NodeUrl', {
10
- enumerable: true,
11
- get: function () { return node_url.URL; }
12
- });
13
- Object.defineProperty(exports, 'URL', {
14
- enumerable: true,
15
- get: function () { return node_url.URL; }
16
- });
17
- //# sourceMappingURL=index3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
package/dist/index3.mjs DELETED
@@ -1,3 +0,0 @@
1
- export { BrowserUrl } from './Url2.mjs';
2
- export { URL as NodeUrl, URL } from 'node:url';
3
- //# sourceMappingURL=index3.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index3.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}