@xylabs/sdk-js 3.6.4 → 3.6.6

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.
@@ -0,0 +1,13 @@
1
+ // eslint.config.mjs
2
+
3
+ import { config as xylabsConfig } from '@xylabs/eslint-config-flat'
4
+
5
+ export default [
6
+ {
7
+ ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],
8
+ },
9
+ ...xylabsConfig,
10
+ {
11
+ rules: {},
12
+ },
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
@@ -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
- // eslint-disable-next-line id-denylist
16
+
18
17
  module.exports = setup
@@ -8,5 +8,5 @@ import { Config } from 'jest'
8
8
  */
9
9
 
10
10
  const teardown = async (_globalConfig: Config, _projectConfig: Config) => {}
11
- // eslint-disable-next-line id-denylist
11
+
12
12
  module.exports = teardown
package/package.json CHANGED
@@ -38,53 +38,61 @@
38
38
  "esm"
39
39
  ],
40
40
  "dependencies": {
41
- "@xylabs/api": "^3.6.4",
42
- "@xylabs/array": "^3.6.4",
43
- "@xylabs/assert": "^3.6.4",
44
- "@xylabs/axios": "^3.6.4",
45
- "@xylabs/crypto": "^3.6.4",
46
- "@xylabs/decimal-precision": "^3.6.4",
47
- "@xylabs/delay": "^3.6.4",
48
- "@xylabs/error": "^3.6.4",
49
- "@xylabs/eth-address": "^3.6.4",
50
- "@xylabs/exists": "^3.6.4",
51
- "@xylabs/forget": "^3.6.4",
52
- "@xylabs/function-name": "^3.6.4",
53
- "@xylabs/hex": "^3.6.4",
54
- "@xylabs/log": "^3.6.4",
55
- "@xylabs/logger": "^3.6.4",
56
- "@xylabs/object": "^3.6.4",
57
- "@xylabs/platform": "^3.6.4",
58
- "@xylabs/profile": "^3.6.4",
59
- "@xylabs/promise": "^3.6.4",
60
- "@xylabs/retry": "^3.6.4",
61
- "@xylabs/set": "^3.6.4",
62
- "@xylabs/static-implements": "^3.6.4",
63
- "@xylabs/timer": "^3.6.4",
64
- "@xylabs/url": "^3.6.4"
41
+ "@xylabs/api": "^3.6.6",
42
+ "@xylabs/array": "^3.6.6",
43
+ "@xylabs/assert": "^3.6.6",
44
+ "@xylabs/axios": "^3.6.6",
45
+ "@xylabs/crypto": "^3.6.6",
46
+ "@xylabs/decimal-precision": "^3.6.6",
47
+ "@xylabs/delay": "^3.6.6",
48
+ "@xylabs/error": "^3.6.6",
49
+ "@xylabs/eth-address": "^3.6.6",
50
+ "@xylabs/exists": "^3.6.6",
51
+ "@xylabs/forget": "^3.6.6",
52
+ "@xylabs/function-name": "^3.6.6",
53
+ "@xylabs/hex": "^3.6.6",
54
+ "@xylabs/log": "^3.6.6",
55
+ "@xylabs/logger": "^3.6.6",
56
+ "@xylabs/object": "^3.6.6",
57
+ "@xylabs/platform": "^3.6.6",
58
+ "@xylabs/profile": "^3.6.6",
59
+ "@xylabs/promise": "^3.6.6",
60
+ "@xylabs/retry": "^3.6.6",
61
+ "@xylabs/set": "^3.6.6",
62
+ "@xylabs/static-implements": "^3.6.6",
63
+ "@xylabs/timer": "^3.6.6",
64
+ "@xylabs/url": "^3.6.6"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/jest": "^29.5.12",
68
68
  "@types/supertest": "^6.0.2",
69
- "@typescript-eslint/parser": "^7.16.1",
70
- "@xylabs/config": "^3.12.2",
71
- "@xylabs/eslint-config": "^3.12.2",
72
- "@xylabs/eslint-config-flat": "^3.12.2",
73
- "@xylabs/ts-scripts-yarn3": "^3.12.2",
74
- "@xylabs/tsconfig": "^3.12.2",
75
- "@xylabs/tsconfig-jest": "^3.12.2",
69
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
70
+ "@typescript-eslint/parser": "^7.18.0",
71
+ "@xylabs/config": "^3.14.1",
72
+ "@xylabs/eslint-config-flat": "^3.14.1",
73
+ "@xylabs/ts-scripts-yarn3": "^3.14.1",
74
+ "@xylabs/tsconfig": "^3.14.1",
75
+ "@xylabs/tsconfig-jest": "^3.14.1",
76
+ "babel-jest": "^29.7.0",
76
77
  "dotenv": "^16.4.5",
77
- "eslint": "^9.7.0",
78
+ "eslint": "^9.8.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
- "ts-jest": "^29.2.2",
84
- "typescript": "^5.5.3"
85
- },
86
- "resolutions": {
87
- "eslint": "^8"
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"
@@ -103,9 +111,9 @@
103
111
  },
