@ooneex/url 0.10.0 → 0.12.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/index.js +206 -2
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,3 +1,207 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ReadonlyUrl.ts
|
|
2
|
+
import { parseString, trim } from "@ooneex/utils";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
class ReadonlyUrl {
|
|
5
|
+
native;
|
|
6
|
+
protocol;
|
|
7
|
+
subdomain;
|
|
8
|
+
domain;
|
|
9
|
+
hostname;
|
|
10
|
+
port;
|
|
11
|
+
path;
|
|
12
|
+
queries = {};
|
|
13
|
+
fragment;
|
|
14
|
+
base;
|
|
15
|
+
origin;
|
|
16
|
+
constructor(url) {
|
|
17
|
+
this.native = new URL(url);
|
|
18
|
+
this.protocol = trim(this.native.protocol, ":");
|
|
19
|
+
this.subdomain = null;
|
|
20
|
+
this.hostname = this.native.hostname;
|
|
21
|
+
this.domain = this.hostname;
|
|
22
|
+
const isIpAddress = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(this.hostname);
|
|
23
|
+
if (!isIpAddress && this.hostname !== "localhost") {
|
|
24
|
+
const match = /(?<subdomain>.+)\.(?<domain>[a-z0-9-_]+\.[a-z0-9]+)$/i.exec(this.domain);
|
|
25
|
+
if (match) {
|
|
26
|
+
const { subdomain, domain } = match.groups;
|
|
27
|
+
this.subdomain = subdomain;
|
|
28
|
+
this.domain = domain;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (this.native.port) {
|
|
32
|
+
this.port = parseString(this.native.port);
|
|
33
|
+
} else {
|
|
34
|
+
const urlString = typeof url === "string" ? url : url.toString();
|
|
35
|
+
const portMatch = urlString.match(/:(\d+)/);
|
|
36
|
+
if (portMatch) {
|
|
37
|
+
this.port = parseString(portMatch[1]);
|
|
38
|
+
} else {
|
|
39
|
+
this.port = 80;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (this.native.pathname === "/") {
|
|
43
|
+
this.path = "/";
|
|
44
|
+
} else {
|
|
45
|
+
this.path = this.native.pathname.replace(/\/+$/, "");
|
|
46
|
+
}
|
|
47
|
+
this.fragment = trim(this.native.hash, "#");
|
|
48
|
+
this.base = `${this.native.protocol}//${this.native.host}`;
|
|
49
|
+
this.origin = this.native.origin;
|
|
50
|
+
for (const [key, value] of this.native.searchParams) {
|
|
51
|
+
if (value === "true") {
|
|
52
|
+
this.queries[key] = true;
|
|
53
|
+
} else if (value === "false") {
|
|
54
|
+
this.queries[key] = false;
|
|
55
|
+
} else if (/^\d+$/.test(value) && !value.startsWith("0")) {
|
|
56
|
+
this.queries[key] = Number.parseInt(value, 10);
|
|
57
|
+
} else if (/^-?\d+(\.\d+)?$/.test(value) && !value.startsWith("0")) {
|
|
58
|
+
this.queries[key] = Number.parseFloat(value);
|
|
59
|
+
} else {
|
|
60
|
+
this.queries[key] = value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
getNative() {
|
|
65
|
+
return this.native;
|
|
66
|
+
}
|
|
67
|
+
getProtocol() {
|
|
68
|
+
return this.protocol;
|
|
69
|
+
}
|
|
70
|
+
getSubdomain() {
|
|
71
|
+
return this.subdomain;
|
|
72
|
+
}
|
|
73
|
+
getDomain() {
|
|
74
|
+
return this.domain;
|
|
75
|
+
}
|
|
76
|
+
getHostname() {
|
|
77
|
+
return this.hostname;
|
|
78
|
+
}
|
|
79
|
+
getPort() {
|
|
80
|
+
return this.port;
|
|
81
|
+
}
|
|
82
|
+
getPath() {
|
|
83
|
+
return this.path;
|
|
84
|
+
}
|
|
85
|
+
getQueries() {
|
|
86
|
+
return { ...this.queries };
|
|
87
|
+
}
|
|
88
|
+
getQuery(name) {
|
|
89
|
+
return this.queries[name] || null;
|
|
90
|
+
}
|
|
91
|
+
getFragment() {
|
|
92
|
+
return this.fragment;
|
|
93
|
+
}
|
|
94
|
+
getBase() {
|
|
95
|
+
return this.base;
|
|
96
|
+
}
|
|
97
|
+
getOrigin() {
|
|
98
|
+
return this.origin;
|
|
99
|
+
}
|
|
100
|
+
toString() {
|
|
101
|
+
return this.native.toString();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// src/Url.ts
|
|
105
|
+
import { trim as trim2 } from "@ooneex/utils";
|
|
106
|
+
class Url extends ReadonlyUrl {
|
|
107
|
+
setProtocol(protocol) {
|
|
108
|
+
const oldProtocol = this.protocol;
|
|
109
|
+
this.protocol = trim2(protocol, ":");
|
|
110
|
+
if (oldProtocol === "http" && this.port === 80 && this.protocol === "https") {
|
|
111
|
+
this.port = 80;
|
|
112
|
+
} else if (oldProtocol === "https" && this.port === 443 && this.protocol === "http") {
|
|
113
|
+
this.port = 80;
|
|
114
|
+
}
|
|
115
|
+
this.updateNativeUrl();
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
setHostname(hostname) {
|
|
119
|
+
this.hostname = hostname;
|
|
120
|
+
this.subdomain = null;
|
|
121
|
+
this.domain = hostname;
|
|
122
|
+
const isIpAddress = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(hostname);
|
|
123
|
+
if (!isIpAddress && hostname !== "localhost") {
|
|
124
|
+
const match = /(?<subdomain>.+)\.(?<domain>[a-z0-9-_]+\.[a-z0-9]+)$/i.exec(hostname);
|
|
125
|
+
if (match) {
|
|
126
|
+
const { subdomain, domain } = match.groups;
|
|
127
|
+
this.subdomain = subdomain;
|
|
128
|
+
this.domain = domain;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
this.updateNativeUrl();
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
134
|
+
setPort(port) {
|
|
135
|
+
this.port = port;
|
|
136
|
+
this.updateNativeUrl();
|
|
137
|
+
return this;
|
|
138
|
+
}
|
|
139
|
+
setPath(path) {
|
|
140
|
+
if (path === "") {
|
|
141
|
+
this.path = "/";
|
|
142
|
+
} else {
|
|
143
|
+
this.path = `/${trim2(path, "/")}`;
|
|
144
|
+
}
|
|
145
|
+
this.updateNativeUrl();
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
addQuery(key, value) {
|
|
149
|
+
this.queries[key] = value;
|
|
150
|
+
this.updateNativeUrl();
|
|
151
|
+
return this;
|
|
152
|
+
}
|
|
153
|
+
removeQuery(key) {
|
|
154
|
+
delete this.queries[key];
|
|
155
|
+
this.updateNativeUrl();
|
|
156
|
+
return this;
|
|
157
|
+
}
|
|
158
|
+
setQueries(queries) {
|
|
159
|
+
this.queries = { ...queries };
|
|
160
|
+
this.updateNativeUrl();
|
|
161
|
+
return this;
|
|
162
|
+
}
|
|
163
|
+
clearQueries() {
|
|
164
|
+
this.queries = {};
|
|
165
|
+
this.updateNativeUrl();
|
|
166
|
+
return this;
|
|
167
|
+
}
|
|
168
|
+
setFragment(fragment) {
|
|
169
|
+
this.fragment = trim2(fragment, "#");
|
|
170
|
+
this.updateNativeUrl();
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
updateNativeUrl() {
|
|
174
|
+
const protocol = this.protocol.includes(":") ? this.protocol : `${this.protocol}:`;
|
|
175
|
+
const port = this.shouldShowPort() ? `:${this.port}` : "";
|
|
176
|
+
const path = this.path;
|
|
177
|
+
const queryString = this.buildQueryString();
|
|
178
|
+
const fragment = this.fragment ? `#${this.fragment}` : "";
|
|
179
|
+
const urlString = `${protocol}//${this.hostname}${port}${path}${queryString}${fragment}`;
|
|
180
|
+
this.native = new URL(urlString);
|
|
181
|
+
this.base = this.shouldShowPort() ? `${protocol}//${this.hostname}${port}` : `${protocol}//${this.hostname}`;
|
|
182
|
+
this.origin = this.shouldShowPort() ? `${protocol}//${this.hostname}${port}` : `${protocol}//${this.hostname}`;
|
|
183
|
+
}
|
|
184
|
+
shouldShowPort() {
|
|
185
|
+
if (this.protocol === "http" && this.port === 80)
|
|
186
|
+
return false;
|
|
187
|
+
if (this.protocol === "https" && this.port === 443)
|
|
188
|
+
return false;
|
|
189
|
+
if (this.port === 80)
|
|
190
|
+
return false;
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
buildQueryString() {
|
|
194
|
+
const params = new URLSearchParams;
|
|
195
|
+
for (const [key, value] of Object.entries(this.queries)) {
|
|
196
|
+
params.set(key, String(value));
|
|
197
|
+
}
|
|
198
|
+
const queryString = params.toString();
|
|
199
|
+
return queryString ? `?${queryString}` : "";
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
export {
|
|
203
|
+
Url,
|
|
204
|
+
ReadonlyUrl
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
//# debugId=032D8AE8CD2D504564756E2164756E21
|
package/dist/index.js.map
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"import type { ScalarType } from \"@ooneex/types\";\nimport { parseString, trim } from \"@ooneex/utils\";\nimport type { IReadonlyUrl } from \"./types\";\n\nexport class ReadonlyUrl implements IReadonlyUrl {\n protected native: URL;\n protected protocol: string;\n protected subdomain: string | null;\n protected domain: string;\n protected hostname: string;\n protected port: number;\n protected path: string;\n protected queries: Record<string, ScalarType> = {};\n protected fragment: string;\n protected base: string;\n protected origin: string;\n\n constructor(url: string | URL) {\n this.native = new URL(url);\n\n this.protocol = trim(this.native.protocol, \":\");\n this.subdomain = null;\n this.hostname = this.native.hostname;\n this.domain = this.hostname;\n\n // Only parse domain/subdomain for actual domain names, not IP addresses\n const isIpAddress = /^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/.test(this.hostname);\n if (!isIpAddress && this.hostname !== \"localhost\") {\n const match = /(?<subdomain>.+)\\.(?<domain>[a-z0-9-_]+\\.[a-z0-9]+)$/i.exec(this.domain);\n if (match) {\n const { subdomain, domain } = match.groups as {\n subdomain: string;\n domain: string;\n };\n this.subdomain = subdomain;\n this.domain = domain;\n }\n }\n\n // Handle port parsing - native URL omits default ports, but we need to detect them\n if (this.native.port) {\n this.port = parseString(this.native.port);\n } else {\n // Check if the original URL string had an explicit port\n const urlString = typeof url === \"string\" ? url : url.toString();\n const portMatch = urlString.match(/:(\\d+)/);\n if (portMatch) {\n this.port = parseString(portMatch[1] as string);\n } else {\n this.port = 80; // Default port\n }\n }\n // Handle path - preserve structure but handle trailing slashes correctly\n if (this.native.pathname === \"/\") {\n this.path = \"/\";\n } else {\n // Remove all trailing slashes if present, but preserve internal empty segments\n this.path = this.native.pathname.replace(/\\/+$/, \"\");\n }\n this.fragment = trim(this.native.hash, \"#\");\n this.base = `${this.native.protocol}//${this.native.host}`;\n this.origin = this.native.origin;\n\n for (const [key, value] of this.native.searchParams) {\n // Only parse as number/boolean if it's clearly intended to be\n if (value === \"true\") {\n this.queries[key] = true;\n } else if (value === \"false\") {\n this.queries[key] = false;\n } else if (/^\\d+$/.test(value) && !value.startsWith(\"0\")) {\n // Only parse as number if it's all digits and doesn't start with 0 (to preserve \"001\")\n this.queries[key] = Number.parseInt(value, 10);\n } else if (/^-?\\d+(\\.\\d+)?$/.test(value) && !value.startsWith(\"0\")) {\n // Parse as float if it's a valid number\n this.queries[key] = Number.parseFloat(value);\n } else {\n this.queries[key] = value;\n }\n }\n }\n\n public getNative(): URL {\n return this.native;\n }\n\n public getProtocol(): string {\n return this.protocol;\n }\n\n public getSubdomain(): string | null {\n return this.subdomain;\n }\n\n public getDomain(): string {\n return this.domain;\n }\n\n public getHostname(): string {\n return this.hostname;\n }\n\n public getPort(): number {\n return this.port;\n }\n\n public getPath(): string {\n return this.path;\n }\n\n public getQueries(): Record<string, ScalarType> {\n return { ...this.queries };\n }\n\n public getQuery(name: string): ScalarType | null {\n return this.queries[name] || null;\n }\n\n public getFragment(): string {\n return this.fragment;\n }\n\n public getBase(): string {\n return this.base;\n }\n\n public getOrigin(): string {\n return this.origin;\n }\n\n public toString(): string {\n return this.native.toString();\n }\n}\n",
|
|
6
6
|
"import type { ScalarType } from \"@ooneex/types\";\nimport { trim } from \"@ooneex/utils\";\nimport { ReadonlyUrl } from \"./ReadonlyUrl\";\nimport type { IUrl } from \"./types\";\n\nexport class Url extends ReadonlyUrl implements IUrl {\n public setProtocol(protocol: string): this {\n const oldProtocol = this.protocol;\n this.protocol = trim(protocol, \":\");\n\n // Update port based on protocol change if it was a default port\n if (oldProtocol === \"http\" && this.port === 80 && this.protocol === \"https\") {\n this.port = 80; // Keep 80 as default for all protocols as per tests\n } else if (oldProtocol === \"https\" && this.port === 443 && this.protocol === \"http\") {\n this.port = 80; // Keep 80 as default for all protocols as per tests\n }\n\n this.updateNativeUrl();\n return this;\n }\n\n public setHostname(hostname: string): this {\n this.hostname = hostname;\n\n this.subdomain = null;\n this.domain = hostname;\n\n // Only parse domain/subdomain for actual domain names, not IP addresses\n const isIpAddress = /^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/.test(hostname);\n if (!isIpAddress && hostname !== \"localhost\") {\n const match = /(?<subdomain>.+)\\.(?<domain>[a-z0-9-_]+\\.[a-z0-9]+)$/i.exec(hostname);\n if (match) {\n const { subdomain, domain } = match.groups as {\n subdomain: string;\n domain: string;\n };\n this.subdomain = subdomain;\n this.domain = domain;\n }\n }\n\n this.updateNativeUrl();\n return this;\n }\n\n public setPort(port: number): this {\n this.port = port;\n this.updateNativeUrl();\n return this;\n }\n\n public setPath(path: string): this {\n if (path === \"\") {\n this.path = \"/\";\n } else {\n this.path = `/${trim(path, \"/\")}`;\n }\n this.updateNativeUrl();\n return this;\n }\n\n public addQuery(key: string, value: ScalarType): this {\n this.queries[key] = value;\n this.updateNativeUrl();\n return this;\n }\n\n public removeQuery(key: string): this {\n delete this.queries[key];\n this.updateNativeUrl();\n return this;\n }\n\n public setQueries(queries: Record<string, ScalarType>): this {\n this.queries = { ...queries };\n this.updateNativeUrl();\n return this;\n }\n\n public clearQueries(): this {\n this.queries = {};\n this.updateNativeUrl();\n return this;\n }\n\n public setFragment(fragment: string): this {\n this.fragment = trim(fragment, \"#\");\n this.updateNativeUrl();\n return this;\n }\n\n private updateNativeUrl() {\n const protocol = this.protocol.includes(\":\") ? this.protocol : `${this.protocol}:`;\n const port = this.shouldShowPort() ? `:${this.port}` : \"\";\n const path = this.path;\n const queryString = this.buildQueryString();\n const fragment = this.fragment ? `#${this.fragment}` : \"\";\n const urlString = `${protocol}//${this.hostname}${port}${path}${queryString}${fragment}`;\n this.native = new URL(urlString);\n this.base = this.shouldShowPort() ? `${protocol}//${this.hostname}${port}` : `${protocol}//${this.hostname}`;\n this.origin = this.shouldShowPort() ? `${protocol}//${this.hostname}${port}` : `${protocol}//${this.hostname}`;\n }\n\n private shouldShowPort(): boolean {\n if (this.protocol === \"http\" && this.port === 80) return false;\n if (this.protocol === \"https\" && this.port === 443) return false;\n if (this.port === 80) return false; // Don't show default port 80\n return true;\n }\n\n private buildQueryString(): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(this.queries)) {\n params.set(key, String(value));\n }\n const queryString = params.toString();\n return queryString ? `?${queryString}` : \"\";\n }\n}\n"
|
|
7
7
|
],
|
|
8
|
-
"mappings": "AACA,
|
|
9
|
-
"debugId": "
|
|
8
|
+
"mappings": ";AACA;AAAA;AAGO,MAAM,YAAoC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAsC,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EAEV,WAAW,CAAC,KAAmB;AAAA,IAC7B,KAAK,SAAS,IAAI,IAAI,GAAG;AAAA,IAEzB,KAAK,WAAW,KAAK,KAAK,OAAO,UAAU,GAAG;AAAA,IAC9C,KAAK,YAAY;AAAA,IACjB,KAAK,WAAW,KAAK,OAAO;AAAA,IAC5B,KAAK,SAAS,KAAK;AAAA,IAGnB,MAAM,cAAc,uCAAuC,KAAK,KAAK,QAAQ;AAAA,IAC7E,IAAI,CAAC,eAAe,KAAK,aAAa,aAAa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debugId": "032D8AE8CD2D504564756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ooneex/url",
|
|
3
3
|
"description": "URL parsing, manipulation, and query string utilities for web applications",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@ooneex/utils": "0.1.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@ooneex/types": "0.0.
|
|
34
|
+
"@ooneex/types": "0.0.11"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"bun",
|