@xylabs/sdk-js 3.6.3 → 3.6.5
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.
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
// eslint.config.mjs
|
|
2
2
|
|
|
3
|
-
import { typescriptConfig, unicornConfig, prettierConfig, rulesConfig, workspacesConfig } from '@xylabs/eslint-config-flat'
|
|
4
3
|
import tsParser from '@typescript-eslint/parser'
|
|
4
|
+
import { importConfig, prettierConfig, rulesConfig, typescriptConfig, unicornConfig, workspacesConfig } from '@xylabs/eslint-config-flat'
|
|
5
|
+
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
|
6
|
+
import sonarjs from 'eslint-plugin-sonarjs'
|
|
5
7
|
|
|
6
|
-
// eslint-disable-next-line import/no-default-export
|
|
7
8
|
export default [
|
|
8
9
|
{
|
|
9
|
-
ignores: ['.yarn', '.yarn/**', '**/dist/**', 'dist/**', 'build/**', 'node_modules/**'],
|
|
10
|
+
ignores: ['.yarn', '.yarn/**', '**/dist/**', 'dist/**', 'build/**', 'node_modules/**', 'packages/threads/**'],
|
|
10
11
|
},
|
|
12
|
+
sonarjs.configs.recommended,
|
|
11
13
|
prettierConfig,
|
|
12
14
|
typescriptConfig,
|
|
13
15
|
rulesConfig,
|
|
14
16
|
workspacesConfig,
|
|
17
|
+
importConfig,
|
|
18
|
+
{
|
|
19
|
+
plugins: {
|
|
20
|
+
'simple-import-sort': simpleImportSort,
|
|
21
|
+
},
|
|
22
|
+
rules: {
|
|
23
|
+
'simple-import-sort/imports': 'error',
|
|
24
|
+
'simple-import-sort/exports': 'error',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
15
27
|
{
|
|
16
28
|
files: ['**/*.ts', '**/*.js', '**/*.cjs', '**/*.mjs'],
|
|
17
29
|
languageOptions: {
|
|
@@ -19,14 +31,14 @@ export default [
|
|
|
19
31
|
parserOptions: {
|
|
20
32
|
ecmaVersion: 'latest',
|
|
21
33
|
sourceType: 'module',
|
|
22
|
-
project: './tsconfig
|
|
34
|
+
project: './tsconfig.json',
|
|
23
35
|
},
|
|
24
36
|
},
|
|
25
37
|
plugins: { ...typescriptConfig.plugins, ...unicornConfig.plugins, ...prettierConfig.plugins },
|
|
26
38
|
settings: {
|
|
27
39
|
'import/resolver': {
|
|
28
40
|
typescript: {
|
|
29
|
-
project: './tsconfig
|
|
41
|
+
project: './tsconfig.json',
|
|
30
42
|
},
|
|
31
43
|
},
|
|
32
44
|
},
|
package/jestSetup/globalSetup.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { SuperTest, Test } from 'supertest'
|
|
|
5
5
|
|
|
6
6
|
// Augment global scope with shared variables (must be var)
|
|
7
7
|
declare global {
|
|
8
|
-
// eslint-disable-next-line no-var
|
|
9
8
|
var req: SuperTest<Test>
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -14,5 +13,5 @@ declare global {
|
|
|
14
13
|
* https://jestjs.io/docs/configuration#globalsetup-string
|
|
15
14
|
*/
|
|
16
15
|
const setup = async (_globalConfig: Config, _projectConfig: Config) => {}
|
|
17
|
-
|
|
16
|
+
|
|
18
17
|
module.exports = setup
|
package/package.json
CHANGED
|
@@ -38,53 +38,61 @@
|
|
|
38
38
|
"esm"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@xylabs/api": "^3.6.
|
|
42
|
-
"@xylabs/array": "^3.6.
|
|
43
|
-
"@xylabs/assert": "^3.6.
|
|
44
|
-
"@xylabs/axios": "^3.6.
|
|
45
|
-
"@xylabs/crypto": "^3.6.
|
|
46
|
-
"@xylabs/decimal-precision": "^3.6.
|
|
47
|
-
"@xylabs/delay": "^3.6.
|
|
48
|
-
"@xylabs/error": "^3.6.
|
|
49
|
-
"@xylabs/eth-address": "^3.6.
|
|
50
|
-
"@xylabs/exists": "^3.6.
|
|
51
|
-
"@xylabs/forget": "^3.6.
|
|
52
|
-
"@xylabs/function-name": "^3.6.
|
|
53
|
-
"@xylabs/hex": "^3.6.
|
|
54
|
-
"@xylabs/log": "^3.6.
|
|
55
|
-
"@xylabs/logger": "^3.6.
|
|
56
|
-
"@xylabs/object": "^3.6.
|
|
57
|
-
"@xylabs/platform": "^3.6.
|
|
58
|
-
"@xylabs/profile": "^3.6.
|
|
59
|
-
"@xylabs/promise": "^3.6.
|
|
60
|
-
"@xylabs/retry": "^3.6.
|
|
61
|
-
"@xylabs/set": "^3.6.
|
|
62
|
-
"@xylabs/static-implements": "^3.6.
|
|
63
|
-
"@xylabs/timer": "^3.6.
|
|
64
|
-
"@xylabs/url": "^3.6.
|
|
41
|
+
"@xylabs/api": "^3.6.5",
|
|
42
|
+
"@xylabs/array": "^3.6.5",
|
|
43
|
+
"@xylabs/assert": "^3.6.5",
|
|
44
|
+
"@xylabs/axios": "^3.6.5",
|
|
45
|
+
"@xylabs/crypto": "^3.6.5",
|
|
46
|
+
"@xylabs/decimal-precision": "^3.6.5",
|
|
47
|
+
"@xylabs/delay": "^3.6.5",
|
|
48
|
+
"@xylabs/error": "^3.6.5",
|
|
49
|
+
"@xylabs/eth-address": "^3.6.5",
|
|
50
|
+
"@xylabs/exists": "^3.6.5",
|
|
51
|
+
"@xylabs/forget": "^3.6.5",
|
|
52
|
+
"@xylabs/function-name": "^3.6.5",
|
|
53
|
+
"@xylabs/hex": "^3.6.5",
|
|
54
|
+
"@xylabs/log": "^3.6.5",
|
|
55
|
+
"@xylabs/logger": "^3.6.5",
|
|
56
|
+
"@xylabs/object": "^3.6.5",
|
|
57
|
+
"@xylabs/platform": "^3.6.5",
|
|
58
|
+
"@xylabs/profile": "^3.6.5",
|
|
59
|
+
"@xylabs/promise": "^3.6.5",
|
|
60
|
+
"@xylabs/retry": "^3.6.5",
|
|
61
|
+
"@xylabs/set": "^3.6.5",
|
|
62
|
+
"@xylabs/static-implements": "^3.6.5",
|
|
63
|
+
"@xylabs/timer": "^3.6.5",
|
|
64
|
+
"@xylabs/url": "^3.6.5"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/jest": "^29.5.12",
|
|
68
68
|
"@types/supertest": "^6.0.2",
|
|
69
|
-
"@typescript-eslint/
|
|
70
|
-
"@
|
|
71
|
-
"@xylabs/
|
|
72
|
-
"@xylabs/eslint-config-flat": "^3.12.
|
|
73
|
-
"@xylabs/ts-scripts-yarn3": "^3.12.
|
|
74
|
-
"@xylabs/tsconfig": "^3.12.
|
|
75
|
-
"@xylabs/tsconfig-jest": "^3.12.
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
|
70
|
+
"@typescript-eslint/parser": "^7.17.0",
|
|
71
|
+
"@xylabs/config": "^3.12.4",
|
|
72
|
+
"@xylabs/eslint-config-flat": "^3.12.4",
|
|
73
|
+
"@xylabs/ts-scripts-yarn3": "^3.12.4",
|
|
74
|
+
"@xylabs/tsconfig": "^3.12.4",
|
|
75
|
+
"@xylabs/tsconfig-jest": "^3.12.4",
|
|
76
|
+
"babel-jest": "^29.7.0",
|
|
76
77
|
"dotenv": "^16.4.5",
|
|
77
78
|
"eslint": "^9.7.0",
|
|
79
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
80
|
+
"eslint-plugin-import": "^2.29.1",
|
|
81
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
82
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
83
|
+
"eslint-plugin-sonarjs": "^1.0.4",
|
|
84
|
+
"eslint-plugin-workspaces": "^0.10.1",
|
|
78
85
|
"jest": "^29.7.0",
|
|
79
86
|
"jest-environment-jsdom": "^29.7.0",
|
|
80
87
|
"jest-extended": "^4.0.2",
|
|
81
88
|
"jest-sorted": "^1.0.15",
|
|
89
|
+
"prettier": "^3.3.3",
|
|
82
90
|
"reflect-metadata": "^0.2.2",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
91
|
+
"supertest": "^7.0.0",
|
|
92
|
+
"ts-jest": "^29.2.3",
|
|
93
|
+
"ts-node": "^10.9.2",
|
|
94
|
+
"typedoc": "^0.26.5",
|
|
95
|
+
"typescript": "^5.5.4"
|
|
88
96
|
},
|
|
89
97
|
"publishConfig": {
|
|
90
98
|
"access": "public"
|
|
@@ -106,6 +114,6 @@
|
|
|
106
114
|
"node": "18.17.1",
|
|
107
115
|
"yarn": "1.22.19"
|
|
108
116
|
},
|
|
109
|
-
"version": "3.6.
|
|
117
|
+
"version": "3.6.5",
|
|
110
118
|
"type": "module"
|
|
111
119
|
}
|