@internetarchive/bookreader 5.0.0-88-alpha.7 → 5.0.0-88-alpha.8
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/babel.config.js +30 -12
- package/package.json +13 -6
package/babel.config.js
CHANGED
@@ -1,20 +1,38 @@
|
|
1
|
+
/* eslint-disable */
|
1
2
|
module.exports = {
|
2
3
|
presets: [
|
3
4
|
[
|
4
|
-
|
5
|
-
process.env.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
'@babel/preset-env',
|
6
|
+
process.env.BABEL_ENV === 'esm'
|
7
|
+
? {
|
8
|
+
targets: {
|
9
|
+
esmodules: true,
|
10
|
+
},
|
11
|
+
modules: false,
|
12
|
+
}
|
13
|
+
: process.env.NODE_ENV == 'test'
|
14
|
+
? { targets: { node: process.version } }
|
15
|
+
: process.env.NODE_ENV == 'development'
|
16
|
+
? {
|
17
|
+
targets:
|
18
|
+
'last 2 Chrome versions, last 2 Firefox versions, last 2 Safari versions, last 2 Edge versions',
|
19
|
+
}
|
20
|
+
: {
|
21
|
+
targets:
|
22
|
+
'> 2%, edge >= 14, samsung > 9, UCAndroid > 12, Safari >= 10',
|
23
|
+
useBuiltIns: 'usage',
|
24
|
+
corejs: 3,
|
25
|
+
},
|
11
26
|
],
|
12
27
|
],
|
13
28
|
plugins: [
|
14
|
-
[
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
29
|
+
[
|
30
|
+
'@babel/plugin-proposal-decorators',
|
31
|
+
{
|
32
|
+
version: '2018-09',
|
33
|
+
decoratorsBeforeExport: true,
|
34
|
+
},
|
35
|
+
],
|
36
|
+
['@babel/plugin-proposal-class-properties'],
|
19
37
|
],
|
20
38
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@internetarchive/bookreader",
|
3
|
-
"version": "5.0.0-88-alpha.
|
3
|
+
"version": "5.0.0-88-alpha.8",
|
4
4
|
"description": "The Internet Archive BookReader.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -9,8 +9,13 @@
|
|
9
9
|
"publishConfig": {
|
10
10
|
"access": "public"
|
11
11
|
},
|
12
|
-
"
|
13
|
-
"
|
12
|
+
"module": "dist/esm/ia-bookreader/ia-bookreader.js",
|
13
|
+
"exports": {
|
14
|
+
".": {
|
15
|
+
"script": "./BookReader/ia-bookreader.js",
|
16
|
+
"import": "./dist/esm/ia-bookreader/ia-bookreader.js"
|
17
|
+
}
|
18
|
+
},
|
14
19
|
"keywords": [
|
15
20
|
"online",
|
16
21
|
"bookreader",
|
@@ -39,14 +44,17 @@
|
|
39
44
|
"@internetarchive/modal-manager": "^2.0.1",
|
40
45
|
"@internetarchive/shared-resize-observer": "^0.2.0",
|
41
46
|
"interactjs": "^1.10.18",
|
47
|
+
"iso-language-codes": "1.1.0",
|
42
48
|
"jquery": "3.6.1",
|
43
49
|
"jquery-colorbox": "1.6.4",
|
44
50
|
"jquery-ui": "^1.12.1",
|
45
51
|
"jquery-ui-touch-punch": "0.2.3",
|
46
52
|
"jquery.browser": "0.1.0",
|
47
|
-
"lit": "^2.8.0"
|
53
|
+
"lit": "^2.8.0",
|
54
|
+
"soundmanager2": "2.97.20170602"
|
48
55
|
},
|
49
56
|
"devDependencies": {
|
57
|
+
"@babel/cli": "^7.26.4",
|
50
58
|
"@babel/core": "7.25.8",
|
51
59
|
"@babel/eslint-parser": "7.25.7",
|
52
60
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
@@ -65,14 +73,12 @@
|
|
65
73
|
"eslint-plugin-no-jquery": "^2.7.0",
|
66
74
|
"eslint-plugin-testcafe": "^0.2.1",
|
67
75
|
"http-server": "14.1.1",
|
68
|
-
"iso-language-codes": "1.1.0",
|
69
76
|
"jest": "29.7.0",
|
70
77
|
"jest-environment-jsdom": "^29.7.0",
|
71
78
|
"live-server": "1.2.2",
|
72
79
|
"regenerator-runtime": "0.14.1",
|
73
80
|
"sass": "1.79.5",
|
74
81
|
"sinon": "19.0.2",
|
75
|
-
"soundmanager2": "2.97.20170602",
|
76
82
|
"svgo": "3.3.2",
|
77
83
|
"testcafe": "3.6.2",
|
78
84
|
"testcafe-browser-provider-browserstack": "^1.13.2-alpha.1",
|
@@ -104,6 +110,7 @@
|
|
104
110
|
"build-assets": "npx cpx \"src/assets/**/*\" BookReader && npx svgo -f BookReader/icons && npx svgo -f BookReader/images",
|
105
111
|
"build-assets:watch": "npx cpx --watch --verbose \"src/assets/**/*\" BookReader",
|
106
112
|
"build-js": "npx webpack",
|
113
|
+
"build-esm": "env BABEL_ENV=esm npx babel src --out-dir dist/esm --copy-files --extensions \".js\"",
|
107
114
|
"build-js:watch": "npx webpack --mode=development --watch",
|
108
115
|
"build-css": "npx sass --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css",
|
109
116
|
"build-css:watch": "npx sass --watch --no-source-map ./src/css/BookReader.scss ./BookReader/BookReader.css",
|