pasika 0.10.34 → 0.10.35
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Standard HTTP request methods for runtime use. */
|
|
2
|
+
declare enum HttpMethod {
|
|
3
|
+
Get = "GET",
|
|
4
|
+
Head = "HEAD",
|
|
5
|
+
Post = "POST",
|
|
6
|
+
Put = "PUT",
|
|
7
|
+
Delete = "DELETE",
|
|
8
|
+
Connect = "CONNECT",
|
|
9
|
+
Options = "OPTIONS",
|
|
10
|
+
Trace = "TRACE",
|
|
11
|
+
Patch = "PATCH"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { HttpMethod };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// helpers/http-method.ts
|
|
2
|
+
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
3
|
+
HttpMethod2["Get"] = "GET";
|
|
4
|
+
HttpMethod2["Head"] = "HEAD";
|
|
5
|
+
HttpMethod2["Post"] = "POST";
|
|
6
|
+
HttpMethod2["Put"] = "PUT";
|
|
7
|
+
HttpMethod2["Delete"] = "DELETE";
|
|
8
|
+
HttpMethod2["Connect"] = "CONNECT";
|
|
9
|
+
HttpMethod2["Options"] = "OPTIONS";
|
|
10
|
+
HttpMethod2["Trace"] = "TRACE";
|
|
11
|
+
HttpMethod2["Patch"] = "PATCH";
|
|
12
|
+
return HttpMethod2;
|
|
13
|
+
})(HttpMethod || {});
|
|
14
|
+
export {
|
|
15
|
+
HttpMethod
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pasika",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.35",
|
|
4
4
|
"description": "Reusable agent setup package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"types": "./dist/helpers/http-error.d.ts",
|
|
22
22
|
"import": "./dist/helpers/http-error.js"
|
|
23
23
|
},
|
|
24
|
+
"./http-method": {
|
|
25
|
+
"types": "./dist/helpers/http-method.d.ts",
|
|
26
|
+
"import": "./dist/helpers/http-method.js"
|
|
27
|
+
},
|
|
24
28
|
"./response-envelope": {
|
|
25
29
|
"types": "./dist/helpers/response-envelope.d.ts",
|
|
26
30
|
"import": "./dist/helpers/response-envelope.js"
|