isbn3 1.1.33 → 1.1.35
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/CHANGELOG.md +24 -0
- package/lib/groups.js +82 -24
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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`
|
package/lib/groups.js
CHANGED
|
@@ -667,7 +667,23 @@ module.exports = {
|
|
|
667
667
|
ranges: [
|
|
668
668
|
[
|
|
669
669
|
'0',
|
|
670
|
-
'
|
|
670
|
+
'2'
|
|
671
|
+
],
|
|
672
|
+
[
|
|
673
|
+
'300',
|
|
674
|
+
'399'
|
|
675
|
+
],
|
|
676
|
+
[
|
|
677
|
+
'40',
|
|
678
|
+
'46'
|
|
679
|
+
],
|
|
680
|
+
[
|
|
681
|
+
'470',
|
|
682
|
+
'497'
|
|
683
|
+
],
|
|
684
|
+
[
|
|
685
|
+
'4980',
|
|
686
|
+
'4999'
|
|
671
687
|
],
|
|
672
688
|
[
|
|
673
689
|
'50',
|
|
@@ -1296,7 +1312,7 @@ module.exports = {
|
|
|
1296
1312
|
'902449'
|
|
1297
1313
|
],
|
|
1298
1314
|
[
|
|
1299
|
-
'
|
|
1315
|
+
'980000',
|
|
1300
1316
|
'999999'
|
|
1301
1317
|
]
|
|
1302
1318
|
]
|
|
@@ -1335,6 +1351,14 @@ module.exports = {
|
|
|
1335
1351
|
],
|
|
1336
1352
|
[
|
|
1337
1353
|
'200',
|
|
1354
|
+
'529'
|
|
1355
|
+
],
|
|
1356
|
+
[
|
|
1357
|
+
'53000',
|
|
1358
|
+
'54999'
|
|
1359
|
+
],
|
|
1360
|
+
[
|
|
1361
|
+
'550',
|
|
1338
1362
|
'689'
|
|
1339
1363
|
],
|
|
1340
1364
|
[
|
|
@@ -2922,10 +2946,10 @@ module.exports = {
|
|
|
2922
2946
|
],
|
|
2923
2947
|
[
|
|
2924
2948
|
'30000',
|
|
2925
|
-
'
|
|
2949
|
+
'77999'
|
|
2926
2950
|
],
|
|
2927
2951
|
[
|
|
2928
|
-
'
|
|
2952
|
+
'780',
|
|
2929
2953
|
'799'
|
|
2930
2954
|
],
|
|
2931
2955
|
[
|
|
@@ -3256,14 +3280,10 @@ module.exports = {
|
|
|
3256
3280
|
],
|
|
3257
3281
|
[
|
|
3258
3282
|
'200',
|
|
3259
|
-
'
|
|
3260
|
-
],
|
|
3261
|
-
[
|
|
3262
|
-
'74000',
|
|
3263
|
-
'76999'
|
|
3283
|
+
'699'
|
|
3264
3284
|
],
|
|
3265
3285
|
[
|
|
3266
|
-
'
|
|
3286
|
+
'70000',
|
|
3267
3287
|
'79999'
|
|
3268
3288
|
],
|
|
3269
3289
|
[
|
|
@@ -3348,14 +3368,14 @@ module.exports = {
|
|
|
3348
3368
|
ranges: [
|
|
3349
3369
|
[
|
|
3350
3370
|
'00',
|
|
3351
|
-
'
|
|
3371
|
+
'07'
|
|
3352
3372
|
],
|
|
3353
3373
|
[
|
|
3354
3374
|
'600',
|
|
3355
|
-
'
|
|
3375
|
+
'699'
|
|
3356
3376
|
],
|
|
3357
3377
|
[
|
|
3358
|
-
'
|
|
3378
|
+
'9550',
|
|
3359
3379
|
'9999'
|
|
3360
3380
|
]
|
|
3361
3381
|
]
|
|
@@ -3365,11 +3385,11 @@ module.exports = {
|
|
|
3365
3385
|
ranges: [
|
|
3366
3386
|
[
|
|
3367
3387
|
'40',
|
|
3368
|
-
'
|
|
3388
|
+
'52'
|
|
3369
3389
|
],
|
|
3370
3390
|
[
|
|
3371
3391
|
'700',
|
|
3372
|
-
'
|
|
3392
|
+
'774'
|
|
3373
3393
|
],
|
|
3374
3394
|
[
|
|
3375
3395
|
'9600',
|
|
@@ -3411,7 +3431,7 @@ module.exports = {
|
|
|
3411
3431
|
],
|
|
3412
3432
|
[
|
|
3413
3433
|
'600',
|
|
3414
|
-
'
|
|
3434
|
+
'799'
|
|
3415
3435
|
],
|
|
3416
3436
|
[
|
|
3417
3437
|
'9500',
|
|
@@ -3477,7 +3497,7 @@ module.exports = {
|
|
|
3477
3497
|
'599'
|
|
3478
3498
|
],
|
|
3479
3499
|
[
|
|
3480
|
-
'
|
|
3500
|
+
'9000',
|
|
3481
3501
|
'9999'
|
|
3482
3502
|
]
|
|
3483
3503
|
]
|
|
@@ -3553,7 +3573,7 @@ module.exports = {
|
|
|
3553
3573
|
'899'
|
|
3554
3574
|
],
|
|
3555
3575
|
[
|
|
3556
|
-
'
|
|
3576
|
+
'9400',
|
|
3557
3577
|
'9999'
|
|
3558
3578
|
]
|
|
3559
3579
|
]
|
|
@@ -4182,15 +4202,19 @@ module.exports = {
|
|
|
4182
4202
|
ranges: [
|
|
4183
4203
|
[
|
|
4184
4204
|
'00',
|
|
4185
|
-
'
|
|
4205
|
+
'38'
|
|
4186
4206
|
],
|
|
4187
4207
|
[
|
|
4188
|
-
'
|
|
4208
|
+
'390',
|
|
4189
4209
|
'849'
|
|
4190
4210
|
],
|
|
4191
4211
|
[
|
|
4192
4212
|
'8500',
|
|
4193
|
-
'
|
|
4213
|
+
'9799'
|
|
4214
|
+
],
|
|
4215
|
+
[
|
|
4216
|
+
'980',
|
|
4217
|
+
'999'
|
|
4194
4218
|
]
|
|
4195
4219
|
]
|
|
4196
4220
|
},
|
|
@@ -6588,10 +6612,10 @@ module.exports = {
|
|
|
6588
6612
|
ranges: [
|
|
6589
6613
|
[
|
|
6590
6614
|
'0',
|
|
6591
|
-
'
|
|
6615
|
+
'3'
|
|
6592
6616
|
],
|
|
6593
6617
|
[
|
|
6594
|
-
'
|
|
6618
|
+
'40',
|
|
6595
6619
|
'79'
|
|
6596
6620
|
],
|
|
6597
6621
|
[
|
|
@@ -6668,6 +6692,23 @@ module.exports = {
|
|
|
6668
6692
|
]
|
|
6669
6693
|
]
|
|
6670
6694
|
},
|
|
6695
|
+
'978-99984': {
|
|
6696
|
+
name: 'Brunei Darussalam',
|
|
6697
|
+
ranges: [
|
|
6698
|
+
[
|
|
6699
|
+
'0',
|
|
6700
|
+
'0'
|
|
6701
|
+
],
|
|
6702
|
+
[
|
|
6703
|
+
'50',
|
|
6704
|
+
'69'
|
|
6705
|
+
],
|
|
6706
|
+
[
|
|
6707
|
+
'950',
|
|
6708
|
+
'999'
|
|
6709
|
+
]
|
|
6710
|
+
]
|
|
6711
|
+
},
|
|
6671
6712
|
'978-99985': {
|
|
6672
6713
|
name: 'Tajikistan',
|
|
6673
6714
|
ranges: [
|
|
@@ -6706,7 +6747,7 @@ module.exports = {
|
|
|
6706
6747
|
name: 'Luxembourg',
|
|
6707
6748
|
ranges: [
|
|
6708
6749
|
[
|
|
6709
|
-
'
|
|
6750
|
+
'700',
|
|
6710
6751
|
'999'
|
|
6711
6752
|
]
|
|
6712
6753
|
]
|
|
@@ -6762,6 +6803,23 @@ module.exports = {
|
|
|
6762
6803
|
]
|
|
6763
6804
|
]
|
|
6764
6805
|
},
|
|
6806
|
+
'978-99992': {
|
|
6807
|
+
name: 'Oman',
|
|
6808
|
+
ranges: [
|
|
6809
|
+
[
|
|
6810
|
+
'0',
|
|
6811
|
+
'1'
|
|
6812
|
+
],
|
|
6813
|
+
[
|
|
6814
|
+
'50',
|
|
6815
|
+
'64'
|
|
6816
|
+
],
|
|
6817
|
+
[
|
|
6818
|
+
'950',
|
|
6819
|
+
'999'
|
|
6820
|
+
]
|
|
6821
|
+
]
|
|
6822
|
+
},
|
|
6765
6823
|
'979-10': {
|
|
6766
6824
|
name: 'France',
|
|
6767
6825
|
ranges: [
|