@soga/utils 0.0.15 → 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 CHANGED
@@ -9,3 +9,5 @@ export declare class SimpleError extends Error {
9
9
  stack?: string;
10
10
  constructor(params: SimpleErrorParams);
11
11
  }
12
+ export declare class ManualStopError extends Error {
13
+ }
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(e){super(e.message),this.code=e.code,this.message=e.message,this.stack=e.stack,this.name="SimpleError"}}exports.SimpleError=SimpleError;
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/package.json CHANGED
@@ -1,54 +1,54 @@
1
- {
2
- "name": "@soga/utils",
3
- "version": "0.0.15",
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
+ }