@openzim/libzim 3.2.0 → 3.2.1
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 +5 -0
- package/bundle-libzim.js +5 -4
- package/dist/index.js +1 -1
- package/download-libzim.js +9 -8
- package/package.json +2 -1
- package/src/index.js +1 -1
- /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
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/dist/index.js
CHANGED
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.1",
|
|
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",
|
package/src/index.js
CHANGED
|
File without changes
|