koatty_container
Advanced tools
Comparing version 1.8.9 to 1.8.10
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.8.10](https://github.com/koatty/koatty_container/compare/v1.8.9...v1.8.10) (2023-12-11) | ||
### Bug Fixes | ||
* 多版本检测 ([b63de6b](https://github.com/koatty/koatty_container/commit/b63de6b9f14feac260dafaaa8393bd879a480472)) | ||
### [1.8.9](https://github.com/koatty/koatty_container/compare/v1.8.8...v1.8.9) (2023-12-10) | ||
@@ -7,0 +14,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2023-12-10 12:02:21 | ||
* @Date: 2023-12-11 16:56:49 | ||
* @License: BSD (3-Clause) | ||
@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
/*! | ||
* @Author: richen | ||
* @Date: 2023-12-10 12:02:15 | ||
* @Date: 2023-12-11 16:56:35 | ||
* @License: BSD (3-Clause) | ||
@@ -1057,3 +1057,9 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
// export Singleton | ||
const IOCContainer = Container.getInstance(); | ||
const IOCContainer = (function () { | ||
if (!helper__namespace.isTrueEmpty(process.env.KOATTY_CONTAINER)) { | ||
throw Error("There are two different versions of the koatty_container module that are conflicting."); | ||
} | ||
process.env.KOATTY_CONTAINER = "true"; | ||
return Container.getInstance(); | ||
})(); | ||
@@ -1060,0 +1066,0 @@ exports.After = After; |
{ | ||
"name": "koatty_container", | ||
"version": "1.8.9", | ||
"version": "1.8.10", | ||
"description": "IOC Container for Koatty.", | ||
@@ -12,3 +12,3 @@ "scripts": { | ||
"eslint": "eslint --ext .ts,.js ./", | ||
"lock": "del-cli --force node_modules && npm i --package-lock-only && pnpm i", | ||
"lock": "npm i --package-lock-only", | ||
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin", | ||
@@ -80,9 +80,11 @@ "prerelease": "npm test && npm run build", | ||
"koatty_logger": "^2.x.x", | ||
"reflect-metadata": "^0.1.14", | ||
"tslib": "^2.6.2" | ||
"reflect-metadata": "^0.x.x", | ||
"tslib": "^2.x.x" | ||
}, | ||
"peerDependencies": { | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "^2.x.x" | ||
"koatty_logger": "^2.x.x", | ||
"reflect-metadata": "^0.x.x", | ||
"tslib": "^2.x.x" | ||
} | ||
} |
{ | ||
"name": "koatty_container", | ||
"version": "1.8.9", | ||
"version": "1.8.10", | ||
"description": "IOC Container for Koatty.", | ||
@@ -12,3 +12,3 @@ "scripts": { | ||
"eslint": "eslint --ext .ts,.js ./", | ||
"lock": "del-cli --force node_modules && npm i --package-lock-only && pnpm i", | ||
"lock": "npm i --package-lock-only", | ||
"prepublishOnly": "npm test && npm run build && git push --follow-tags origin", | ||
@@ -80,9 +80,11 @@ "prerelease": "npm test && npm run build", | ||
"koatty_logger": "^2.x.x", | ||
"reflect-metadata": "^0.1.14", | ||
"tslib": "^2.6.2" | ||
"reflect-metadata": "^0.x.x", | ||
"tslib": "^2.x.x" | ||
}, | ||
"peerDependencies": { | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "^2.x.x" | ||
"koatty_logger": "^2.x.x", | ||
"reflect-metadata": "^0.x.x", | ||
"tslib": "^2.x.x" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126560
2606
8
4
+ Addedreflect-metadata@0.2.2(transitive)
- Removedreflect-metadata@0.1.14(transitive)
Updatedreflect-metadata@^0.x.x
Updatedtslib@^2.x.x