@xylabs/url 2.10.0 → 2.10.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/index.d.mts CHANGED
@@ -1,2 +1,11 @@
1
- export { BrowserUrl } from './browser/Url.mjs';
2
1
  export { URL as NodeUrl, URL } from 'node:url';
2
+
3
+ declare const BrowserUrl: {
4
+ new (url: string | URL, base?: string | URL | undefined): URL;
5
+ prototype: URL;
6
+ canParse(url: string | URL, base?: string | undefined): boolean;
7
+ createObjectURL(obj: Blob | MediaSource): string;
8
+ revokeObjectURL(url: string): void;
9
+ };
10
+
11
+ export { BrowserUrl };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,11 @@
1
- export { BrowserUrl } from './browser/Url.js';
2
1
  export { URL as NodeUrl, URL } from 'node:url';
2
+
3
+ declare const BrowserUrl: {
4
+ new (url: string | URL, base?: string | URL | undefined): URL;
5
+ prototype: URL;
6
+ canParse(url: string | URL, base?: string | undefined): boolean;
7
+ createObjectURL(obj: Blob | MediaSource): string;
8
+ revokeObjectURL(url: string): void;
9
+ };
10
+
11
+ export { BrowserUrl };
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "package-recompile": "tsup && publint"
70
70
  },
71
71
  "sideEffects": false,
72
- "version": "2.10.0"
72
+ "version": "2.10.2"
73
73
  }
package/tsup.config.ts CHANGED
@@ -5,10 +5,12 @@ export default defineConfig({
5
5
  bundle: true,
6
6
  cjsInterop: true,
7
7
  clean: true,
8
- dts: true,
9
- entry: ['src'],
8
+ dts: {
9
+ entry: ['src/index.ts'],
10
+ },
11
+ entry: ['src/index.ts'],
10
12
  format: ['cjs', 'esm'],
11
13
  sourcemap: true,
12
14
  splitting: false,
13
- tsconfig: 'tsconfig.json',
15
+ tsconfig: 'tsconfig.build.json',
14
16
  })
