Comparing version 1.0.1 to 1.0.2
@@ -8,2 +8,11 @@ `master` | ||
`1.0.2` | ||
=== | ||
## Other changes | ||
- Fixed README to have correct examples (again). | ||
-------------------------------------------------------------------------------- | ||
`1.0.1` | ||
@@ -10,0 +19,0 @@ === |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
{ | ||
"name": "gtin", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "GTIN (UPC, EAN, ITF, etc.) utilities.", | ||
@@ -52,13 +52,13 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@types/jest": "^26.0.7", | ||
"@typescript-eslint/eslint-plugin": "^3.7.1", | ||
"@typescript-eslint/parser": "^3.7.1", | ||
"babel-jest": "^26.1.0", | ||
"@babel/core": "^7.13.14", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@types/jest": "^26.0.22", | ||
"@typescript-eslint/eslint-plugin": "^4.20.0", | ||
"@typescript-eslint/parser": "^4.20.0", | ||
"babel-jest": "^26.6.3", | ||
"coveralls": "^3.1.0", | ||
"jest": "^26.1.0", | ||
"standardx": "^5.0.0", | ||
"ts-jest": "^26.1.4", | ||
"typescript": "^3.9.7" | ||
"jest": "^26.6.3", | ||
"standardx": "^7.0.0", | ||
"ts-jest": "^26.5.4", | ||
"typescript": "^4.2.3" | ||
}, | ||
@@ -74,2 +74,2 @@ "standardx": { | ||
} | ||
} | ||
} |
@@ -114,10 +114,10 @@ gtin | ||
```js | ||
import { getFormat } from 'gtin' | ||
import { getRealFormat } from 'gtin' | ||
getFormat('1234123412344') // 'GTIN-13' | ||
getFormat('01234123412344') // 'GTIN-13' | ||
getFormat('123412381') // Error thrown | ||
getFormat('abc') // Error thrown | ||
getFormat(123) // Error thrown | ||
getFormat('123') // Error thrown | ||
getRealFormat('1234123412344') // 'GTIN-13' | ||
getRealFormat('01234123412344') // 'GTIN-13' | ||
getRealFormat('123412381') // Error thrown | ||
getRealFormat('abc') // Error thrown | ||
getRealFormat(123) // Error thrown | ||
getRealFormat('123') // Error thrown | ||
``` | ||
@@ -124,0 +124,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15733