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

baseliner

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baseliner - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.babelrc

15

package.json
{
"name": "baseliner",
"version": "1.0.0",
"version": "1.0.1",
"description": "compare objects with ease",
"main": "build/bundle.js",
"main": "build/index.js",
"scripts": {
"build": "rollup --config",
"build": "babel src -d build",
"test": "jest",

@@ -13,5 +13,10 @@ "test:watch": "npm test -- --watch",

"author": "PJ Trainor",
"repository": {
"type": "git",
"url": "https://github.com/trainorpj/baseliner"
},
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^21.2.0",
"babel-plugin-external-helpers": "^6.22.0",

@@ -24,5 +29,3 @@ "babel-preset-env": "^1.6.1",

},
"dependencies": {
"lodash.curry": "^4.1.1"
}
"dependencies": {}
}

4

src/index.js

@@ -1,3 +0,1 @@

import curry from "lodash.curry";
const compareToBaseline = (baseline, otherObject, field, compareFcn) => {

@@ -7,2 +5,2 @@ return compareFcn(baseline[(field, otherObject[field])]);

export default curry(compareToBaseline);
export default compareToBaseline;

@@ -9,3 +9,2 @@ import baseliner from "../src";

expect(baseliner(left, right, "a", fcn)).toEqual(true);
expect(baseliner(left)(right)("a")(fcn)).toEqual(true);
});
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