@scalar/helpers 0.0.2 → 0.0.3
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/CHANGELOG.md +6 -0
- package/dist/http/can-method-have-body.d.ts +1 -1
- package/dist/http/is-http-method.d.ts +1 -1
- package/dist/http/is-http-method.js +1 -1
- package/dist/http/normalize-http-method.d.ts +1 -1
- package/dist/http/normalize-http-method.js +1 -1
- package/dist/regex/find-variables.d.ts +1 -1
- package/dist/regex/find-variables.d.ts.map +1 -1
- package/dist/regex/find-variables.js +1 -1
- package/dist/url/ensure-protocol.js +1 -1
- package/dist/url/is-relative-path.js +1 -1
- package/dist/url/merge-urls.js +3 -3
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HttpMethod } from './http-methods';
|
|
1
|
+
import { type HttpMethod } from './http-methods.js';
|
|
2
2
|
/** Type guard which takes in a string and returns true if it is in fact an HTTPMethod */
|
|
3
3
|
export declare const isHttpMethod: (method?: string | undefined) => method is HttpMethod;
|
|
4
4
|
//# sourceMappingURL=is-http-method.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpMethod } from './http-methods';
|
|
1
|
+
import type { HttpMethod } from './http-methods.js';
|
|
2
2
|
/**
|
|
3
3
|
* Get a normalized request method (e.g. get, post, etc.)
|
|
4
4
|
* Lowercases the method and returns the default if it is not a valid method so you will always have a valid method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-variables.d.ts","sourceRoot":"","sources":["../../src/regex/find-variables.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"find-variables.d.ts","sourceRoot":"","sources":["../../src/regex/find-variables.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,aACiE,CAAA"}
|
package/dist/url/merge-urls.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { REGEX } from "../regex/regex-helpers";
|
|
2
|
-
import { isRelativePath } from "./is-relative-path";
|
|
3
|
-
import { ensureProtocol } from "./ensure-protocol";
|
|
1
|
+
import { REGEX } from "../regex/regex-helpers.js";
|
|
2
|
+
import { isRelativePath } from "./is-relative-path.js";
|
|
3
|
+
import { ensureProtocol } from "./ensure-protocol.js";
|
|
4
4
|
const mergeSearchParams = (...params) => {
|
|
5
5
|
const merged = {};
|
|
6
6
|
params.forEach((p) => {
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"helpers",
|
|
15
15
|
"js"
|
|
16
16
|
],
|
|
17
|
-
"version": "0.0.
|
|
17
|
+
"version": "0.0.3",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=20"
|
|
20
20
|
},
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
"CHANGELOG.md"
|
|
78
78
|
],
|
|
79
79
|
"module": "dist/index.js",
|
|
80
|
-
"dependencies": {},
|
|
81
80
|
"devDependencies": {
|
|
82
81
|
"vite": "5.4.19",
|
|
83
82
|
"vitest": "^1.6.0",
|