@xylabs/url 2.11.24 → 2.12.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.
@@ -0,0 +1,31 @@
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
+ URL: () => 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
+ URL
30
+ });
31
+ //# sourceMappingURL=Url.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/Url.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL }\n"],"mappings":";AAAA,SAAS,WAAW;","names":[]}
1
+ {"version":3,"sources":["../../src/node/Url.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAoB;","names":[]}
package/dist/node/Url.js CHANGED
@@ -1,31 +1,6 @@
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
1
  // src/node/Url.ts
21
- var Url_exports = {};
22
- __export(Url_exports, {
23
- URL: () => 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 = {
2
+ import { URL } from "node:url";
3
+ export {
29
4
  URL
30
- });
5
+ };
31
6
  //# sourceMappingURL=Url.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/Url.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAoB;","names":[]}
1
+ {"version":3,"sources":["../../src/node/Url.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL }\n"],"mappings":";AAAA,SAAS,WAAW;","names":[]}
@@ -0,0 +1,33 @@
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
+ URL: () => 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
+ URL
32
+ });
33
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/node/index.ts","../../src/node/Url.ts"],"sourcesContent":["export * from './Url'\n","import { URL } from 'node:url'\nexport { URL }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAoB;","names":[]}
@@ -1,33 +1,6 @@
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
- URL: () => import_node_url.URL
24
- });
25
- module.exports = __toCommonJS(node_exports);
26
-
27
1
  // 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 = {
2
+ import { URL } from "node:url";
3
+ export {
31
4
  URL
32
- });
5
+ };
33
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/index.ts","../../src/node/Url.ts"],"sourcesContent":["export * from './Url'\n","import { URL } from 'node:url'\nexport { URL }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAoB;","names":[]}
1
+ {"version":3,"sources":["../../src/node/Url.ts"],"sourcesContent":["import { URL } from 'node:url'\nexport { URL }\n"],"mappings":";AAAA,SAAS,WAAW;","names":[]}
package/package.json CHANGED
@@ -12,7 +12,6 @@
12
12
  },
13
13
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
14
14
  "docs": "dist/docs.json",
15
- "types": "dist/node/node/index.d.ts",
16
15
  "exports": {
17
16
  ".": {
18
17
  "browser": {
@@ -21,17 +20,17 @@
21
20
  "default": "./dist/browser/index.cjs"
22
21
  },
23
22
  "import": {
24
- "types": "./dist/browser/browser/index.d.ts",
23
+ "types": "./dist/browser/browser/index.d.mts",
25
24
  "default": "./dist/browser/index.js"
26
25
  }
27
26
  },
28
27
  "require": {
29
28
  "types": "./dist/node/node/index.d.ts",
30
- "default": "./dist/node/index.js"
29
+ "default": "./dist/node/index.cjs"
31
30
  },
32
31
  "import": {
33
32
  "types": "./dist/node/node/index.d.mts",
34
- "default": "./dist/node/index.mjs"
33
+ "default": "./dist/node/index.js"
35
34
  }
36
35
  },
37
36
  "./docs": {
@@ -39,8 +38,9 @@
39
38
  },
40
39
  "./package.json": "./package.json"
41
40
  },
42
- "main": "dist/node/index.js",
43
- "module": "dist/node/index.mjs",
41
+ "main": "./dist/node/index.cjs",
42
+ "types": "./dist/node/index.d.ts",
43
+ "module": "./dist/node/index.js",
44
44
  "homepage": "https://xylabs.com",
45
45
  "keywords": [
46
46
  "xylabs",
@@ -65,7 +65,7 @@
65
65
  "url": "https://github.com/xylabs/sdk-js.git"
66
66
  },
67
67
  "sideEffects": false,
68
- "version": "2.11.24",
68
+ "version": "2.12.2",
69
69
  "xy": {
70
70
  "compile": {
71
71
  "browser": {
@@ -75,5 +75,6 @@
75
75
  "src/node": true
76
76
  }
77
77
  }
78
- }
78
+ },
79
+ "type": "module"
79
80
  }
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
5
- };
6
- //# sourceMappingURL=Url.mjs.map
@@ -1,6 +0,0 @@
1
- // src/node/Url.ts
2
- import { URL } from "node:url";
3
- export {
4
- URL
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 }\n"],"mappings":";AAAA,SAAS,WAAW;","names":[]}