@ceeblue/web-utils 4.2.0 → 6.0.0
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/.codecov.yml +21 -0
- package/dist/web-utils.d.ts +62 -11
- package/dist/web-utils.js +65 -37
- package/dist/web-utils.js.map +1 -1
- package/dist/web-utils.min.js +1 -1
- package/dist/web-utils.min.js.map +1 -1
- package/package.json +8 -3
- package/vitest.config.ts +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceeblue/web-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Ceeblue web framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"utils"
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"build": "rollup -c",
|
|
21
21
|
"build:es5": "rollup -c --format umd",
|
|
22
22
|
"build:docs": "typedoc index.ts",
|
|
23
|
+
"test": "vitest",
|
|
24
|
+
"test:coverage": "vitest --coverage",
|
|
23
25
|
"lint": "eslint . && prettier --check .",
|
|
24
26
|
"eslint": "eslint --fix .",
|
|
25
27
|
"prettier": "prettier --write --ignore-unknown .",
|
|
@@ -48,10 +50,12 @@
|
|
|
48
50
|
"@types/node": "~20.11.2",
|
|
49
51
|
"@typescript-eslint/eslint-plugin": "~6.19.0",
|
|
50
52
|
"@typescript-eslint/parser": "~6.19.0",
|
|
53
|
+
"@vitest/coverage-istanbul": "^3.1.1",
|
|
51
54
|
"eslint": "~8.56.0",
|
|
52
55
|
"eslint-plugin-headers": "~1.0.4",
|
|
53
|
-
"husky": "
|
|
56
|
+
"husky": "^9.1.7",
|
|
54
57
|
"is-ci": "~3.0.0",
|
|
58
|
+
"jsdom": "^26.0.0",
|
|
55
59
|
"lint-staged": "~15.2.0",
|
|
56
60
|
"prettier": "3.2.4",
|
|
57
61
|
"rollup": "~3.29.3",
|
|
@@ -60,7 +64,8 @@
|
|
|
60
64
|
"tslib": "~2.6.2",
|
|
61
65
|
"typedoc": "~0.25.3",
|
|
62
66
|
"typescript": "~5.2.2",
|
|
63
|
-
"undici-types": "~6.3.0"
|
|
67
|
+
"undici-types": "~6.3.0",
|
|
68
|
+
"vitest": "^3.1.1"
|
|
64
69
|
},
|
|
65
70
|
"publishConfig": {
|
|
66
71
|
"access": "public"
|
package/vitest.config.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Ceeblue B.V.
|
|
3
|
+
* This file is part of https://github.com/CeeblueTV/web-utils which is released under GNU Affero General Public License.
|
|
4
|
+
* See file LICENSE or go to https://spdx.org/licenses/AGPL-3.0-or-later.html for full license details.
|
|
5
|
+
*/
|
|
6
|
+
import { defineConfig } from 'vitest/config';
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
test: {
|
|
10
|
+
globals: true,
|
|
11
|
+
environment: 'jsdom',
|
|
12
|
+
coverage: {
|
|
13
|
+
provider: 'istanbul',
|
|
14
|
+
reporter: ['lcov'],
|
|
15
|
+
reportsDirectory: './coverage',
|
|
16
|
+
reportOnFailure: true
|
|
17
|
+
},
|
|
18
|
+
testTimeout: 10000,
|
|
19
|
+
silent: true
|
|
20
|
+
}
|
|
21
|
+
});
|