Skip to content

Commit 7d50bf3

Browse files
committed
feat(@unimolecule/oh-my-fetch): ✨ change status-codes import path
1 parent 4f7ab1f commit 7d50bf3

6 files changed

Lines changed: 10 additions & 5 deletions

File tree

.changeset/deep-mangos-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@unimolecule/oh-my-fetch": patch
3+
---
4+
5+
change status-codes import path

packages/oh-my-fetch/src/client/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http-status-codes";
1+
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http";
22
import type { HttpMethod, RequestBehavior } from "../utils/types";
33
import type { RetryOptions } from "ky";
44

packages/oh-my-fetch/src/status/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http-status-codes";
1+
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http";
22
import type { KnownStatusCode } from "./types";
33

44
export const STATUS_MESSAGES = {

packages/oh-my-fetch/src/status/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http-status-codes";
1+
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http";
22
import { STATUS_MESSAGE_BY_CODE } from "./constants";
33
import type { KnownStatusCode } from "./types";
44

packages/oh-my-fetch/src/status/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { HTTP_STATUS_CODES } from "@unimolecule/canon/http-status-codes";
1+
import type { HTTP_STATUS_CODES } from "@unimolecule/canon/http";
22

33
export type KnownStatusCode =
44
| typeof HTTP_STATUS_CODES.BAD_REQUEST.code

packages/oh-my-fetch/src/validation/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http-status-codes";
1+
import { HTTP_STATUS_CODES } from "@unimolecule/canon/http";
22

33
export const VALIDATION_ERROR_CODE =
44
HTTP_STATUS_CODES.UNPROCESSABLE_ENTITY.code;

0 commit comments

Comments
 (0)