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

allege

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allege - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "allege",
"version": "1.0.1",
"version": "1.0.2",
"description": "Make complex conditionals easier to read and write",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -10,11 +10,5 @@ # Allege

```js
if (
foo.bar === 'value_a' ||
foo.bar === 'value_b' ||
foo.bar === 'value_c' ||
foo.bar === 'value_d' ||
foo.bar === 'value_e'
) {
// do something
}
if (foo.bar === 'value_a' ||foo.bar === 'value_b' ||foo.bar === 'value_c' ||foo.bar === 'value_d' ||foo.bar === 'value_e') {
// do something
}
```

@@ -25,13 +19,13 @@

```js
if (
allege(foo.bar).isAnyOf(
'value_a',
'value_b',
'value_c',
'value_d',
'value_e'
)
) {
// do something
}
if (
allege(foo.bar).isAnyOf(
'value_a',
'value_b',
'value_c',
'value_d',
'value_e'
)
) {
// do something
}
```

@@ -38,0 +32,0 @@

Sorry, the diff of this file is not supported yet

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