isbn3 1.1.37 → 1.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/groups.js CHANGED
@@ -295,6 +295,14 @@ module.exports = {
295
295
  ],
296
296
  [
297
297
  '497',
298
+ '527'
299
+ ],
300
+ [
301
+ '5280',
302
+ '5299'
303
+ ],
304
+ [
305
+ '530',
298
306
  '699'
299
307
  ],
300
308
  [
@@ -3341,6 +3349,19 @@ module.exports = {
3341
3349
  ]
3342
3350
  ]
3343
3351
  },
3352
+ '978-9910': {
3353
+ name: 'Uzbekistan',
3354
+ ranges: [
3355
+ [
3356
+ '730',
3357
+ '749'
3358
+ ],
3359
+ [
3360
+ '9650',
3361
+ '9999'
3362
+ ]
3363
+ ]
3364
+ },
3344
3365
  '978-9911': {
3345
3366
  name: 'Montenegro',
3346
3367
  ranges: [
@@ -3442,7 +3463,15 @@ module.exports = {
3442
3463
  '799'
3443
3464
  ],
3444
3465
  [
3445
- '9500',
3466
+ '80',
3467
+ '84'
3468
+ ],
3469
+ [
3470
+ '850',
3471
+ '899'
3472
+ ],
3473
+ [
3474
+ '9250',
3446
3475
  '9999'
3447
3476
  ]
3448
3477
  ]
package/lib/parse.js CHANGED
@@ -2,6 +2,7 @@ const fill = require('./fill')
2
2
  const splitIsbnParts = require('./split_isbn_parts')
3
3
 
4
4
  module.exports = value => {
5
+ if (value == null) return null
5
6
  value = value.toString()
6
7
  const source = value
7
8
  if (!value) return null
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "isbn3",
3
3
  "description": "ISBN utils: parse, validate, format, audit",
4
- "version": "1.1.37",
4
+ "version": "1.1.39",
5
5
  "authors": [
6
6
  "Hetappi <hetappi.pm@gmail.com>",
7
7
  "Tadas S. <tadas@yoyo.lt>",
package/CHANGELOG.md DELETED
@@ -1,24 +0,0 @@
1
- # CHANGELOG
2
- *versions follow [SemVer](http://semver.org)*
3
-
4
- ## 1.1.0- 2020-04-24
5
- * Add [`audit`](https://github.com/inventaire/isbn3#audit) function and corresponding [`isbn-audit`](https://github.com/inventaire/isbn3#isbn-audit) CLI command
6
- * Add [`isbn-checksum`](https://github.com/inventaire/isbn3#isbn-checksum) CLI command
7
- * Add dist files `./dist/isbn.js` and `./dist/isbn.min.js`, both being browserified ES5 versions of the module
8
-
9
- ## 1.0.0 - 2019-10-07
10
- Fork from [isbn2](https://www.npmjs.com/package/isbn2)
11
-
12
- **BREAKING CHANGES**
13
- * accept approximately formatted ISBNs such as '978-4873113364' that would previously have return a `null` result
14
- * functions are now directly exposed on the module object:
15
- ```js
16
- require('isbn2').ISBN.parse('1933988037').codes.isbn13h // => '978-1-933988-03-0'
17
- // becomes
18
- require('isbn3').parse('1933988037').isbn13h // => '978-1-933988-03-0'
19
- ```
20
-
21
- ** Added features**
22
- * added a [command-line interface](https://github.com/inventaire/isbn3#CLI)
23
- * [expose groups data on the module object](https://github.com/inventaire/isbn3#groups)
24
- * recover common hyphenization mistake `979-1091146135`