@beecode/msh-util 2.0.5 → 2.0.6-alpha
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/index.d.ts +16 -16
- package/dist/index.js +13 -13
- package/package.json +35 -55
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { expressErrorHandler } from '
|
|
2
|
-
export { SingletonAsync } from '
|
|
3
|
-
export { singletonPattern } from '
|
|
4
|
-
export { classFactoryPattern } from '
|
|
5
|
-
export type { ClassType } from '
|
|
6
|
-
export { ErrorWithPayload, JoiUtil } from '
|
|
7
|
-
export { memoizeFactory } from '
|
|
8
|
-
export { ObjectUtil } from '
|
|
9
|
-
export type { ObjectType } from '
|
|
10
|
-
export { regexUtil } from '
|
|
11
|
-
export { SingleThresholdPromise } from '
|
|
12
|
-
export { stringUtil } from '
|
|
13
|
-
export { DurationUnit, TimeUtil } from '
|
|
14
|
-
export type { DurationUnitType } from '
|
|
15
|
-
export { timeout } from '
|
|
16
|
-
export { typeUtil } from '
|
|
1
|
+
export { expressErrorHandler } from '#src/express/error-handler';
|
|
2
|
+
export { SingletonAsync } from '#src/singleton/async';
|
|
3
|
+
export { singletonPattern } from '#src/singleton/pattern';
|
|
4
|
+
export { classFactoryPattern } from '#src/class-factory-pattern';
|
|
5
|
+
export type { ClassType } from '#src/class-factory-pattern';
|
|
6
|
+
export { ErrorWithPayload, JoiUtil } from '#src/joi-util';
|
|
7
|
+
export { memoizeFactory } from '#src/memoize-factory';
|
|
8
|
+
export { ObjectUtil } from '#src/object-util';
|
|
9
|
+
export type { ObjectType } from '#src/object-util';
|
|
10
|
+
export { regexUtil } from '#src/regex-util';
|
|
11
|
+
export { SingleThresholdPromise } from '#src/single-threshold-promise';
|
|
12
|
+
export { stringUtil } from '#src/string-util';
|
|
13
|
+
export { DurationUnit, TimeUtil } from '#src/time-util';
|
|
14
|
+
export type { DurationUnitType } from '#src/time-util';
|
|
15
|
+
export { timeout } from '#src/timeout';
|
|
16
|
+
export { typeUtil } from '#src/type-util';
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { expressErrorHandler } from '
|
|
2
|
-
export { SingletonAsync } from '
|
|
3
|
-
export { singletonPattern } from '
|
|
4
|
-
export { classFactoryPattern } from '
|
|
5
|
-
export { ErrorWithPayload, JoiUtil } from '
|
|
6
|
-
export { memoizeFactory } from '
|
|
7
|
-
export { ObjectUtil } from '
|
|
8
|
-
export { regexUtil } from '
|
|
9
|
-
export { SingleThresholdPromise } from '
|
|
10
|
-
export { stringUtil } from '
|
|
11
|
-
export { DurationUnit, TimeUtil } from '
|
|
12
|
-
export { timeout } from '
|
|
13
|
-
export { typeUtil } from '
|
|
1
|
+
export { expressErrorHandler } from '#src/express/error-handler';
|
|
2
|
+
export { SingletonAsync } from '#src/singleton/async';
|
|
3
|
+
export { singletonPattern } from '#src/singleton/pattern';
|
|
4
|
+
export { classFactoryPattern } from '#src/class-factory-pattern';
|
|
5
|
+
export { ErrorWithPayload, JoiUtil } from '#src/joi-util';
|
|
6
|
+
export { memoizeFactory } from '#src/memoize-factory';
|
|
7
|
+
export { ObjectUtil } from '#src/object-util';
|
|
8
|
+
export { regexUtil } from '#src/regex-util';
|
|
9
|
+
export { SingleThresholdPromise } from '#src/single-threshold-promise';
|
|
10
|
+
export { stringUtil } from '#src/string-util';
|
|
11
|
+
export { DurationUnit, TimeUtil } from '#src/time-util';
|
|
12
|
+
export { timeout } from '#src/timeout';
|
|
13
|
+
export { typeUtil } from '#src/type-util';
|
|
14
14
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQU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"version": "2.0.6-alpha",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/beecode-rs/msh-util#readme",
|
|
@@ -15,11 +15,9 @@
|
|
|
15
15
|
"author": "Milos Bugarinovic <milos.bugarinovic@gmail.com> (https://milos.bugarinovic.com)",
|
|
16
16
|
"type": "module",
|
|
17
17
|
"imports": {
|
|
18
|
-
"#
|
|
19
|
-
"#src
|
|
20
|
-
|
|
21
|
-
"./src/*/index.js"
|
|
22
|
-
]
|
|
18
|
+
"#packageJson": "./package.json",
|
|
19
|
+
"#src": "./dist/index.js",
|
|
20
|
+
"#src/*": "./dist/*.js"
|
|
23
21
|
},
|
|
24
22
|
"exports": {
|
|
25
23
|
".": {
|
|
@@ -28,26 +26,13 @@
|
|
|
28
26
|
"types": "./dist/index.d.ts"
|
|
29
27
|
},
|
|
30
28
|
"./*": {
|
|
31
|
-
"import":
|
|
32
|
-
|
|
33
|
-
"./dist/*/index.js"
|
|
34
|
-
],
|
|
35
|
-
"types": [
|
|
36
|
-
"./dist/*.d.ts",
|
|
37
|
-
"./dist/*/index.d.ts"
|
|
38
|
-
]
|
|
29
|
+
"import": "./dist/*.js",
|
|
30
|
+
"types": "./dist/*.d.ts"
|
|
39
31
|
},
|
|
40
32
|
"./lib/*": {
|
|
41
|
-
"require":
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
],
|
|
45
|
-
"types": [
|
|
46
|
-
"./lib/*.d.ts",
|
|
47
|
-
"./lib/*/index.d.ts"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"./package.json": "./package.json"
|
|
33
|
+
"require": "./lib/*.js",
|
|
34
|
+
"types": "./lib/*.d.ts"
|
|
35
|
+
}
|
|
51
36
|
},
|
|
52
37
|
"main": "./lib/index.js",
|
|
53
38
|
"module": "./dist/index.js",
|
|
@@ -58,22 +43,21 @@
|
|
|
58
43
|
],
|
|
59
44
|
"scripts": {
|
|
60
45
|
"babel": "npx babel --extensions .ts",
|
|
61
|
-
"build": "npm run clean && npm run tsc
|
|
46
|
+
"build": "npm run clean && npm run tsc",
|
|
62
47
|
"build-cjs": "npm run clean-cjs && npm run tsc-cjs && npm run tsc-types && npm run tsc-types-alias && npm run fix-hybrid-lib-cjs",
|
|
63
48
|
"clean": "rimraf ./dist",
|
|
64
49
|
"clean-cjs": "rimraf ./lib",
|
|
65
50
|
"doc": "concurrently -c auto 'npm:doc:*'",
|
|
66
|
-
"doc:api": "npx typedoc --tsconfig
|
|
51
|
+
"doc:api": "npx typedoc --tsconfig tsconfig.build.json",
|
|
67
52
|
"doc:toc": "npx markdown-toc -i ./README.md",
|
|
68
53
|
"docker-build": "docker build -f ./resource/docker/Dockerfile -t bc-msh-util ./",
|
|
69
54
|
"docker-rmi": "docker rmi bc-msh-util",
|
|
70
|
-
"docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node20.
|
|
55
|
+
"docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node20.12.2-alpine3.19 npm i --package-lock-only",
|
|
71
56
|
"docker-run-sh": "docker run --rm -it bc-msh-util sh",
|
|
72
57
|
"fix-hybrid-lib-cjs": "mkdir -p ./lib && echo '{\"type\": \"commonjs\"}' > ./lib/package.json",
|
|
73
58
|
"init": "concurrently -c auto 'npm:init:*'",
|
|
74
59
|
"init:git-config": "git config include.path ./.git-config",
|
|
75
60
|
"init:husky": "npx husky install",
|
|
76
|
-
"jest": "NODE_OPTIONS=--experimental-vm-modules npx jest",
|
|
77
61
|
"lint": "npm run lint-prettier && npm run lint-eslint && npm run lint-json",
|
|
78
62
|
"lint-eslint": "eslint ./ --quiet",
|
|
79
63
|
"lint-eslint-fix": "npm run lint-eslint -- --fix",
|
|
@@ -92,18 +76,17 @@
|
|
|
92
76
|
"test": "concurrently -c auto 'npm:test:*'",
|
|
93
77
|
"test-coverage-unit": "npm run test:unit -- --coverage",
|
|
94
78
|
"test-coverage-unit-publish": "codecov",
|
|
95
|
-
"test:e2e": "npm run
|
|
96
|
-
"test:int": "
|
|
97
|
-
"test:unit": "
|
|
98
|
-
"tsc": "tsc -p
|
|
79
|
+
"test:e2e": "cd test && npm run test",
|
|
80
|
+
"test:int": "vitest --config=./vitest.config.int.ts",
|
|
81
|
+
"test:unit": "vitest --config=./vitest.config.unit.ts",
|
|
82
|
+
"tsc": "tsc -p tsconfig.build.json",
|
|
99
83
|
"tsc-check": "npm run tsc -- --noEmit",
|
|
100
84
|
"tsc-cjs": "npm run babel -- --out-dir ./lib ./src",
|
|
101
85
|
"tsc-cleaner": "ts-cleaner --dist ./dist",
|
|
102
86
|
"tsc-cleaner-watch": "npm run tsc-cleaner -- --watch",
|
|
103
|
-
"tsc-esm-alias": "tsc-alias -p ./resource/tsconfig/esm.json",
|
|
104
87
|
"tsc-time": "npm run tsc -- --diagnostics",
|
|
105
|
-
"tsc-types": "tsc -p
|
|
106
|
-
"tsc-types-alias": "tsc-alias -p
|
|
88
|
+
"tsc-types": "tsc -p tsconfig.build.json --emitDeclarationOnly --outDir ./lib",
|
|
89
|
+
"tsc-types-alias": "tsc-alias -p tsconfig.build.json --outDir ./lib --resolve-full-paths",
|
|
107
90
|
"tsc-watch": "npm run tsc -- -w --preserveWatchOutput",
|
|
108
91
|
"watch": "concurrently -c auto -n build,clean 'npm run tsc-watch' 'npm run tsc-cleaner-watch'"
|
|
109
92
|
},
|
|
@@ -128,22 +111,21 @@
|
|
|
128
111
|
},
|
|
129
112
|
"dependencies": {
|
|
130
113
|
"date-fns": "3.6.0",
|
|
131
|
-
"date-fns-tz": "3.
|
|
132
|
-
"joi": "17.
|
|
114
|
+
"date-fns-tz": "3.1.3",
|
|
115
|
+
"joi": "17.13.1",
|
|
133
116
|
"lodash.clonedeep": "4.5.0",
|
|
134
117
|
"rxjs": "7.8.1"
|
|
135
118
|
},
|
|
136
119
|
"devDependencies": {
|
|
137
|
-
"@babel/cli": "7.24.
|
|
138
|
-
"@babel/core": "7.24.
|
|
120
|
+
"@babel/cli": "7.24.5",
|
|
121
|
+
"@babel/core": "7.24.5",
|
|
139
122
|
"@babel/plugin-proposal-decorators": "7.24.1",
|
|
140
123
|
"@babel/plugin-transform-modules-commonjs": "7.24.1",
|
|
141
|
-
"@babel/preset-env": "7.24.
|
|
124
|
+
"@babel/preset-env": "7.24.5",
|
|
142
125
|
"@babel/preset-typescript": "7.24.1",
|
|
143
|
-
"@commitlint/cli": "19.
|
|
126
|
+
"@commitlint/cli": "19.3.0",
|
|
144
127
|
"@commitlint/config-conventional": "19.2.2",
|
|
145
|
-
"@commitlint/prompt": "19.
|
|
146
|
-
"@jest/globals": "29.7.0",
|
|
128
|
+
"@commitlint/prompt": "19.3.0",
|
|
147
129
|
"@semantic-release/changelog": "6.0.3",
|
|
148
130
|
"@semantic-release/commit-analyzer": "12.0.0",
|
|
149
131
|
"@semantic-release/exec": "6.0.3",
|
|
@@ -151,23 +133,20 @@
|
|
|
151
133
|
"@semantic-release/github": "10.0.3",
|
|
152
134
|
"@semantic-release/release-notes-generator": "13.0.0",
|
|
153
135
|
"@types/lodash.clonedeep": "4.5.9",
|
|
154
|
-
"@types/node": "20.12.
|
|
155
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
156
|
-
"@typescript-eslint/parser": "7.
|
|
136
|
+
"@types/node": "20.12.8",
|
|
137
|
+
"@typescript-eslint/eslint-plugin": "7.8.0",
|
|
138
|
+
"@typescript-eslint/parser": "7.8.0",
|
|
139
|
+
"@vitest/coverage-istanbul": "1.6.0",
|
|
157
140
|
"commitizen": "4.3.0",
|
|
158
141
|
"concurrently": "8.2.2",
|
|
159
142
|
"eslint": "8.57.0",
|
|
160
143
|
"eslint-config-prettier": "8.10.0",
|
|
161
144
|
"eslint-plugin-import": "2.29.1",
|
|
162
|
-
"eslint-plugin-jest": "28.2.0",
|
|
163
145
|
"eslint-plugin-no-loops": "0.3.0",
|
|
164
146
|
"eslint-plugin-no-only-tests": "3.1.0",
|
|
165
147
|
"eslint-plugin-prettier": "5.1.3",
|
|
166
148
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
167
149
|
"husky": "9.0.11",
|
|
168
|
-
"jest": "29.7.0",
|
|
169
|
-
"jest-extended": "4.0.2",
|
|
170
|
-
"jest-mock": "29.7.0",
|
|
171
150
|
"json-sort-cli": "4.0.3",
|
|
172
151
|
"lint-staged": "15.2.2",
|
|
173
152
|
"markdown-toc": "1.2.0",
|
|
@@ -176,16 +155,17 @@
|
|
|
176
155
|
"semantic-release": "23.0.8",
|
|
177
156
|
"source-map-support": "0.5.21",
|
|
178
157
|
"ts-cleaner": "1.0.5",
|
|
179
|
-
"ts-jest": "29.1.2",
|
|
180
158
|
"ts-node": "10.9.2",
|
|
181
159
|
"tsc-alias": "1.8.8",
|
|
182
160
|
"tsc-watch": "6.2.0",
|
|
183
161
|
"typedoc": "0.25.13",
|
|
184
|
-
"typedoc-plugin-markdown": "
|
|
185
|
-
"typescript": "5.4.5"
|
|
162
|
+
"typedoc-plugin-markdown": "4.0.0",
|
|
163
|
+
"typescript": "5.4.5",
|
|
164
|
+
"vite-tsconfig-paths": "4.3.2",
|
|
165
|
+
"vitest": "1.6.0"
|
|
186
166
|
},
|
|
187
167
|
"engines": {
|
|
188
|
-
"node": ">=
|
|
189
|
-
"npm": ">=
|
|
168
|
+
"node": ">=20.8.1",
|
|
169
|
+
"npm": ">=10.1.0"
|
|
190
170
|
}
|
|
191
171
|
}
|