node-iso11649
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "node-iso11649", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "ISO 11649:2009 creditor reference library for node", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"typings": "dist/types.d.ts", | ||
"author": "Niko Ruotsalainen", | ||
@@ -25,26 +26,20 @@ "license": "MIT", | ||
"test": "BABEL_ENV=test babel-tape-runner test/*.js | faucet", | ||
"prepublishOnly": "npm run build", | ||
"lint": "eslint src/*.js test/*.js", | ||
"release": "npm version patch -m 'Release version %s'", | ||
"prepublishOnly": "npm run build && git add -f ./dist/index.js", | ||
"lint": "standard src/*.js test/*.js", | ||
"preversion": "npm config set tag-version-prefix ''", | ||
"version": "npm publish", | ||
"postversion": "git push --tags" | ||
"postversion": "git push --tags && git push" | ||
}, | ||
"devDependencies": { | ||
"ajv": "6.2.0", | ||
"ajv": "6.5.2", | ||
"babel-cli": "6.26.0", | ||
"babel-eslint": "8.2.2", | ||
"babel-plugin-external-helpers": "6.22.0", | ||
"babel-preset-env": "1.6.1", | ||
"babel-tape-runner": "2.0.1", | ||
"eslint": "4.18.1", | ||
"eslint-config-airbnb": "16.1.0", | ||
"eslint-plugin-import": "2.9.0", | ||
"eslint-plugin-jsx-a11y": "6.0.3", | ||
"eslint-plugin-react": "7.7.0", | ||
"faucet": "0.0.1", | ||
"rollup": "0.56.3", | ||
"rollup-plugin-babel": "3.0.3", | ||
"tape": "4.9.0" | ||
"rollup": "0.64.1", | ||
"rollup-plugin-babel": "3.0.7", | ||
"standard": "11.0.1", | ||
"tape": "4.9.1" | ||
} | ||
} |
@@ -11,3 +11,3 @@ node-iso11649 | ||
npm install node-iso11649 --save | ||
npm install node-iso11649 --save | ||
@@ -67,19 +67,3 @@ ## Usage | ||
npm test | ||
## Release | ||
npm run release | ||
## Release History | ||
* 1.1.1 | ||
- Bundle lib using rollup | ||
* 1.1.0 | ||
- Update dependencies | ||
- Refactor code for easier maintenance | ||
* 1.0.1 | ||
- Handle number references as string | ||
- Update README | ||
* 1.0.0 | ||
- Initial release | ||
npm run lint | ||
npm test |
@@ -6,3 +6,3 @@ import babel from 'rollup-plugin-babel' | ||
output: { | ||
file: 'index.js', | ||
file: 'dist/index.js', | ||
format: 'cjs' | ||
@@ -9,0 +9,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable */ | ||
/* eslint-disable object-property-newline */ | ||
const charTable = { | ||
@@ -8,3 +8,3 @@ A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, G: 16, | ||
} | ||
/* eslint-enable */ | ||
/* eslint-disable object-property-newline */ | ||
@@ -11,0 +11,0 @@ export const normalizeReference = reference => |
@@ -18,5 +18,5 @@ import {normalizeReference, modulo97, substituteCharWithNumber} from './common' | ||
const normalizedRef = normalizeReference(reference) | ||
return normalizedRef.length <= 25 | ||
&& isValidFormat(normalizedRef) | ||
&& isValidChecksum(normalizedRef) | ||
return normalizedRef.length <= 25 && | ||
isValidFormat(normalizedRef) && | ||
isValidChecksum(normalizedRef) | ||
} |
Sorry, the diff of this file is not supported yet
13797
10
16
213
68