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

cos-similarity

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

cos-similarity - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

dist/index.cjs

57

package.json
{
"name": "cos-similarity",
"version": "1.0.1",
"version": "1.1.0",
"description": "Computes the cosine similarity between two vectors",

@@ -25,3 +25,3 @@ "keywords": [

],
"main": "dist/index.js",
"main": "dist/index.cjs",
"repository": {

@@ -33,6 +33,6 @@ "type": "git",

"bench": "node bench.js",
"build": "rollup -i index.js -o dist/index.js -f cjs",
"build": "rollup -i index.js -o dist/index.cjs -f cjs --exports auto",
"lint": "eslint .",
"prepare": "npm run build",
"test": "nyc --reporter html tape -r esm index.test.js && nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"prepare": "husky install && npm run build",
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
"posttest": "npm run lint"

@@ -44,38 +44,17 @@ },

"cosine-similarity": "1.0.1",
"doc-similarity": "0.0.1",
"eslint": "7.0.0",
"eslint-config-pretty-strict": "6.0.0",
"eslint-plugin-prettier": "3.1.3",
"esm": "3.2.25",
"husky": "4.2.5",
"nyc": "15.0.1",
"prettier": "2.0.5",
"rollup": "2.10.0",
"tape": "5.0.0"
"eslint": "7.32.0",
"eslint-config-pretty-strict": "8.0.2",
"eslint-plugin-jest": "24.4.0",
"eslint-plugin-prettier": "3.4.0",
"husky": "7.0.1",
"jest": "27.0.6",
"prettier": "2.3.2",
"rollup": "2.56.2",
"tiny-tfidf": "0.9.1"
},
"eslintConfig": {
"env": {
"node": true
},
"extends": [
"./node_modules/eslint-config-pretty-strict/index.js"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"root": true
},
"eslintIgnore": [
"coverage",
"dist"
],
"esm": {
"sourceMap": true
},
"husky": {
"hooks": {
"pre-commit": "npm test"
}
"type": "module",
"exports": {
"import": "./index.js",
"default": "./dist/index.cjs"
}
}
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