104
112
  "engineStrict": true,
105
113
  "volta": {
106
- "node": "18.17.1",
114
+ "node": "22.3.0",
107
115
  "yarn": "1.22.19"
108
116
  },
109
- "version": "3.6.4",
117
+ "version": "3.6.6",
110
118
  "type": "module"
111
119
  }
@@ -1,114 +0,0 @@
1
- // eslint.config.mjs
2
-
3
- import { typescriptConfig, unicornConfig, prettierConfig, rulesConfig, workspacesConfig } from '@xylabs/eslint-config-flat'
4
- import tsParser from '@typescript-eslint/parser'
5
-
6
- // eslint-disable-next-line import/no-default-export
7
- export default [
8
- {
9
- ignores: ['.yarn', '.yarn/**', '**/dist/**', 'dist/**', 'build/**', 'node_modules/**'],
10
- },
11
- prettierConfig,
12
- typescriptConfig,
13
- rulesConfig,
14
- workspacesConfig,
15
- {
16
- files: ['**/*.ts', '**/*.js', '**/*.cjs', '**/*.mjs'],
17
- languageOptions: {
18
- parser: tsParser,
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- sourceType: 'module',
22
- project: './tsconfig-eslint.json',
23
- },
24
- },
25
- plugins: { ...typescriptConfig.plugins, ...unicornConfig.plugins, ...prettierConfig.plugins },
26
- settings: {
27
- 'import/resolver': {
28
- typescript: {
29
- project: './tsconfig-eslint.json',
30
- },
31
- },
32
- },
33
- rules: {
34
- ...typescriptConfig.rules,
35
- ...unicornConfig.rules,
36
- ...prettierConfig.rules,
37
- 'no-unused-disable-directive': ['off'],
38
- complexity: ['error', 18],
39
- 'max-depth': ['error', 6],
40
- 'max-lines': [
41
- 'error',
42
- {
43
- max: 512,
44
- skipBlankLines: true,
45
- },
46
- ],
47
- 'max-nested-callbacks': ['error', 6],
48
- 'max-statements': ['error', 32],
49
- 'no-restricted-imports': [
50
- 'warn',
51
- {
52
- paths: [
53
- 'lodash',
54
- 'react-player',
55
- 'filepond',
56
- 'aos',
57
- 'react-icons',
58
- '.',
59
- '..',
60
- '../..',
61
- '../../..',
62
- '../../../..',
63
- '../../../../..',
64
- '../../../../../..',
65
- '../../../../../../..',
66
- ],
67
- },
68
- ],
69
- //'no-secrets/no-secrets': ['off'],
70
- 'no-tabs': ['error'],
71
- 'no-unused-vars': 'off',
72
- 'no-useless-escape': 'off',
73
- quotes: [2, 'single', 'avoid-escape'],
74
- 'require-await': 'error',
75
- semi: ['warn', 'never'],
76
- 'no-unused-disable-directive': ['off'],
77
- 'import/no-internal-modules': ['off'],
78
- 'import/no-deprecated': ['off'],
79
- 'no-restricted-imports': [
80
- 'warn',
81
- {
82
- paths: [
83
- '@types/node',
84
- '@xyo-network/archivist',
85
- '@xyo-network/bridge',
86
- '@xyo-network/core',
87
- '@xyo-network/diviner',
88
- '@xyo-network/module',
89
- '@xyo-network/modules',
90
- '@xyo-network/node',
91
- '@xyo-network/sdk',
92
- '@xyo-network/plugins',
93
- '@xyo-network/protocol',
94
- '@xyo-network/sentinel',
95
- '@xyo-network/witness',
96
- '@xyo-network/core-payload-plugins',
97
- 'react-player',
98
- 'filepond',
99
- 'aos',
100
- 'react-icons',
101
- '.',
102
- '..',
103
- '../..',
104
- '../../..',
105
- '../../../..',
106
- '../../../../..',
107
- '../../../../../..',
108
- '../../../../../../..',
109
- ],
110
- },
111
- ],
112
- },
113
- },
114
- ]