@xylabs/url 2.10.18 → 2.11.1

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.
@@ -1,9 +1,9 @@
1
- declare const URL: {
1
+ declare const BrowserUrl: {
2
2
  new (url: string | URL, base?: string | URL | undefined): URL;
3
3
  prototype: URL;
4
4
  canParse(url: string | URL, base?: string | undefined): boolean;
5
5
  createObjectURL(obj: Blob | MediaSource): string;
6
6
  revokeObjectURL(url: string): void;
7
7
  };
8
-
9
- export { URL };
8
+ export { BrowserUrl };
9
+ //# sourceMappingURL=Url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Url.d.ts","sourceRoot":"","sources":["../../src/browser/Url.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU;;;;;;CAAM,CAAA;AACtB,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './Url';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
@@ -1,9 +1,8 @@
1
- declare const URL: {
1
+ export declare const URL: {
2
2
  new (url: string | URL, base?: string | URL | undefined): URL;
3
3
  prototype: URL;
4
4
  canParse(url: string | URL, base?: string | undefined): boolean;
5
5
  createObjectURL(obj: Blob | MediaSource): string;
6
6
  revokeObjectURL(url: string): void;
7
7
  };
8
-
9
- export { URL };
8
+ //# sourceMappingURL=browserIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserIndex.d.ts","sourceRoot":"","sources":["../src/browserIndex.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,GAAG;;;;;;CAAa,CAAA"}
@@ -1,36 +1,9 @@
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);
1
+ 'use strict';
19
2
 
20
- // src/browserIndex.ts
21
- var browserIndex_exports = {};
22
- __export(browserIndex_exports, {
23
- URL: () => URL2
24
- });
25
- module.exports = __toCommonJS(browserIndex_exports);
3
+ var index = require('./index.js');
4
+ require('node:url');
26
5
 
27
- // src/browser/Url.ts
28
- var BrowserUrl = URL;
6
+ const URL = index.BrowserUrl;
29
7
 
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
8
+ exports.URL = URL;
9
+ //# sourceMappingURL=browserIndex.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"browserIndex.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,9 +1,7 @@
1
- // src/browser/Url.ts
2
- var BrowserUrl = URL;
1
+ import { BrowserUrl } from './index.mjs';
2
+ import 'node:url';
3
3
 
4
- // src/browserIndex.ts
5
- var URL2 = BrowserUrl;
6
- export {
7
- URL2 as URL
8
- };
9
- //# sourceMappingURL=browserIndex.mjs.map
4
+ const URL = BrowserUrl;
5
+
6
+ export { URL };
7
+ //# sourceMappingURL=browserIndex.mjs.map
@@ -1 +1 @@
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
+ {"version":3,"file":"browserIndex.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
package/dist/index.d.mts CHANGED
@@ -1,11 +1,4 @@
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 };
1
+ export * from './browser';
2
+ export { NodeUrl as URL } from './node';
3
+ export * from './node';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAA;AACvC,cAAc,QAAQ,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,4 @@
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 };
1
+ export * from './browser';
2
+ export { NodeUrl as URL } from './node';
3
+ export * from './node';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAA;AACvC,cAAc,QAAQ,CAAA"}
package/dist/index.js CHANGED
@@ -1,40 +1,16 @@
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);
1
+ 'use strict';
19
2
 
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);
3
+ var node_url = require('node:url');
28
4
 
29
- // src/browser/Url.ts
30
- var BrowserUrl = URL;
5
+ const BrowserUrl = URL;
31
6
 
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
7
+ Object.defineProperty(exports, 'NodeUrl', {
8
+ enumerable: true,
9
+ get: function () { return node_url.URL; }
10
+ });
11
+ Object.defineProperty(exports, 'URL', {
12
+ enumerable: true,
13
+ get: function () { return node_url.URL; }
39
14
  });
