From 4809131e6ca841acd610f8c92be696042516219c Mon Sep 17 00:00:00 2001 From: Marcel Kloubert Date: Mon, 8 Jan 2024 06:03:21 +0100 Subject: [PATCH] feat: throwOnUnexpectedApiResponse --- .vscode/settings.json | 2 +- CHANGELOG.md | 4 ++++ package-lock.json | 14 +++++++------- package.json | 4 ++-- src/index.ts | 5 +++++ 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5ad3679..51e2de4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,6 +6,6 @@ "./src" ], "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" } } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a6d83a..9279c12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log (@egomobile/next-utils) +## 0.12.0 + +- `npm update`s + ## 0.11.0 - `npm update`s diff --git a/package-lock.json b/package-lock.json index e59c49b..245dbcb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@egomobile/next-utils", - "version": "0.11.0", + "version": "0.12.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@egomobile/next-utils", - "version": "0.11.0", + "version": "0.12.0", "license": "LGPL-3.0", "dependencies": { - "@egomobile/api-utils": "^3.0.0", + "@egomobile/api-utils": "^5.0.1", "@egomobile/node-utils": "^0.3.0", "@egomobile/nodelike-utils": "^0.2.2", "@types/node": "18.11.9", @@ -242,9 +242,9 @@ } }, "node_modules/@egomobile/api-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@egomobile/api-utils/-/api-utils-3.0.0.tgz", - "integrity": "sha512-3SxpnHe6KZickNldtvc49rValB5OETE5nmywiByPd96e+ZBn74XAQEUXDW3yz52iZ7ANh6qw62vHC34dVYI8sA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@egomobile/api-utils/-/api-utils-5.0.1.tgz", + "integrity": "sha512-FYAQPpm3QbazFxoYMZ+G08Un7jGby3vMKxsG/L0BUxnoB6ZfeJJUo48zWHbGAZRZx3EdYH7ddocbDTegCrD28Q==", "dependencies": { "joi": "17.11.0" }, @@ -252,7 +252,7 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@egomobile/http-server": ">=0.63.1 < 0.65" + "@egomobile/http-server": ">=0.63.1 < 0.66" } }, "node_modules/@egomobile/http-server": { diff --git a/package.json b/package.json index a913c46..9995bdc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@egomobile/next-utils", - "version": "0.11.0", + "version": "0.12.0", "description": "Handy utils and extensions for Next.js", "main": "lib/index.js", "engines": { @@ -48,7 +48,7 @@ "functions" ], "dependencies": { - "@egomobile/api-utils": "^3.0.0", + "@egomobile/api-utils": "^5.0.1", "@egomobile/node-utils": "^0.3.0", "@egomobile/nodelike-utils": "^0.2.2", "@types/node": "18.11.9", diff --git a/src/index.ts b/src/index.ts index 09d332d..801b027 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,3 +24,8 @@ export const schema = _schema as unknown as JoiRoot; export * from "./types"; export * from "./middlewares"; export * from "./hooks"; + +export { + throwOnUnexpectedApiResponse, + UnexpectedApiResponseError +} from "@egomobile/api-utils";