@little-nebulae/http 0.3.0 → 0.3.1

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.ts CHANGED
@@ -38,7 +38,7 @@ export declare const HTTP_REQUEST_METHOD_ENUM: {
38
38
  readonly CONNECT: "CONNECT";
39
39
  };
40
40
  export type HttpRequestMethod = ValueOf<typeof HTTP_REQUEST_METHOD_ENUM>;
41
- export declare const HTTP_RESPONSE_STATUS_RECORD: {
41
+ export declare const HTTP_RESPONSE_STATUS_ENUM: {
42
42
  readonly BAD_REQUEST: {
43
43
  readonly CODE: 400;
44
44
  readonly TEXT: "Bad Request";
@@ -280,7 +280,7 @@ export declare const HTTP_RESPONSE_STATUS_RECORD: {
280
280
  readonly TEXT: "IM Used";
281
281
  };
282
282
  };
283
- type HttpResponseStatus = ValueOf<typeof HTTP_RESPONSE_STATUS_RECORD>;
283
+ type HttpResponseStatus = ValueOf<typeof HTTP_RESPONSE_STATUS_ENUM>;
284
284
  export type HttpResponseStatusCode = HttpResponseStatus["CODE"];
285
285
  export type HttpResponseStatusText = HttpResponseStatus["TEXT"];
286
286
  export declare const HTTP_INFORMATIONAL_RESPONSE_STATUS_ENUM: {
package/dist/index.js CHANGED
@@ -298,10 +298,10 @@ const HTTP_SUCCESSFUL_RESPONSE_STATUS_ENUM = {
298
298
  }
299
299
  };
300
300
  // src/constants/response-statuses/index.ts
301
- const HTTP_RESPONSE_STATUS_RECORD = {
301
+ const HTTP_RESPONSE_STATUS_ENUM = {
302
302
  ...HTTP_INFORMATIONAL_RESPONSE_STATUS_ENUM,
303
303
  ...HTTP_SUCCESSFUL_RESPONSE_STATUS_ENUM,
304
304
  ...HTTP_REDIRECTION_RESPONSE_STATUS_ENUM,
305
305
  ...HTTP_ERROR_RESPONSE_STATUS_ENUM
306
306
  };
307
- export { HTTP_CLIENT_ERROR_RESPONSE_STATUS_ENUM, HTTP_ERROR_RESPONSE_STATUS_ENUM, HTTP_HEADER_ENUM, HTTP_INFORMATIONAL_RESPONSE_STATUS_ENUM, HTTP_REDIRECTION_RESPONSE_STATUS_ENUM, HTTP_REQUEST_METHOD_ENUM, HTTP_RESPONSE_STATUS_RECORD, HTTP_SERVER_ERROR_RESPONSE_STATUS_ENUM, HTTP_SUCCESSFUL_RESPONSE_STATUS_ENUM };
307
+ export { HTTP_CLIENT_ERROR_RESPONSE_STATUS_ENUM, HTTP_ERROR_RESPONSE_STATUS_ENUM, HTTP_HEADER_ENUM, HTTP_INFORMATIONAL_RESPONSE_STATUS_ENUM, HTTP_REDIRECTION_RESPONSE_STATUS_ENUM, HTTP_REQUEST_METHOD_ENUM, HTTP_RESPONSE_STATUS_ENUM, HTTP_SERVER_ERROR_RESPONSE_STATUS_ENUM, HTTP_SUCCESSFUL_RESPONSE_STATUS_ENUM };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@little-nebulae/http",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"
@@ -20,7 +20,7 @@
20
20
  "@types/node": "26.6.6",
21
21
  "oxfmt": "0.78.0",
22
22
  "oxlint": "1.93.0",
23
- "oxlint-tsgolint": "7.0.2006",
23
+ "oxlint-tsgolint": "7.0.2007",
24
24
  "publint": "0.3.25",
25
25
  "tsdown": "0.23.7",
26
26
  "type-fest": "5.10.0",
@@ -33,12 +33,12 @@
33
33
  "devEngines": {
34
34
  "packageManager": {
35
35
  "name": "pnpm",
36
- "version": "^12.0.0",
36
+ "version": "12.18.0",
37
37
  "onFail": "warn"
38
38
  },
39
39
  "runtime": {
40
40
  "name": "node",
41
- "version": "^26.0.0",
41
+ "version": "26.13.1",
42
42
  "onFail": "warn"
43
43
  }
44
44
  },