@xylabs/sdk-js 3.6.5 → 3.6.7
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/browser/{index.js → index.mjs} +1 -1
- package/dist/{node/index.js → neutral/index.mjs} +1 -1
- package/dist/{neutral/index.js → node/index.mjs} +1 -1
- package/eslint.config.mjs +4 -117
- package/jest.config.ts +0 -1
- package/package.json +38 -38
- /package/dist/browser/{index.js.map → index.mjs.map} +0 -0
- /package/dist/neutral/{index.js.map → index.mjs.map} +0 -0
- /package/dist/node/{index.js.map → index.mjs.map} +0 -0
package/eslint.config.mjs
CHANGED
|
@@ -1,126 +1,13 @@
|
|
|
1
1
|
// eslint.config.mjs
|
|
2
2
|
|
|
3
|
-
import
|
|
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'
|
|
3
|
+
import { config as xylabsConfig } from '@xylabs/eslint-config-flat'
|
|
7
4
|
|
|
8
5
|
export default [
|
|
9
6
|
{
|
|
10
|
-
ignores: ['.yarn', '.
|
|
7
|
+
ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],
|
|
11
8
|
},
|
|
12
|
-
|
|
13
|
-
prettierConfig,
|
|
14
|
-
typescriptConfig,
|
|
15
|
-
rulesConfig,
|
|
16
|
-
workspacesConfig,
|
|
17
|
-
importConfig,
|
|
9
|
+
...xylabsConfig,
|
|
18
10
|
{
|
|
19
|
-
|
|
20
|
-
'simple-import-sort': simpleImportSort,
|
|
21
|
-
},
|
|
22
|
-
rules: {
|
|
23
|
-
'simple-import-sort/imports': 'error',
|
|
24
|
-
'simple-import-sort/exports': 'error',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
files: ['**/*.ts', '**/*.js', '**/*.cjs', '**/*.mjs'],
|
|
29
|
-
languageOptions: {
|
|
30
|
-
parser: tsParser,
|
|
31
|
-
parserOptions: {
|
|
32
|
-
ecmaVersion: 'latest',
|
|
33
|
-
sourceType: 'module',
|
|
34
|
-
project: './tsconfig.json',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
plugins: { ...typescriptConfig.plugins, ...unicornConfig.plugins, ...prettierConfig.plugins },
|
|
38
|
-
settings: {
|
|
39
|
-
'import/resolver': {
|
|
40
|
-
typescript: {
|
|
41
|
-
project: './tsconfig.json',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
rules: {
|
|
46
|
-
...typescriptConfig.rules,
|
|
47
|
-
...unicornConfig.rules,
|
|
48
|
-
...prettierConfig.rules,
|
|
49
|
-
'no-unused-disable-directive': ['off'],
|
|
50
|
-
complexity: ['error', 18],
|
|
51
|
-
'max-depth': ['error', 6],
|
|
52
|
-
'max-lines': [
|
|
53
|
-
'error',
|
|
54
|
-
{
|
|
55
|
-
max: 512,
|
|
56
|
-
skipBlankLines: true,
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
'max-nested-callbacks': ['error', 6],
|
|
60
|
-
'max-statements': ['error', 32],
|
|
61
|
-
'no-restricted-imports': [
|
|
62
|
-
'warn',
|
|
63
|
-
{
|
|
64
|
-
paths: [
|
|
65
|
-
'lodash',
|
|
66
|
-
'react-player',
|
|
67
|
-
'filepond',
|
|
68
|
-
'aos',
|
|
69
|
-
'react-icons',
|
|
70
|
-
'.',
|
|
71
|
-
'..',
|
|
72
|
-
'../..',
|
|
73
|
-
'../../..',
|
|
74
|
-
'../../../..',
|
|
75
|
-
'../../../../..',
|
|
76
|
-
'../../../../../..',
|
|
77
|
-
'../../../../../../..',
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
//'no-secrets/no-secrets': ['off'],
|
|
82
|
-
'no-tabs': ['error'],
|
|
83
|
-
'no-unused-vars': 'off',
|
|
84
|
-
'no-useless-escape': 'off',
|
|
85
|
-
quotes: [2, 'single', 'avoid-escape'],
|
|
86
|
-
'require-await': 'error',
|
|
87
|
-
semi: ['warn', 'never'],
|
|
88
|
-
'no-unused-disable-directive': ['off'],
|
|
89
|
-
'import/no-internal-modules': ['off'],
|
|
90
|
-
'import/no-deprecated': ['off'],
|
|
91
|
-
'no-restricted-imports': [
|
|
92
|
-
'warn',
|
|
93
|
-
{
|
|
94
|
-
paths: [
|
|
95
|
-
'@types/node',
|
|
96
|
-
'@xyo-network/archivist',
|
|
97
|
-
'@xyo-network/bridge',
|
|
98
|
-
'@xyo-network/core',
|
|
99
|
-
'@xyo-network/diviner',
|
|
100
|
-
'@xyo-network/module',
|
|
101
|
-
'@xyo-network/modules',
|
|
102
|
-
'@xyo-network/node',
|
|
103
|
-
'@xyo-network/sdk',
|
|
104
|
-
'@xyo-network/plugins',
|
|
105
|
-
'@xyo-network/protocol',
|
|
106
|
-
'@xyo-network/sentinel',
|
|
107
|
-
'@xyo-network/witness',
|
|
108
|
-
'@xyo-network/core-payload-plugins',
|
|
109
|
-
'react-player',
|
|
110
|
-
'filepond',
|
|
111
|
-
'aos',
|
|
112
|
-
'react-icons',
|
|
113
|
-
'.',
|
|
114
|
-
'..',
|
|
115
|
-
'../..',
|
|
116
|
-
'../../..',
|
|
117
|
-
'../../../..',
|
|
118
|
-
'../../../../..',
|
|
119
|
-
'../../../../../..',
|
|
120
|
-
'../../../../../../..',
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
},
|
|
11
|
+
rules: {},
|
|
125
12
|
},
|
|
126
13
|
]
|
package/jest.config.ts
CHANGED
|
@@ -30,5 +30,4 @@ const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
|
|
|
30
30
|
|
|
31
31
|
const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es', 'quick-lru'] })
|
|
32
32
|
|
|
33
|
-
// eslint-disable-next-line import/no-default-export
|
|
34
33
|
export default config
|
package/package.json
CHANGED
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"default": "./dist/neutral/index.cjs"
|
|
22
22
|
},
|
|
23
23
|
"import": {
|
|
24
|
-
"types": "./dist/neutral/index.d.
|
|
25
|
-
"default": "./dist/neutral/index.
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
|
+
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"main": "./dist/neutral/index.cjs",
|
|
31
31
|
"types": "./dist/neutral/index.d.ts",
|
|
32
|
-
"module": "./dist/neutral/index.
|
|
32
|
+
"module": "./dist/neutral/index.mjs",
|
|
33
33
|
"homepage": "https://xylabs.com",
|
|
34
34
|
"keywords": [
|
|
35
35
|
"xylabs",
|
|
@@ -38,44 +38,44 @@
|
|
|
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.7",
|
|
42
|
+
"@xylabs/array": "^3.6.7",
|
|
43
|
+
"@xylabs/assert": "^3.6.7",
|
|
44
|
+
"@xylabs/axios": "^3.6.7",
|
|
45
|
+
"@xylabs/crypto": "^3.6.7",
|
|
46
|
+
"@xylabs/decimal-precision": "^3.6.7",
|
|
47
|
+
"@xylabs/delay": "^3.6.7",
|
|
48
|
+
"@xylabs/error": "^3.6.7",
|
|
49
|
+
"@xylabs/eth-address": "^3.6.7",
|
|
50
|
+
"@xylabs/exists": "^3.6.7",
|
|
51
|
+
"@xylabs/forget": "^3.6.7",
|
|
52
|
+
"@xylabs/function-name": "^3.6.7",
|
|
53
|
+
"@xylabs/hex": "^3.6.7",
|
|
54
|
+
"@xylabs/log": "^3.6.7",
|
|
55
|
+
"@xylabs/logger": "^3.6.7",
|
|
56
|
+
"@xylabs/object": "^3.6.7",
|
|
57
|
+
"@xylabs/platform": "^3.6.7",
|
|
58
|
+
"@xylabs/profile": "^3.6.7",
|
|
59
|
+
"@xylabs/promise": "^3.6.7",
|
|
60
|
+
"@xylabs/retry": "^3.6.7",
|
|
61
|
+
"@xylabs/set": "^3.6.7",
|
|
62
|
+
"@xylabs/static-implements": "^3.6.7",
|
|
63
|
+
"@xylabs/timer": "^3.6.7",
|
|
64
|
+
"@xylabs/url": "^3.6.7"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/jest": "^29.5.12",
|
|
68
68
|
"@types/supertest": "^6.0.2",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
70
|
-
"@typescript-eslint/parser": "^
|
|
71
|
-
"@xylabs/config": "^3.
|
|
72
|
-
"@xylabs/eslint-config-flat": "^3.
|
|
73
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
74
|
-
"@xylabs/tsconfig": "^3.
|
|
75
|
-
"@xylabs/tsconfig-jest": "^3.
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
70
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
71
|
+
"@xylabs/config": "^3.15.4",
|
|
72
|
+
"@xylabs/eslint-config-flat": "^3.15.4",
|
|
73
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.4",
|
|
74
|
+
"@xylabs/tsconfig": "^3.15.4",
|
|
75
|
+
"@xylabs/tsconfig-jest": "^3.15.4",
|
|
76
76
|
"babel-jest": "^29.7.0",
|
|
77
77
|
"dotenv": "^16.4.5",
|
|
78
|
-
"eslint": "^9.
|
|
78
|
+
"eslint": "^9.8.0",
|
|
79
79
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
80
80
|
"eslint-plugin-import": "^2.29.1",
|
|
81
81
|
"eslint-plugin-prettier": "^5.2.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"prettier": "^3.3.3",
|
|
90
90
|
"reflect-metadata": "^0.2.2",
|
|
91
91
|
"supertest": "^7.0.0",
|
|
92
|
-
"ts-jest": "^29.2.
|
|
92
|
+
"ts-jest": "^29.2.4",
|
|
93
93
|
"ts-node": "^10.9.2",
|
|
94
94
|
"typedoc": "^0.26.5",
|
|
95
95
|
"typescript": "^5.5.4"
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
},
|
|
112
112
|
"engineStrict": true,
|
|
113
113
|
"volta": {
|
|
114
|
-
"node": "
|
|
114
|
+
"node": "22.3.0",
|
|
115
115
|
"yarn": "1.22.19"
|
|
116
116
|
},
|
|
117
|
-
"version": "3.6.
|
|
117
|
+
"version": "3.6.7",
|
|
118
118
|
"type": "module"
|
|
119
119
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|