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

lodash-contrib

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-contrib - npm Package Compare versions

Comparing version 241.4.6 to 241.4.7

7

index.js
var fs = require('fs');
var vm = require('vm');
var path = require('path');
var _ = require('lodash').runInContext();
var isAddOnRegEx = _.bindAll(/^_\..+/, 'test');
var context = vm.createContext({_:_});
var context = vm.createContext({_: _});
var rightCurryVm = _.partialRight(vm.runInNewContext, context);
function simpleReadFile(filename) { return fs.readFileSync(filename); }
function simpleReadFile(filename) {
return fs.readFileSync(path.join(__dirname, filename));
}
_(fs.readdirSync(__dirname)).filter(isAddOnRegEx.test).map(simpleReadFile).each(function (code) {

@@ -10,0 +13,0 @@ rightCurryVm(code);

{
"name": "lodash-contrib",
"description": "The brass buckles on lodash's utility belt",
"version": "241.4.6",
"version": "241.4.7",
"main": "index.js",

@@ -6,0 +6,0 @@ "dependencies": {

@@ -44,4 +44,3 @@

var obj = {'foo&bar': 'baz', 'test': 'total success', 'nested': {'works': 'too'}, 'isn\'t': ['that', 'cool?']};
equal(_.toQuery(obj), 'foo%26bar=baz&test=total+success&nested%5Bworks%5D=too&isn\'t%5B%5D=that&isn\'t%5B%5D=cool%3F', 'can convert a hash to a query string');
equal(_.toQuery(obj), jQuery.param(obj), 'query serialization matchs jQuery.param()');
equal(_.toQuery(obj), 'foo%26bar=baz&test=total%20success&nested%5Bworks%5D=too&isn\'t%5B%5D=that&isn\'t%5B%5D=cool%3F', 'can convert a hash to a query string');
});

@@ -48,0 +47,0 @@

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