@library-pals/isbn 1.4.3 → 1.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@library-pals/isbn",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Find books by ISBN",
5
5
  "exports": {
6
6
  ".": {
package/src/index.js CHANGED
@@ -19,6 +19,7 @@ import {
19
19
  * @property {string | undefined} [thumbnail] - The thumbnail image link of the book.
20
20
  * @property {string} [link] - The link of the book.
21
21
  * @property {string} bookProvider - The provider of the book information.
22
+ * @property {string} [duration] - The duration of the audiobook.
22
23
  */
23
24
 
24
25
  /**
@@ -60,6 +60,7 @@ export async function standardize(data, isbn, url) {
60
60
  language: book.inLanguage,
61
61
  isbn,
62
62
  bookProvider: "Libro.fm",
63
+ duration: book.duration,
63
64
  };
64
65
 
65
66
  return standardBook;
package/types/index.d.ts CHANGED
@@ -13,6 +13,7 @@
13
13
  * @property {string | undefined} [thumbnail] - The thumbnail image link of the book.
14
14
  * @property {string} [link] - The link of the book.
15
15
  * @property {string} bookProvider - The provider of the book information.
16
+ * @property {string} [duration] - The duration of the audiobook.
16
17
  */
17
18
  /**
18
19
  * @typedef {import('./provider-resolvers.js').Providers} Providers
@@ -98,6 +99,10 @@ export type Book = {
98
99
  * - The provider of the book information.
99
100
  */
100
101
  bookProvider: string;
102
+ /**
103
+ * - The duration of the audiobook.
104
+ */
105
+ duration?: string;
101
106
  };
102
107
  export type Providers = import("./provider-resolvers.js").Providers;
103
108
  export type AxiosRequestConfig = import("axios").AxiosRequestConfig;