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

feature-toggles

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feature-toggles - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

index.js

@@ -11,3 +11,3 @@ var featureToggles = {

try {
var toggleArguments = slice.call(arguments, 1);
var toggleArguments = Array.prototype.slice.call(arguments, 1);
toggle = toggle.apply(this, toggleArguments);

@@ -14,0 +14,0 @@ }

@@ -153,2 +153,14 @@ var featureToggles = require('./index.js');

describe('which has a function with arguments as value which returns true', function() {
beforeEach(function() {
featureToggles.load({foo: function(a) { var b = 'bar'; return a === b; }})
});
it('should return true', function() {
expect(featureToggles.isFeatureEnabled('foo', 'bar')).toBeTruthy();
});
});
});

@@ -172,2 +184,2 @@

});
});
{
"name": "feature-toggles",
"version": "1.3.0",
"version": "1.4.0",
"description": "Feature Toggles for JavaScript",

@@ -10,5 +10,5 @@ "main": "index.js",

"devDependencies": {
"grunt": "0.4.1",
"jasmine-node": "1.7.0"
"grunt": "0.4.5",
"jasmine-node": "1.14.5"
}
}
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