@xylabs/sdk-js 4.3.3 → 4.3.4
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/package.json +34 -34
- package/vitest.config.ts +1 -7
- package/jestSetup/globalSetup.ts +0 -17
- package/jestSetup/globalTeardown.ts +0 -12
- package/jestSetup/setupFiles.ts +0 -10
- package/vitest.startup.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/sdk-js",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xylabs",
|
|
@@ -41,56 +41,56 @@
|
|
|
41
41
|
"build-typedoc-site": "xy gen-docs @xylabs/sdk-js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xylabs/api": "^4.3.
|
|
45
|
-
"@xylabs/array": "^4.3.
|
|
46
|
-
"@xylabs/assert": "^4.3.
|
|
47
|
-
"@xylabs/axios": "^4.3.
|
|
48
|
-
"@xylabs/crypto": "^4.3.
|
|
49
|
-
"@xylabs/decimal-precision": "^4.3.
|
|
50
|
-
"@xylabs/delay": "^4.3.
|
|
51
|
-
"@xylabs/error": "^4.3.
|
|
52
|
-
"@xylabs/eth-address": "^4.3.
|
|
53
|
-
"@xylabs/exists": "^4.3.
|
|
54
|
-
"@xylabs/forget": "^4.3.
|
|
55
|
-
"@xylabs/function-name": "^4.3.
|
|
56
|
-
"@xylabs/hex": "^4.3.
|
|
57
|
-
"@xylabs/log": "^4.3.
|
|
58
|
-
"@xylabs/logger": "^4.3.
|
|
59
|
-
"@xylabs/object": "^4.3.
|
|
60
|
-
"@xylabs/platform": "^4.3.
|
|
61
|
-
"@xylabs/profile": "^4.3.
|
|
62
|
-
"@xylabs/promise": "^4.3.
|
|
63
|
-
"@xylabs/retry": "^4.3.
|
|
64
|
-
"@xylabs/set": "^4.3.
|
|
65
|
-
"@xylabs/static-implements": "^4.3.
|
|
66
|
-
"@xylabs/timer": "^4.3.
|
|
67
|
-
"@xylabs/url": "^4.3.
|
|
44
|
+
"@xylabs/api": "^4.3.4",
|
|
45
|
+
"@xylabs/array": "^4.3.4",
|
|
46
|
+
"@xylabs/assert": "^4.3.4",
|
|
47
|
+
"@xylabs/axios": "^4.3.4",
|
|
48
|
+
"@xylabs/crypto": "^4.3.4",
|
|
49
|
+
"@xylabs/decimal-precision": "^4.3.4",
|
|
50
|
+
"@xylabs/delay": "^4.3.4",
|
|
51
|
+
"@xylabs/error": "^4.3.4",
|
|
52
|
+
"@xylabs/eth-address": "^4.3.4",
|
|
53
|
+
"@xylabs/exists": "^4.3.4",
|
|
54
|
+
"@xylabs/forget": "^4.3.4",
|
|
55
|
+
"@xylabs/function-name": "^4.3.4",
|
|
56
|
+
"@xylabs/hex": "^4.3.4",
|
|
57
|
+
"@xylabs/log": "^4.3.4",
|
|
58
|
+
"@xylabs/logger": "^4.3.4",
|
|
59
|
+
"@xylabs/object": "^4.3.4",
|
|
60
|
+
"@xylabs/platform": "^4.3.4",
|
|
61
|
+
"@xylabs/profile": "^4.3.4",
|
|
62
|
+
"@xylabs/promise": "^4.3.4",
|
|
63
|
+
"@xylabs/retry": "^4.3.4",
|
|
64
|
+
"@xylabs/set": "^4.3.4",
|
|
65
|
+
"@xylabs/static-implements": "^4.3.4",
|
|
66
|
+
"@xylabs/timer": "^4.3.4",
|
|
67
|
+
"@xylabs/url": "^4.3.4"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@stylistic/eslint-plugin": "^2.
|
|
71
|
-
"@types/jest": "^29.5.14",
|
|
70
|
+
"@stylistic/eslint-plugin": "^2.10.0",
|
|
72
71
|
"@types/supertest": "^6.0.2",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
74
|
-
"@typescript-eslint/parser": "^8.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
|
73
|
+
"@typescript-eslint/parser": "^8.12.2",
|
|
74
|
+
"@vitejs/plugin-react-swc": "^3.7.1",
|
|
75
75
|
"@xylabs/config": "^4.2.3",
|
|
76
76
|
"@xylabs/eslint-config-flat": "^4.2.3",
|
|
77
77
|
"@xylabs/ts-scripts-yarn3": "^4.2.3",
|
|
78
78
|
"@xylabs/tsconfig": "^4.2.3",
|
|
79
79
|
"@xylabs/tsconfig-jest": "^4.1.0",
|
|
80
|
+
"@xylabs/vitest-extended": "^4.3.4",
|
|
80
81
|
"dotenv": "^16.4.5",
|
|
81
82
|
"eslint": "^9.13.0",
|
|
82
83
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
83
84
|
"eslint-plugin-import": "^2.31.0",
|
|
84
|
-
"
|
|
85
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
86
|
-
"jest-extended": "^4.0.2",
|
|
87
|
-
"jest-sorted": "^1.0.15",
|
|
85
|
+
"knip": "^5.34.4",
|
|
88
86
|
"reflect-metadata": "^0.2.2",
|
|
89
87
|
"supertest": "^7.0.0",
|
|
88
|
+
"ts-node": "^10.9.2",
|
|
90
89
|
"tslib": "^2.8.0",
|
|
91
90
|
"typedoc": "^0.26.10",
|
|
92
91
|
"typescript": "^5.6.3",
|
|
93
|
-
"
|
|
92
|
+
"vite": "^5.4.10",
|
|
93
|
+
"vitest": "^2.1.4"
|
|
94
94
|
},
|
|
95
95
|
"packageManager": "yarn@4.5.1",
|
|
96
96
|
"engines": {
|
package/vitest.config.ts
CHANGED
|
@@ -3,10 +3,4 @@ import { defineConfig } from 'vitest/config'
|
|
|
3
3
|
|
|
4
4
|
dotenv.config()
|
|
5
5
|
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
test: {
|
|
8
|
-
globals: true,
|
|
9
|
-
include: ['**/*.{spec,spec}.?(c|m)[jt]s?(x)'],
|
|
10
|
-
setupFiles: ['./vitest.startup.ts'],
|
|
11
|
-
},
|
|
12
|
-
})
|
|
6
|
+
export default defineConfig({ test: { globals: true, watch: false } })
|
package/jestSetup/globalSetup.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { config } from 'dotenv'
|
|
2
|
-
config()
|
|
3
|
-
import type { Config } from 'jest'
|
|
4
|
-
import type { SuperTest, Test } from 'supertest'
|
|
5
|
-
|
|
6
|
-
// Augment global scope with shared variables (must be var)
|
|
7
|
-
declare global {
|
|
8
|
-
var req: SuperTest<Test>
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Jest global setup method runs before any tests are run
|
|
13
|
-
* https://jestjs.io/docs/configuration#globalsetup-string
|
|
14
|
-
*/
|
|
15
|
-
const setup = async (_globalConfig: Config, _projectConfig: Config) => {}
|
|
16
|
-
|
|
17
|
-
module.exports = setup
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { config } from 'dotenv'
|
|
2
|
-
config()
|
|
3
|
-
import type { Config } from 'jest'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Jest global teardown method runs after all tests are run
|
|
7
|
-
* https://jestjs.io/docs/configuration#globalteardown-string
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
const teardown = async (_globalConfig: Config, _projectConfig: Config) => {}
|
|
11
|
-
|
|
12
|
-
module.exports = teardown
|
package/jestSetup/setupFiles.ts
DELETED
package/vitest.startup.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as matchers from 'jest-extended'
|
|
2
|
-
import { expect, vi } from 'vitest'
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
-
(globalThis as any).jest = vi // replace jest with vi
|
|
6
|
-
|
|
7
|
-
// Extend Vitest's expect with jest-extended matchers
|
|
8
|
-
expect.extend(matchers)
|