@zthun/webigail-url 0.1.0 → 1.0.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.
- package/README.md +60 -0
- package/dist/lib/index.esm.js +2 -1
- package/dist/lib/index.esm.js.map +1 -0
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -0
- package/dist/types/data/data-url.d.ts +17 -17
- package/dist/types/index.d.ts +6 -6
- package/dist/types/mime/mime-type-application.d.ts +5 -5
- package/dist/types/mime/mime-type-image.d.ts +9 -9
- package/dist/types/mime/mime-type-text.d.ts +9 -9
- package/dist/types/mime/mime-type.d.ts +7 -7
- package/dist/types/url/url.d.ts +45 -45
- package/package.json +5 -5
package/dist/types/url/url.d.ts
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
export interface IZUrlInfo {
|
|
2
|
-
protocol: string;
|
|
3
|
-
username?: string;
|
|
4
|
-
password?: string;
|
|
5
|
-
hostname: string;
|
|
6
|
-
port?: number;
|
|
7
|
-
path: string[];
|
|
8
|
-
hash?: string;
|
|
9
|
-
params: Array<{
|
|
10
|
-
key: string;
|
|
11
|
-
val: string;
|
|
12
|
-
}>;
|
|
13
|
-
}
|
|
14
|
-
export declare class ZUrlBuilder {
|
|
15
|
-
static UrlGravatar: string;
|
|
16
|
-
static ProtocolPorts: {
|
|
17
|
-
http: number;
|
|
18
|
-
https: number;
|
|
19
|
-
ftp: number;
|
|
20
|
-
sftp: number;
|
|
21
|
-
ssh: number;
|
|
22
|
-
smtp: number;
|
|
23
|
-
smb: number;
|
|
24
|
-
};
|
|
25
|
-
static defaults(protocol: string, port: string | number): boolean;
|
|
26
|
-
private readonly _url;
|
|
27
|
-
constructor(protocol?: string, hostname?: string);
|
|
28
|
-
location(loc
|
|
29
|
-
api(loc
|
|
30
|
-
parse(url: string): this;
|
|
31
|
-
gravatar(hash?: string, size?: number): this;
|
|
32
|
-
protocol(protocol: string): this;
|
|
33
|
-
username(user: string | undefined): this;
|
|
34
|
-
password(pwd: string | undefined): this;
|
|
35
|
-
hostname(host: string): this;
|
|
36
|
-
subdomain(domain: string): this;
|
|
37
|
-
popSubdomain(): this;
|
|
38
|
-
port(port: number | undefined): this;
|
|
39
|
-
path(path: string): this;
|
|
40
|
-
append(path: string): this;
|
|
41
|
-
hash(hash: string | undefined): this;
|
|
42
|
-
param(key: string, val: string): this;
|
|
43
|
-
build(): string;
|
|
44
|
-
info(): IZUrlInfo;
|
|
45
|
-
}
|
|
1
|
+
export interface IZUrlInfo {
|
|
2
|
+
protocol: string;
|
|
3
|
+
username?: string;
|
|
4
|
+
password?: string;
|
|
5
|
+
hostname: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
path: string[];
|
|
8
|
+
hash?: string;
|
|
9
|
+
params: Array<{
|
|
10
|
+
key: string;
|
|
11
|
+
val: string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
export declare class ZUrlBuilder {
|
|
15
|
+
static UrlGravatar: string;
|
|
16
|
+
static ProtocolPorts: {
|
|
17
|
+
http: number;
|
|
18
|
+
https: number;
|
|
19
|
+
ftp: number;
|
|
20
|
+
sftp: number;
|
|
21
|
+
ssh: number;
|
|
22
|
+
smtp: number;
|
|
23
|
+
smb: number;
|
|
24
|
+
};
|
|
25
|
+
static defaults(protocol: string, port: string | number): boolean;
|
|
26
|
+
private readonly _url;
|
|
27
|
+
constructor(protocol?: string, hostname?: string);
|
|
28
|
+
location(loc: Location): this;
|
|
29
|
+
api(loc: Location, basePath?: string): this;
|
|
30
|
+
parse(url: string): this;
|
|
31
|
+
gravatar(hash?: string, size?: number): this;
|
|
32
|
+
protocol(protocol: string): this;
|
|
33
|
+
username(user: string | undefined): this;
|
|
34
|
+
password(pwd: string | undefined): this;
|
|
35
|
+
hostname(host: string): this;
|
|
36
|
+
subdomain(domain: string): this;
|
|
37
|
+
popSubdomain(): this;
|
|
38
|
+
port(port: number | undefined): this;
|
|
39
|
+
path(path: string): this;
|
|
40
|
+
append(path: string): this;
|
|
41
|
+
hash(hash: string | undefined): this;
|
|
42
|
+
param(key: string, val: string): this;
|
|
43
|
+
build(): string;
|
|
44
|
+
info(): IZUrlInfo;
|
|
45
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/webigail-url",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Url parsing and building.",
|
|
5
5
|
"author": "Anthony Bonta",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"module": "./dist/lib/index.esm.js",
|
|
14
14
|
"types": "./dist/types/index.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "microbundle --format esm,cjs --tsconfig tsconfig.prod.json
|
|
16
|
+
"build": "microbundle --format esm,cjs --tsconfig tsconfig.prod.json"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"microbundle": "^0.15.1",
|
|
23
|
-
"vite": "^4.
|
|
24
|
-
"vitest": "^0.
|
|
23
|
+
"vite": "^4.4.9",
|
|
24
|
+
"vitest": "^0.34.1"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"url-parse": "^1.5.10"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "4dbd684a60c4303d13d28c1c7a53fd02bb494f22"
|
|
35
35
|
}
|