Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@js-bits/enumerate

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-bits/enumerate - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

4

index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc