@xylabs/url 2.10.18 → 2.11.0
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/{browserIndex.d.mts → browser/Url.d.ts} +3 -3
- package/dist/browser/Url.d.ts.map +1 -0
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browserIndex.d.ts +2 -3
- package/dist/browserIndex.d.ts.map +1 -0
- package/dist/index.d.mts +4 -11
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +4 -11
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -10
- package/dist/index.mjs.map +1 -1
- package/dist/node/Url.d.ts +3 -0
- package/dist/node/Url.d.ts.map +1 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/nodeIndex.d.ts +4 -5
- package/dist/nodeIndex.d.ts.map +1 -0
- package/package.json +4 -10
- package/dist/browserIndex.js +0 -36
- package/dist/browserIndex.js.map +0 -1
- package/dist/browserIndex.mjs +0 -9
- package/dist/browserIndex.mjs.map +0 -1
- package/dist/nodeIndex.d.mts +0 -5
- package/dist/nodeIndex.js +0 -36
- package/dist/nodeIndex.js.map +0 -1
- package/dist/nodeIndex.mjs +0 -9
- package/dist/nodeIndex.mjs.map +0 -1
- package/tsup.config.ts +0 -16
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const
|
|
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
|
-
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
|
package/dist/browserIndex.d.ts
CHANGED
|
@@ -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"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
30
|
-
var BrowserUrl = URL;
|
|
5
|
+
const BrowserUrl = URL;
|
|
31
6
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
15
|
+
exports.BrowserUrl = BrowserUrl;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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
|
-
|
|
2
|
-
var BrowserUrl = URL;
|
|
1
|
+
export { URL as NodeUrl, URL } from 'node:url';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
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
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/browser/Url.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA,MAAA,UAAgB,GAAA;;;;"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
|
package/dist/nodeIndex.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const URL: typeof
|
|
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/package.json
CHANGED
|
@@ -61,11 +61,9 @@
|
|
|
61
61
|
"buffer": "^6.0.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
65
|
-
"@xylabs/tsconfig": "^
|
|
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.15",
|
|
65
|
+
"@xylabs/tsconfig": "^3.0.0-rc.15",
|
|
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.
|
|
76
|
+
"version": "2.11.0"
|
|
83
77
|
}
|
package/dist/browserIndex.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/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
|
package/dist/browserIndex.js.map
DELETED
|
@@ -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"]}
|
package/dist/browserIndex.mjs
DELETED
|
@@ -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"]}
|
package/dist/nodeIndex.d.mts
DELETED
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
|
package/dist/nodeIndex.js.map
DELETED
|
@@ -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"]}
|
package/dist/nodeIndex.mjs
DELETED
package/dist/nodeIndex.mjs.map
DELETED
|
@@ -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"]}
|
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
|
-
})
|