New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

data-matching

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-matching - npm Package Compare versions

Comparing version 1.35.0 to 1.35.1

2

package.json
{
"name": "data-matching",
"version": "1.35.0",
"version": "1.35.1",
"description": "Matches a data object against a reference value Edit",

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

@@ -285,3 +285,3 @@ const _ = require("lodash");

return true;
} else if (!Array.isArray(myVariable)) {
} else if (!Array.isArray(dict[var_name])) {
var reason = `'${var_name}' is not an Array`;

@@ -288,0 +288,0 @@ if (throw_maching_error) throw new MatchingError(path, reason);

@@ -917,4 +917,20 @@ const dm = require("../src/index");

expect(dict).toEqual({ids: [10]});
var received2 = {
name: 'bob',
id: 20,
};
res = dm.partial_match(expected)(
received2,
dict,
!THROW_MATCHING_ERROR,
"root",
);
expect(res).toEqual("object matched");
expect(dict).toEqual({ids: [10, 20]});
});
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