@soga/utils 0.0.14 → 0.0.16
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/dist/error.d.ts +2 -0
- package/dist/error.js +1 -1
- package/dist/level.d.ts +5 -2
- package/package.json +54 -54
package/dist/error.d.ts
CHANGED
package/dist/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleError=void 0;class SimpleError extends Error{code;message;stack;constructor(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ManualStopError=exports.SimpleError=void 0;class SimpleError extends Error{code;message;stack;constructor(r){super(r.message),this.code=r.code,this.message=r.message,this.stack=r.stack,this.name="SimpleError"}}exports.SimpleError=SimpleError;class ManualStopError extends Error{}exports.ManualStopError=ManualStopError;
|
package/dist/level.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ import { Level } from 'level';
|
|
|
2
2
|
export declare const getUploadLevel: ({ outputRoot, input, }: {
|
|
3
3
|
outputRoot: string;
|
|
4
4
|
input: string;
|
|
5
|
-
}) => Promise<Level<string,
|
|
5
|
+
}) => Promise<Level<string, LevelDataType>>;
|
|
6
6
|
export declare const getDownloadLevel: ({ outputRoot, input, }: {
|
|
7
7
|
outputRoot: string;
|
|
8
8
|
input: string;
|
|
9
|
-
}) => Promise<Level<string,
|
|
9
|
+
}) => Promise<Level<string, LevelDataType>>;
|
|
10
|
+
type LevelDataType = string | number | object | boolean;
|
|
11
|
+
export type LevelDB = Level<string, LevelDataType>;
|
|
12
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@soga/utils",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"access": "public"
|
|
6
|
-
},
|
|
7
|
-
"description": "",
|
|
8
|
-
"main": "dist/main.js",
|
|
9
|
-
"types": "dist/main.d.ts",
|
|
10
|
-
"files": [
|
|
11
|
-
"dist"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "rimraf dist && tsc && ts-node ./scripts/minify",
|
|
15
|
-
"minify": "ts-node ./scripts/minify",
|
|
16
|
-
"demo_backup": "ts-node ./demo/demo.ts",
|
|
17
|
-
"demo": "ts-node ./demo/demo.ts",
|
|
18
|
-
"worker": "tsc && ts-node ./demo/worker.ts",
|
|
19
|
-
"test": "jest",
|
|
20
|
-
"dev": "ts-node ./src/main.ts",
|
|
21
|
-
"lint": "eslint . --ext .ts",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@types/fs-extra": "^11.0.4",
|
|
26
|
-
"@types/glob": "^8.1.0",
|
|
27
|
-
"@types/jest": "^29.5.4",
|
|
28
|
-
"@types/langdetect": "^0.2.2",
|
|
29
|
-
"@types/node": "^20.8.7",
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
31
|
-
"@typescript-eslint/parser": "^6.4.1",
|
|
32
|
-
"eslint": "^8.47.0",
|
|
33
|
-
"eslint-config-prettier": "^9.0.0",
|
|
34
|
-
"eslint-plugin-jest": "^27.2.3",
|
|
35
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
36
|
-
"glob": "^10.3.3",
|
|
37
|
-
"jest": "^29.6.3",
|
|
38
|
-
"prettier": "^3.0.2",
|
|
39
|
-
"terser": "^5.19.2",
|
|
40
|
-
"ts-jest": "^29.1.1",
|
|
41
|
-
"ts-node": "^10.9.1",
|
|
42
|
-
"typescript": "^5.1.6"
|
|
43
|
-
},
|
|
44
|
-
"keywords": [],
|
|
45
|
-
"author": "",
|
|
46
|
-
"license": "ISC",
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"chardet": "^2.0.0",
|
|
49
|
-
"fs-extra": "^11.2.0",
|
|
50
|
-
"iconv-lite": "^0.6.3",
|
|
51
|
-
"langdetect": "^0.2.1",
|
|
52
|
-
"level": "^9.0.0"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@soga/utils",
|
|
3
|
+
"version": "0.0.16",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "",
|
|
8
|
+
"main": "dist/main.js",
|
|
9
|
+
"types": "dist/main.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "rimraf dist && tsc && ts-node ./scripts/minify",
|
|
15
|
+
"minify": "ts-node ./scripts/minify",
|
|
16
|
+
"demo_backup": "ts-node ./demo/demo.ts",
|
|
17
|
+
"demo": "ts-node ./demo/demo.ts",
|
|
18
|
+
"worker": "tsc && ts-node ./demo/worker.ts",
|
|
19
|
+
"test": "jest",
|
|
20
|
+
"dev": "ts-node ./src/main.ts",
|
|
21
|
+
"lint": "eslint . --ext .ts",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/fs-extra": "^11.0.4",
|
|
26
|
+
"@types/glob": "^8.1.0",
|
|
27
|
+
"@types/jest": "^29.5.4",
|
|
28
|
+
"@types/langdetect": "^0.2.2",
|
|
29
|
+
"@types/node": "^20.8.7",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
31
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
32
|
+
"eslint": "^8.47.0",
|
|
33
|
+
"eslint-config-prettier": "^9.0.0",
|
|
34
|
+
"eslint-plugin-jest": "^27.2.3",
|
|
35
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
36
|
+
"glob": "^10.3.3",
|
|
37
|
+
"jest": "^29.6.3",
|
|
38
|
+
"prettier": "^3.0.2",
|
|
39
|
+
"terser": "^5.19.2",
|
|
40
|
+
"ts-jest": "^29.1.1",
|
|
41
|
+
"ts-node": "^10.9.1",
|
|
42
|
+
"typescript": "^5.1.6"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [],
|
|
45
|
+
"author": "",
|
|
46
|
+
"license": "ISC",
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"chardet": "^2.0.0",
|
|
49
|
+
"fs-extra": "^11.2.0",
|
|
50
|
+
"iconv-lite": "^0.6.3",
|
|
51
|
+
"langdetect": "^0.2.1",
|
|
52
|
+
"level": "^9.0.0"
|
|
53
|
+
}
|
|
54
|
+
}
|