@openzim/libzim 3.2.0 → 3.2.2
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/.env +1 -1
- package/Changelog +10 -0
- package/bundle-libzim.js +5 -4
- package/download-libzim.js +9 -8
- package/package.json +3 -2
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
LIBZIM_VERSION=9.
|
|
1
|
+
LIBZIM_VERSION=9.2.1
|
package/Changelog
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
3.2.2
|
|
2
|
+
* FIX: Module properly in ESM format
|
|
3
|
+
* FIX: Upgrade version of node-gyp
|
|
4
|
+
* NEW: macOS14 in the CI
|
|
5
|
+
|
|
6
|
+
3.2.1
|
|
7
|
+
* NEW: Use libzim 9.2.1
|
|
8
|
+
* FIX: Module properly in ESM format
|
|
9
|
+
* FIX: Codecov in the CI
|
|
10
|
+
|
|
1
11
|
3.2.0:
|
|
2
12
|
* NEW: Use libzim v9.0.0
|
|
3
13
|
* NEW: Added mediaCount to Archive
|
package/bundle-libzim.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import dotenv from "dotenv";
|
|
2
|
+
dotenv.config();
|
|
3
|
+
import mkdirp from "mkdirp";
|
|
4
|
+
import exec from "exec-then";
|
|
5
|
+
import os from "os";
|
|
5
6
|
|
|
6
7
|
mkdirp.sync("./build/Release");
|
|
7
8
|
|
package/download-libzim.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import dotenv from "dotenv";
|
|
2
|
+
dotenv.config();
|
|
3
|
+
import axios from "axios";
|
|
4
|
+
import mkdirp from "mkdirp";
|
|
5
|
+
import exec from "exec-then";
|
|
6
|
+
import os from "os";
|
|
7
|
+
import fs from "fs";
|
|
8
|
+
import urlParser from "url";
|
|
8
9
|
|
|
9
10
|
mkdirp.sync("./download");
|
|
10
11
|
|
|
@@ -51,7 +52,7 @@ for (let url of urls) {
|
|
|
51
52
|
try {
|
|
52
53
|
fs.statSync(dlFile);
|
|
53
54
|
console.warn(`File [${dlFile}] already exists, not downloading`);
|
|
54
|
-
|
|
55
|
+
break;
|
|
55
56
|
} catch (err) {
|
|
56
57
|
//
|
|
57
58
|
}
|
package/package.json
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
"name": "@openzim/libzim",
|
|
3
3
|
"main": "dist/index.js",
|
|
4
4
|
"types": "dist/index.d.js",
|
|
5
|
-
"version": "3.2.
|
|
5
|
+
"version": "3.2.2",
|
|
6
6
|
"description": "Libzim bindings for NodeJS",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"clean": "rm -rf dist build/native/build",
|
|
9
10
|
"tsc": "tsc",
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
"exec-then": "^1.3.1",
|
|
49
50
|
"mkdirp": "^1.0.4",
|
|
50
51
|
"node-addon-api": "^5.0.0",
|
|
51
|
-
"node-gyp": "^
|
|
52
|
+
"node-gyp": "^10.1.0",
|
|
52
53
|
"tqdm": "^2.0.3",
|
|
53
54
|
"ts-node": "^10.9.1",
|
|
54
55
|
"tsconfig-paths": "^4.0.0"
|
|
File without changes
|