@@ -1,11 +0,0 @@
1
- import 'node:url';
2
-
3
- declare const BrowserUrl: {
4
- new (url: string | URL, base?: string | URL | undefined): URL;
5
- prototype: URL;
6
- canParse(url: string | URL, base?: string | undefined): boolean;
7
- createObjectURL(obj: Blob | MediaSource): string;
8
- revokeObjectURL(url: string): void;
9
- };
10
-
11
- export { BrowserUrl };
@@ -1,11 +0,0 @@
1
- import 'node:url';
2
-
3
- declare const BrowserUrl: {
4
- new (url: string | URL, base?: string | URL | undefined): URL;
5
- prototype: URL;
6
- canParse(url: string | URL, base?: string | undefined): boolean;
7
- createObjectURL(obj: Blob | MediaSource): string;
8
- revokeObjectURL(url: string): void;
9
- };
10
-
11
- export { BrowserUrl };
@@ -1,31 +0,0 @@
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);
19
-
20
- // src/browser/Url.ts
21
- var Url_exports = {};
22
- __export(Url_exports, {
23
- BrowserUrl: () => BrowserUrl
24
- });
25
- module.exports = __toCommonJS(Url_exports);
26
- var BrowserUrl = URL;
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- BrowserUrl
30
- });
31
- //# sourceMappingURL=Url.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/browser/Url.ts"],"sourcesContent":["const BrowserUrl = URL\nexport { BrowserUrl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAM,aAAa;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/browser/Url.ts
2
- var BrowserUrl = URL;
3
- export {
4
- BrowserUrl
5
- };
6
- //# sourceMappingURL=Url.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/browser/Url.ts"],"sourcesContent":["const BrowserUrl = URL\nexport { BrowserUrl }\n"],"mappings":";AAAA,IAAM,aAAa;","names":[]}
@@ -1,2 +0,0 @@
1
- export { BrowserUrl } from './Url.mjs';
2
- import 'node:url';
@@ -1,2 +0,0 @@
1
- export { BrowserUrl } from './Url.js';
2
- import 'node:url';
@@ -1,33 +0,0 @@
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);
19
-
20
- // src/browser/index.ts
21
- var browser_exports = {};
22
- __export(browser_exports, {
23
- BrowserUrl: () => BrowserUrl
24
- });
25
- module.exports = __toCommonJS(browser_exports);
26
-
27
- // src/browser/Url.ts
28
- var BrowserUrl = URL;
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- BrowserUrl
32
- });
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/browser/index.ts","../../src/browser/Url.ts"],"sourcesContent":["export * from './Url'\n","const BrowserUrl = URL\nexport { BrowserUrl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAM,aAAa;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/browser/Url.ts
2
- var BrowserUrl = URL;
3
- export {
4
- BrowserUrl
5
- };
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/browser/Url.ts"],"sourcesContent":["const BrowserUrl = URL\nexport { BrowserUrl }\n"],"mappings":";AAAA,IAAM,aAAa;","names":[]}
@@ -1,9 +0,0 @@
1
- declare const URL: {
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 { URL };
@@ -1,9 +0,0 @@
1
- declare const URL: {
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 { URL };
@@ -1,36 +0,0 @@
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);
19
-
20
- // src/browserIndex.ts
21
- var browserIndex_exports = {};
22
- __export(browserIndex_exports, {
23
- URL: () => URL2
24
- });
25
- module.exports = __toCommonJS(browserIndex_exports);
26
-
27
- // src/browser/Url.ts
28
- var BrowserUrl = URL;
29
-
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 +0,0 @@
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,9 +0,0 @@
1
- // src/browser/Url.ts
2
- var BrowserUrl = URL;
3
-
4
- // src/browserIndex.ts
5
- var URL2 = BrowserUrl;
6
- export {
7
- URL2 as URL
8
- };
9
- //# sourceMappingURL=browserIndex.mjs.map
@@ -1 +0,0 @@
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"]}
@@ -1 +0,0 @@
1
- export { URL as NodeUrl } from 'node:url';
@@ -1 +0,0 @@
1
- export { URL as NodeUrl } from 'node:url';
package/dist/node/Url.js DELETED
@@ -1,31 +0,0 @@
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);
19
-
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
30
- });
31
- //# sourceMappingURL=Url.js.map
@@ -1 +0,0 @@
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/node/Url.mjs DELETED
@@ -1,6 +0,0 @@
1
- // src/node/Url.ts
2
- import { URL } from "node:url";
3
- export {
4
- URL as NodeUrl
5
- };
6
- //# sourceMappingURL=Url.mjs.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- export { URL as NodeUrl } from 'node:url';
@@ -1 +0,0 @@
1
- export { URL as NodeUrl } from 'node:url';
@@ -1,33 +0,0 @@
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);
19
-
20
- // src/node/index.ts
21
- var node_exports = {};
22
- __export(node_exports, {
23
- NodeUrl: () => import_node_url.URL
24
- });
25
- module.exports = __toCommonJS(node_exports);
26
-
27
- // src/node/Url.ts
28
- var import_node_url = require("url");
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- NodeUrl
32
- });
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/node/index.ts","../../src/node/Url.ts"],"sourcesContent":["export * from './Url'\n","import { URL } from 'node:url'\nexport { URL as NodeUrl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAoB;","names":[]}
@@ -1,6 +0,0 @@
1
- // src/node/Url.ts
2
- import { URL } from "node:url";
3
- export {
4
- URL as NodeUrl
5
- };
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
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,5 +0,0 @@
1
- import { URL as URL$1 } from 'node:url';
2
-
3
- declare const URL: typeof URL$1;
4
-
5
- export { URL };
@@ -1,5 +0,0 @@
1
- import { URL as URL$1 } from 'node:url';
2
-
3
- declare const URL: typeof URL$1;
4
-
5
- export { URL };
package/dist/nodeIndex.js DELETED
@@ -1,36 +0,0 @@
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);
19
-
20
- // src/nodeIndex.ts
21
- var nodeIndex_exports = {};
22
- __export(nodeIndex_exports, {
23
- URL: () => URL2
24
- });
25
- module.exports = __toCommonJS(nodeIndex_exports);
26
-
27
- // src/node/Url.ts
28
- var import_node_url = require("url");
29
-
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 +0,0 @@
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,9 +0,0 @@
1
- // src/node/Url.ts
2
- import { URL } from "node:url";
3
-
4
- // src/nodeIndex.ts
5
- var URL2 = URL;
6
- export {
7
- URL2 as URL
8
- };
9
- //# sourceMappingURL=nodeIndex.mjs.map
@@ -1 +0,0 @@
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"]}