40
- //# sourceMappingURL=index.js.map
15
+ exports.BrowserUrl = BrowserUrl;
16
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
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":[]}
1
+ {"version":3,"file":"index.js","sources":["../src/browser/Url.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA,MAAA,UAAgB,GAAA;;;;;;;;;;;;"}
package/dist/index.mjs CHANGED
@@ -1,11 +1,6 @@
1
- // src/browser/Url.ts
2
- var BrowserUrl = URL;
1
+ export { URL as NodeUrl, URL } from 'node:url';
3
2
 
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
3
+ const BrowserUrl = URL;
4
+
5
+ export { BrowserUrl };
6
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
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"]}
1
+ {"version":3,"file":"index.mjs","sources":["../src/browser/Url.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA,MAAA,UAAgB,GAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ import { URL } from 'node:url';
2
+ export { URL as NodeUrl };
3
+ //# sourceMappingURL=Url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Url.d.ts","sourceRoot":"","sources":["../../src/node/Url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './Url';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
@@ -1,5 +1,4 @@
1
- import { URL as URL$1 } from 'node:url';
2
-
3
- declare const URL: typeof URL$1;
4
-
5
- export { URL };
1
+ /// <reference types="node" />
2
+ import { NodeUrl } from './node';
3
+ export declare const URL: typeof NodeUrl;
4
+ //# sourceMappingURL=nodeIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeIndex.d.ts","sourceRoot":"","sources":["../src/nodeIndex.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,eAAO,MAAM,GAAG,gBAAU,CAAA"}
package/dist/nodeIndex.js CHANGED
@@ -1,36 +1,8 @@
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);
1
+ 'use strict';
19
2
 
20
- // src/nodeIndex.ts
21
- var nodeIndex_exports = {};
22
- __export(nodeIndex_exports, {
23
- URL: () => URL2
24
- });
25
- module.exports = __toCommonJS(nodeIndex_exports);
3
+ var node_url = require('node:url');
26
4
 
27
- // src/node/Url.ts
28
- var import_node_url = require("url");
5
+ const URL = node_url.URL;
29
6
 
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
7
+ exports.URL = URL;
8
+ //# sourceMappingURL=nodeIndex.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"nodeIndex.js","sources":["../src/nodeIndex.ts"],"sourcesContent":[null],"names":["NodeUrl"],"mappings":";;;;AAAS,MAAA,GAAO,GAAEA;;;;"}
@@ -1,9 +1,6 @@
1
- // src/node/Url.ts
2
- import { URL } from "node:url";
1
+ import { URL as URL$1 } from 'node:url';
3
2
 
4
- // src/nodeIndex.ts
5
- var URL2 = URL;
6
- export {
7
- URL2 as URL
8
- };
9
- //# sourceMappingURL=nodeIndex.mjs.map
3
+ const URL = URL$1;
4
+
5
+ export { URL };
6
+ //# sourceMappingURL=nodeIndex.mjs.map
@@ -1 +1 @@
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"]}
1
+ {"version":3,"file":"nodeIndex.mjs","sources":["../src/nodeIndex.ts"],"sourcesContent":[null],"names":["NodeUrl"],"mappings":";;AAAS,MAAA,GAAO,GAAEA;;;;"}
package/package.json CHANGED
@@ -61,11 +61,9 @@
61
61
  "buffer": "^6.0.3"
62
62
  },
63
63
  "devDependencies": {
64
- "@xylabs/ts-scripts-yarn3": "^2.19.12",
65
- "@xylabs/tsconfig": "^2.19.12",
66
- "@xylabs/tsconfig-dom": "^2.19.12",
67
- "publint": "^0.2.2",
68
- "tsup": "^7.2.0"
64
+ "@xylabs/ts-scripts-yarn3": "^3.0.0-rc.16",
65
+ "@xylabs/tsconfig": "^3.0.0-rc.16",
66
+ "@xylabs/tsconfig-dom": "^2.19.12"
69
67
  },
70
68
  "publishConfig": {
71
69
  "access": "public"
@@ -74,10 +72,6 @@
74
72
  "type": "git",
75
73
  "url": "https://github.com/xylabs/sdk-js.git"
76
74
  },
77
- "scripts": {
78
- "package-compile": "tsup && publint",
79
- "package-recompile": "tsup && publint"
80
- },
81
75
  "sideEffects": false,
82
- "version": "2.10.18"
76
+ "version": "2.11.1"
83
77
  }
@@ -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/tsup.config.ts DELETED
@@ -1,16 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- // eslint-disable-next-line import/no-default-export
4
- export default defineConfig({
5
- bundle: true,
6
- cjsInterop: true,
7
- clean: false,
8
- dts: {
9
- entry: ['src/index.ts', 'src/browserIndex.ts', 'src/nodeIndex.ts'],
10
- },
11
- entry: ['src/index.ts', 'src/browserIndex.ts', 'src/nodeIndex.ts'],
12
- format: ['cjs', 'esm'],
13
- sourcemap: true,
14
- splitting: false,
15
- tsconfig: 'tsconfig.build.json',
16
- })