@standardserver/core 0.0.9 → 0.0.11
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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +1 -12
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -73,7 +73,6 @@ declare function parseStandardUrl(url: StandardUrl): [
|
|
|
73
73
|
search: `?${string}` | undefined,
|
|
74
74
|
hash: `#${string}` | undefined
|
|
75
75
|
];
|
|
76
|
-
declare function parseQueryStringWithRawValues(search: `?${string}` | undefined): [string, string][];
|
|
77
76
|
|
|
78
77
|
declare function isStandardMethod(maybe: unknown): maybe is StandardMethod;
|
|
79
78
|
declare function isStandardUrl(maybe: unknown): maybe is StandardUrl;
|
|
@@ -81,5 +80,5 @@ declare function isStandardHeaders(maybe: unknown): maybe is StandardHeaders;
|
|
|
81
80
|
declare function isStandardRequest(maybe: unknown): maybe is StandardRequest;
|
|
82
81
|
declare function isStandardResponse(maybe: unknown): maybe is StandardResponse;
|
|
83
82
|
|
|
84
|
-
export { flattenStandardHeader, generateContentDisposition, getFilenameFromContentDisposition, isStandardHeaders, isStandardMethod, isStandardRequest, isStandardResponse, isStandardUrl, mergeStandardHeaders,
|
|
83
|
+
export { flattenStandardHeader, generateContentDisposition, getFilenameFromContentDisposition, isStandardHeaders, isStandardMethod, isStandardRequest, isStandardResponse, isStandardUrl, mergeStandardHeaders, parseStandardUrl };
|
|
85
84
|
export type { StandardBody, StandardBodyHint, StandardHeaders, StandardLazyRequest, StandardLazyResponse, StandardMethod, StandardRequest, StandardResponse, StandardUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,6 @@ declare function parseStandardUrl(url: StandardUrl): [
|
|
|
73
73
|
search: `?${string}` | undefined,
|
|
74
74
|
hash: `#${string}` | undefined
|
|
75
75
|
];
|
|
76
|
-
declare function parseQueryStringWithRawValues(search: `?${string}` | undefined): [string, string][];
|
|
77
76
|
|
|
78
77
|
declare function isStandardMethod(maybe: unknown): maybe is StandardMethod;
|
|
79
78
|
declare function isStandardUrl(maybe: unknown): maybe is StandardUrl;
|
|
@@ -81,5 +80,5 @@ declare function isStandardHeaders(maybe: unknown): maybe is StandardHeaders;
|
|
|
81
80
|
declare function isStandardRequest(maybe: unknown): maybe is StandardRequest;
|
|
82
81
|
declare function isStandardResponse(maybe: unknown): maybe is StandardResponse;
|
|
83
82
|
|
|
84
|
-
export { flattenStandardHeader, generateContentDisposition, getFilenameFromContentDisposition, isStandardHeaders, isStandardMethod, isStandardRequest, isStandardResponse, isStandardUrl, mergeStandardHeaders,
|
|
83
|
+
export { flattenStandardHeader, generateContentDisposition, getFilenameFromContentDisposition, isStandardHeaders, isStandardMethod, isStandardRequest, isStandardResponse, isStandardUrl, mergeStandardHeaders, parseStandardUrl };
|
|
85
84
|
export type { StandardBody, StandardBodyHint, StandardHeaders, StandardLazyRequest, StandardLazyResponse, StandardMethod, StandardRequest, StandardResponse, StandardUrl };
|
package/dist/index.mjs
CHANGED
|
@@ -52,17 +52,6 @@ function parseStandardUrl(url) {
|
|
|
52
52
|
const hash = hashStart !== -1 ? url.slice(hashStart) : void 0;
|
|
53
53
|
return [pathname, search, hash];
|
|
54
54
|
}
|
|
55
|
-
function parseQueryStringWithRawValues(search) {
|
|
56
|
-
if (!search || search.length <= 1) {
|
|
57
|
-
return [];
|
|
58
|
-
}
|
|
59
|
-
return search.slice(1).split("&").filter(Boolean).map((part) => {
|
|
60
|
-
const separatorIndex = part.indexOf("=");
|
|
61
|
-
const key = separatorIndex === -1 ? part : part.slice(0, separatorIndex);
|
|
62
|
-
const value = separatorIndex === -1 ? "" : part.slice(separatorIndex + 1);
|
|
63
|
-
return [tryDecodeURIComponent(key), value];
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
55
|
|
|
67
56
|
function isStandardMethod(maybe) {
|
|
68
57
|
return typeof maybe === "string";
|
|
@@ -97,4 +86,4 @@ function isStandardResponse(maybe) {
|
|
|
97
86
|
return isStandardHeaders(maybe.headers);
|
|
98
87
|
}
|
|
99
88
|
|
|
100
|
-
export { flattenStandardHeader, generateContentDisposition, getFilenameFromContentDisposition, isStandardHeaders, isStandardMethod, isStandardRequest, isStandardResponse, isStandardUrl, mergeStandardHeaders,
|
|
89
|
+
export { flattenStandardHeader, generateContentDisposition, getFilenameFromContentDisposition, isStandardHeaders, isStandardMethod, isStandardRequest, isStandardResponse, isStandardUrl, mergeStandardHeaders, parseStandardUrl };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@standardserver/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://standardserver.dev",
|
|
7
7
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@standardserver/shared": "0.0.
|
|
28
|
+
"@standardserver/shared": "0.0.11"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "unbuild",
|