@inversifyjs/common
Advanced tools
Comparing version 1.2.0 to 1.2.1
# @inversifyjs/common | ||
## 1.2.1 | ||
### Patch Changes | ||
- cb8882f: Updated LazyServiceIdentifier.is to support nullish values | ||
## 1.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -13,3 +13,5 @@ "use strict"; | ||
static is(value) { | ||
return (value[exports.islazyServiceIdentifierSymbol] === true); | ||
return (typeof value === 'object' && | ||
value !== null && | ||
value[exports.islazyServiceIdentifierSymbol] === true); | ||
} | ||
@@ -16,0 +18,0 @@ unwrap() { |
@@ -10,3 +10,5 @@ export const islazyServiceIdentifierSymbol = Symbol.for('@inversifyjs/common/islazyServiceIdentifier'); | ||
static is(value) { | ||
return (value[islazyServiceIdentifierSymbol] === true); | ||
return (typeof value === 'object' && | ||
value !== null && | ||
value[islazyServiceIdentifierSymbol] === true); | ||
} | ||
@@ -13,0 +15,0 @@ unwrap() { |
@@ -8,3 +8,3 @@ { | ||
"devDependencies": { | ||
"@eslint/js": "9.13.0", | ||
"@eslint/js": "9.14.0", | ||
"@jest/globals": "29.7.0", | ||
@@ -14,5 +14,6 @@ "@stryker-mutator/core": "8.6.0", | ||
"@stryker-mutator/typescript-checker": "8.6.0", | ||
"@types/node": "20.17.3", | ||
"@types/node": "20.17.5", | ||
"@typescript-eslint/eslint-plugin": "8.12.2", | ||
"@typescript-eslint/parser": "8.12.2", | ||
"eslint": "9.14.0", | ||
"jest": "29.7.0", | ||
@@ -62,3 +63,3 @@ "prettier": "3.3.3", | ||
"sideEffects": false, | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"scripts": { | ||
@@ -65,0 +66,0 @@ "build": "pnpm run build:cjs && pnpm run build:esm", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15241
85
15