From cd5aa0ebdd17f865df684f4ab6427046a473b995 Mon Sep 17 00:00:00 2001 From: Jake Son Date: Sat, 13 May 2023 16:32:16 +0900 Subject: [PATCH] chore: add circuit breaker package Co-authored-by: imdudu1 --- package.json | 4 ++++ pnpm-lock.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/package.json b/package.json index ce5c833..b6c66ec 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,15 @@ "prepare": "husky install", "release": "release-it" }, + "dependencies": { + "opossum": "^7.1.0" + }, "devDependencies": { "@nestjs/common": "^9.4.0", "@nestjs/core": "^9.4.0", "@nestjs/platform-express": "^9.4.0", "@nestjs/testing": "^9.4.0", + "@types/opossum": "^6.2.3", "@vitest/coverage-c8": "^0.30.1", "class-transformer": "^0.5.1", "eslint": "^8.37.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 41a76d2..3bbf11e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,10 @@ lockfileVersion: '6.0' +dependencies: + opossum: + specifier: ^7.1.0 + version: 7.1.0 + devDependencies: '@nestjs/common': specifier: ^9.4.0 @@ -13,6 +18,9 @@ devDependencies: '@nestjs/testing': specifier: ^9.4.0 version: 9.4.0(@nestjs/common@9.4.0)(@nestjs/core@9.4.0)(@nestjs/platform-express@9.4.0) + '@types/opossum': + specifier: ^6.2.3 + version: 6.2.3 '@vitest/coverage-c8': specifier: ^0.30.1 version: 0.30.1(vitest@0.30.1) @@ -842,6 +850,12 @@ packages: resolution: {integrity: sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==} dev: true + /@types/opossum@6.2.3: + resolution: {integrity: sha512-KcbU4O7GydLbRLZbKRdFikNHHAsQESYIPlA6HEm+CCaZfEk+/NTGlvY8g5t8pg/ks3U80oEf8a21lUAjW311Og==} + dependencies: + '@types/node': 18.15.11 + dev: true + /@types/semver@7.3.13: resolution: {integrity: sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==} dev: true @@ -4093,6 +4107,11 @@ packages: is-wsl: 2.2.0 dev: true + /opossum@7.1.0: + resolution: {integrity: sha512-u3KZa2JTVsewFILe2NIebLMii/zzszTTBxRnM9USxVNcq2R2me40uP38/B39GueeOABXgWGtClPZPg4NAwHU4g==} + engines: {node: ^19 || ^18 || ^16 || ^14} + dev: false + /optionator@0.8.3: resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} engines: {node: '>= 0.8.0'}