isbn3 1.2.5 → 1.2.6

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.
Files changed (2) hide show
  1. package/isbn.d.ts +2 -2
  2. package/package.json +1 -1
package/isbn.d.ts CHANGED
@@ -30,8 +30,8 @@ interface ISBN {
30
30
 
31
31
  declare module "isbn3" {
32
32
  export function parse(isbn: string): ISBN | null;
33
- export function asIsbn13(isbn: string): string;
34
- export function asIsbn10(isbn: string): string;
33
+ export function asIsbn13(isbn: string): string | null;
34
+ export function asIsbn10(isbn: string): string | null;
35
35
  export function hyphenate(isbn: string): string;
36
36
  export function audit(isbn: string): ISBNAudit;
37
37
  export const groups: Record<
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.2.5",
4
+ "version": "1.2.6",
5
5
  "authors": [
6
6
  "Hetappi <hetappi.pm@gmail.com>",
7
7
  "Tadas S. <tadas@yoyo.lt>",