@js-bits/enumerate
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -26,3 +26,3 @@ /* eslint-disable import/no-duplicates */ | ||
*/ | ||
export const isEnum: (value: unknown) => boolean; | ||
export const isEnum: (value?: unknown) => boolean; | ||
@@ -50,2 +50,2 @@ /** | ||
export default Enumerate; | ||
export = Enumerate; |
{ | ||
"name": "@js-bits/enumerate", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "Easy to use, Symbol-based enum implementation", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"lint": "tsc --noEmit && eslint '**/*.{js,jsx,ts,tsx}'", | ||
"build": "rimraf ./dist && rollup ./index.js --format cjs --file dist/index.cjs --exports default", | ||
"build": "rimraf ./dist && rollup ./index.js --format cjs --file dist/index.cjs --exports default --no-strict --generatedCode.constBindings", | ||
"prepare": "husky install" | ||
@@ -52,3 +52,3 @@ }, | ||
"@js-bits/log-in-color": "^1.0.2", | ||
"@js-bits/typedef-utils": "^1.0.6" | ||
"@js-bits/typedef-utils": "^1.0.7" | ||
}, | ||
@@ -55,0 +55,0 @@ "devDependencies": { |
@@ -10,2 +10,5 @@ { | ||
"noImplicitAny": true, | ||
"noImplicitThis": true, | ||
"strictNullChecks": true, | ||
"strictFunctionTypes": true, | ||
"types": ["jest"], | ||
@@ -12,0 +15,0 @@ "typeRoots": ["./node_modules/@types"], |
@@ -240,3 +240,3 @@ import enumerate from '../index.js'; | ||
const Enum = enumerate.ts('A B C D', Increment()); | ||
expect({ ...Enum }).toEqual({ | ||
expect(JSON.parse(JSON.stringify(Enum))).toEqual({ | ||
A: 1, | ||
@@ -243,0 +243,0 @@ B: 2, |
@@ -48,2 +48,2 @@ /* eslint-disable import/no-duplicates */ | ||
export default Enumerate; | ||
export = Enumerate; |
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
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
455614
2613