@xylabs/url 4.13.8 → 4.13.10

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,4 +1,4 @@
1
- // src/browser/Url.ts
1
+ // src/browser/index.ts
2
2
  var BrowserUrl = URL;
3
3
  export {
4
4
  BrowserUrl as URL
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/browser/Url.ts"],"sourcesContent":["const BrowserUrl = URL\nexport { BrowserUrl as URL }\n"],"mappings":";AAAA,IAAM,aAAa;","names":[]}
1
+ {"version":3,"sources":["../../src/browser/index.ts"],"sourcesContent":["/// <reference lib=\"dom\" />\nconst BrowserUrl = URL\nexport { BrowserUrl as URL }\n"],"mappings":";AACA,IAAM,aAAa;","names":[]}
@@ -0,0 +1,10 @@
1
+ declare const NeutralUrl: {
2
+ new (url: string | URL, base?: string | URL): URL;
3
+ prototype: URL;
4
+ canParse(url: string | URL, base?: string | URL): boolean;
5
+ createObjectURL(obj: Blob | MediaSource): string;
6
+ parse(url: string | URL, base?: string | URL): URL | null;
7
+ revokeObjectURL(url: string): void;
8
+ };
9
+
10
+ export { NeutralUrl as URL };
@@ -1,4 +1,4 @@
1
- // src/neutral/Url.ts
1
+ // src/neutral/index.ts
2
2
  var NeutralUrl = URL;
3
3
  export {
4
4
  NeutralUrl as URL
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/neutral/Url.ts"],"sourcesContent":["const NeutralUrl = URL\nexport { NeutralUrl as URL }\n"],"mappings":";AAAA,IAAM,aAAa;","names":[]}
1
+ {"version":3,"sources":["../../src/neutral/index.ts"],"sourcesContent":["/// <reference lib=\"dom\" />\nconst NeutralUrl = URL\nexport { NeutralUrl as URL }\n"],"mappings":";AACA,IAAM,aAAa;","names":[]}
@@ -1,4 +1,4 @@
1
- // src/node/Url.ts
1
+ // src/node/index.ts
2
2
  import { URL } from "url";
3
3
  export {
4
4
  URL
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/node/Url.ts"],"sourcesContent":["export { URL } from 'node:url'\n"],"mappings":";AAAA,SAAS,WAAW;","names":[]}
1
+ {"version":3,"sources":["../../src/node/index.ts"],"sourcesContent":["export { URL } from 'node:url'\n"],"mappings":";AAAA,SAAS,WAAW;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/url",
3
- "version": "4.13.8",
3
+ "version": "4.13.10",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "url",
@@ -29,27 +29,27 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "browser": {
32
- "types": "./dist/browser/browser/index.d.ts",
32
+ "types": "./dist/browser/index.d.ts",
33
33
  "default": "./dist/browser/index.mjs"
34
34
  },
35
35
  "neutral": {
36
- "types": "./dist/neutral/neutral/index.d.ts",
36
+ "types": "./dist/neutral/index.d.ts",
37
37
  "default": "./dist/neutral/index.mjs"
38
38
  },
39
39
  "node": {
40
- "types": "./dist/node/node/index.d.ts",
40
+ "types": "./dist/node/index.d.ts",
41
41
  "default": "./dist/node/index.mjs"
42
42
  }
43
43
  },
44
44
  "./package.json": "./package.json"
45
45
  },
46
46
  "module": "./dist/neutral/index.mjs",
47
- "types": "./dist/neutral/neutral/index.d.ts",
47
+ "types": "./dist/neutral/index.d.ts",
48
48
  "devDependencies": {
49
49
  "@types/node": "^24.0.13",
50
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.8",
51
- "@xylabs/tsconfig": "^7.0.0-rc.8",
52
- "@xylabs/tsconfig-dom": "^7.0.0-rc.8",
50
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.9",
51
+ "@xylabs/tsconfig": "^7.0.0-rc.9",
52
+ "@xylabs/tsconfig-dom": "^7.0.0-rc.9",
53
53
  "typescript": "^5.8.3"
54
54
  },
55
55
  "engines": {
@@ -1 +1,3 @@
1
- export * from './Url.ts'
1
+ /// <reference lib="dom" />
2
+ const BrowserUrl = URL
3
+ export { BrowserUrl as URL }
@@ -1 +1,3 @@
1
- export * from './Url.ts'
1
+ /// <reference lib="dom" />
2
+ const NeutralUrl = URL
3
+ export { NeutralUrl as URL }
package/src/node/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './Url.ts'
1
+ export { URL } from 'node:url'
package/babel.config.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "presets": [
3
- "@babel/preset-env"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- import * as url from 'url';
2
-
3
- declare const NeutralUrl: typeof url.URL;
4
-
5
- export { NeutralUrl as URL };
@@ -1,2 +0,0 @@
1
- const BrowserUrl = URL
2
- export { BrowserUrl as URL }
@@ -1,2 +0,0 @@
1
- const NeutralUrl = URL
2
- export { NeutralUrl as URL }
package/src/node/Url.ts DELETED
@@ -1 +0,0 @@
1
- export { URL } from 'node:url'
File without changes
File without changes