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

node-iso11649

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-iso11649 - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

3

CHANGELOG.md
# Changelog
This project uses [Semantic Versioning](http://semver.org/)
## 2.1.2 (2020-01-10)
- [Fix modulo calculation](https://github.com/nruotsal/node-iso11649/pull/180) by [Tol1](https://github.com/Tol1)
## 2.1.1 (2020-28-04)

@@ -5,0 +8,0 @@ - [Fix types](https://github.com/nruotsal/node-iso11649/pull/170) by [davidknezic](https://github.com/davidknezic)

@@ -21,3 +21,3 @@ 'use strict';

return chunks !== null
? chunks.map(Number).reduce(function (prev, curr) { return parseInt("" + prev + curr) % 97; }, 0)
? chunks.reduce(function (prev, curr) { return parseInt("" + prev + curr) % 97; }, 0)
: -1;

@@ -35,5 +35,10 @@ };

};
var isValidChecksumRange = function (reference) {
var checkSum = Number(reference.substr(2, 2));
return checkSum >= 2 && checkSum <= 98;
};
var isValid = function (reference) {
return reference.length <= 25 &&
isValidFormat(reference) &&
isValidChecksumRange(reference) &&
isValidChecksum(reference);

@@ -40,0 +45,0 @@ };

20

package.json
{
"name": "node-iso11649",
"version": "2.1.1",
"version": "2.1.2",
"description": "ISO 11649:2009 creditor reference library for node",

@@ -38,6 +38,6 @@ "main": "dist/index.js",

"@types/tape": "4.13.0",
"@typescript-eslint/eslint-plugin": "2.30.0",
"eslint": "6.8.0",
"eslint-config-standard-with-typescript": "16.0.0",
"eslint-plugin-import": "2.20.2",
"@typescript-eslint/eslint-plugin": "4.3.0",
"eslint": "7.10.0",
"eslint-config-standard-with-typescript": "19.0.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",

@@ -48,9 +48,9 @@ "eslint-plugin-promise": "4.2.1",

"faucet": "0.0.1",
"rollup": "2.7.3",
"rollup": "2.28.2",
"rollup-plugin-typescript": "1.0.1",
"tape": "5.0.0",
"ts-node": "8.9.1",
"tslib": "1.11.1",
"typescript": "3.8.3"
"tape": "5.0.1",
"ts-node": "9.0.0",
"tslib": "2.0.1",
"typescript": "4.0.3"
}
}

@@ -5,3 +5,3 @@ node-iso11649

[![CircleCI](https://circleci.com/gh/nruotsal/node-iso11649/tree/master.svg?style=svg)](https://circleci.com/gh/nruotsal/node-iso11649/tree/master)
[![Greenkeeper badge](https://badges.greenkeeper.io/nruotsal/node-iso11649.svg)](https://greenkeeper.io/)
[![Known Vulnerabilities](https://snyk.io/test/github/nruotsal/node-iso11649/badge.svg)](https://snyk.io/test/github/nruotsal/node-iso11649)

@@ -8,0 +8,0 @@ ISO 11649:2009 RF creditor reference library for node

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