@xylabs/sdk-js 2.13.9 → 2.13.10
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/babel.config.json +2 -1
- package/{jest.config.cjs → jest.config.ts} +8 -5
- package/package.json +40 -35
package/babel.config.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const generateJestConfig = ({ esModules }) => {
|
|
1
|
+
const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
|
|
2
2
|
const esModulesList = Array.isArray(esModules) ? esModules.join('|') : esModules
|
|
3
3
|
return {
|
|
4
4
|
coveragePathIgnorePatterns: ['<rootDir>/(.*)/dist'],
|
|
@@ -6,9 +6,10 @@ const generateJestConfig = ({ esModules }) => {
|
|
|
6
6
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
7
7
|
},
|
|
8
8
|
preset: 'ts-jest/presets/default-esm',
|
|
9
|
+
setupFiles: ['dotenv/config'],
|
|
9
10
|
setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all'],
|
|
10
|
-
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
|
|
11
|
-
testTimeout:
|
|
11
|
+
testRegex: '(/__tests__/.*|(\\.|/)((!perf\\.)test|spec))\\.tsx?$',
|
|
12
|
+
testTimeout: 200000,
|
|
12
13
|
transform: {
|
|
13
14
|
[`(${esModulesList}).+\\.js$`]: 'babel-jest',
|
|
14
15
|
'^.+\\.tsx?$': [
|
|
@@ -22,5 +23,7 @@ const generateJestConfig = ({ esModules }) => {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es'] })
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line import/no-default-export
|
|
29
|
+
export default config
|
package/package.json
CHANGED
|
@@ -38,46 +38,48 @@
|
|
|
38
38
|
"esm"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@xylabs/api": "~2.13.
|
|
42
|
-
"@xylabs/array": "~2.13.
|
|
43
|
-
"@xylabs/assert": "~2.13.
|
|
44
|
-
"@xylabs/axios": "~2.13.
|
|
45
|
-
"@xylabs/bignumber": "~2.13.
|
|
46
|
-
"@xylabs/buffer": "~2.13.
|
|
47
|
-
"@xylabs/crypto": "~2.13.
|
|
48
|
-
"@xylabs/decimal-precision": "~2.13.
|
|
49
|
-
"@xylabs/delay": "~2.13.
|
|
50
|
-
"@xylabs/error": "~2.13.
|
|
51
|
-
"@xylabs/eth-address": "~2.13.
|
|
52
|
-
"@xylabs/exists": "~2.13.
|
|
53
|
-
"@xylabs/forget": "~2.13.
|
|
54
|
-
"@xylabs/function-name": "~2.13.
|
|
55
|
-
"@xylabs/log": "~2.13.
|
|
56
|
-
"@xylabs/logger": "~2.13.
|
|
57
|
-
"@xylabs/platform": "~2.13.
|
|
58
|
-
"@xylabs/profile": "~2.13.
|
|
59
|
-
"@xylabs/promise": "~2.13.
|
|
60
|
-
"@xylabs/set": "~2.13.
|
|
61
|
-
"@xylabs/static-implements": "~2.13.
|
|
62
|
-
"@xylabs/url": "~2.13.
|
|
41
|
+
"@xylabs/api": "~2.13.10",
|
|
42
|
+
"@xylabs/array": "~2.13.10",
|
|
43
|
+
"@xylabs/assert": "~2.13.10",
|
|
44
|
+
"@xylabs/axios": "~2.13.10",
|
|
45
|
+
"@xylabs/bignumber": "~2.13.10",
|
|
46
|
+
"@xylabs/buffer": "~2.13.10",
|
|
47
|
+
"@xylabs/crypto": "~2.13.10",
|
|
48
|
+
"@xylabs/decimal-precision": "~2.13.10",
|
|
49
|
+
"@xylabs/delay": "~2.13.10",
|
|
50
|
+
"@xylabs/error": "~2.13.10",
|
|
51
|
+
"@xylabs/eth-address": "~2.13.10",
|
|
52
|
+
"@xylabs/exists": "~2.13.10",
|
|
53
|
+
"@xylabs/forget": "~2.13.10",
|
|
54
|
+
"@xylabs/function-name": "~2.13.10",
|
|
55
|
+
"@xylabs/log": "~2.13.10",
|
|
56
|
+
"@xylabs/logger": "~2.13.10",
|
|
57
|
+
"@xylabs/platform": "~2.13.10",
|
|
58
|
+
"@xylabs/profile": "~2.13.10",
|
|
59
|
+
"@xylabs/promise": "~2.13.10",
|
|
60
|
+
"@xylabs/set": "~2.13.10",
|
|
61
|
+
"@xylabs/static-implements": "~2.13.10",
|
|
62
|
+
"@xylabs/url": "~2.13.10"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@babel/core": "^7.23.3",
|
|
66
66
|
"@babel/preset-env": "^7.23.3",
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@types/
|
|
67
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
68
|
+
"@swc/core": "^1.3.99",
|
|
69
|
+
"@types/jest": "^29.5.10",
|
|
70
|
+
"@types/mocha": "^10.0.6",
|
|
70
71
|
"@types/supertest": "^2.0.16",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
72
|
-
"@typescript-eslint/parser": "^6.
|
|
73
|
-
"@xylabs/config": "^3.
|
|
74
|
-
"@xylabs/eslint-config": "^3.
|
|
75
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
76
|
-
"@xylabs/tsconfig": "^3.
|
|
77
|
-
"@xylabs/tsconfig-jest": "^3.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
73
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
74
|
+
"@xylabs/config": "^3.2.8",
|
|
75
|
+
"@xylabs/eslint-config": "^3.2.8",
|
|
76
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.8",
|
|
77
|
+
"@xylabs/tsconfig": "^3.2.8",
|
|
78
|
+
"@xylabs/tsconfig-jest": "^3.2.8",
|
|
78
79
|
"babel-jest": "^29.7.0",
|
|
79
80
|
"depcheck": "^1.4.7",
|
|
80
|
-
"
|
|
81
|
+
"dotenv": "^16.3.1",
|
|
82
|
+
"eslint": "^8.54.0",
|
|
81
83
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
82
84
|
"eslint-plugin-deprecation": "^2.0.0",
|
|
83
85
|
"eslint-plugin-import": "^2.29.0",
|
|
@@ -87,7 +89,10 @@
|
|
|
87
89
|
"jest-sorted": "^1.0.14",
|
|
88
90
|
"reflect-metadata": "^0.1.13",
|
|
89
91
|
"ts-jest": "^29.1.1",
|
|
90
|
-
"typescript": "^5.
|
|
92
|
+
"typescript": "^5.3.2"
|
|
93
|
+
},
|
|
94
|
+
"resolutions": {
|
|
95
|
+
"typescript": "5.2.2"
|
|
91
96
|
},
|
|
92
97
|
"publishConfig": {
|
|
93
98
|
"access": "public"
|
|
@@ -97,7 +102,7 @@
|
|
|
97
102
|
"url": "https://github.com/xylabs/sdk-js.git"
|
|
98
103
|
},
|
|
99
104
|
"sideEffects": false,
|
|
100
|
-
"version": "2.13.
|
|
105
|
+
"version": "2.13.10",
|
|
101
106
|
"packageManager": "yarn@3.6.3",
|
|
102
107
|
"engines": {
|
|
103
108
|
"node": ">=18.17.1"
|