@xylabs/sdk-js 3.5.1 → 3.5.2

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.
Files changed (2) hide show
  1. package/eslint.config.mjs +114 -0
  2. package/package.json +34 -34
@@ -0,0 +1,114 @@
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
+ ]
package/package.json CHANGED
@@ -38,48 +38,48 @@
38
38
  "esm"
39
39
  ],
40
40
  "dependencies": {
41
- "@xylabs/api": "~3.5.1",
42
- "@xylabs/array": "~3.5.1",
43
- "@xylabs/assert": "~3.5.1",
44
- "@xylabs/axios": "~3.5.1",
45
- "@xylabs/crypto": "~3.5.1",
46
- "@xylabs/decimal-precision": "~3.5.1",
47
- "@xylabs/delay": "~3.5.1",
48
- "@xylabs/error": "~3.5.1",
49
- "@xylabs/eth-address": "~3.5.1",
50
- "@xylabs/exists": "~3.5.1",
51
- "@xylabs/forget": "~3.5.1",
52
- "@xylabs/function-name": "~3.5.1",
53
- "@xylabs/hex": "~3.5.1",
54
- "@xylabs/log": "~3.5.1",
55
- "@xylabs/logger": "~3.5.1",
56
- "@xylabs/object": "~3.5.1",
57
- "@xylabs/platform": "~3.5.1",
58
- "@xylabs/profile": "~3.5.1",
59
- "@xylabs/promise": "~3.5.1",
60
- "@xylabs/retry": "~3.5.1",
61
- "@xylabs/set": "~3.5.1",
62
- "@xylabs/static-implements": "~3.5.1",
63
- "@xylabs/timer": "~3.5.1",
64
- "@xylabs/url": "~3.5.1"
41
+ "@xylabs/api": "~3.5.2",
42
+ "@xylabs/array": "~3.5.2",
43
+ "@xylabs/assert": "~3.5.2",
44
+ "@xylabs/axios": "~3.5.2",
45
+ "@xylabs/crypto": "~3.5.2",
46
+ "@xylabs/decimal-precision": "~3.5.2",
47
+ "@xylabs/delay": "~3.5.2",
48
+ "@xylabs/error": "~3.5.2",
49
+ "@xylabs/eth-address": "~3.5.2",
50
+ "@xylabs/exists": "~3.5.2",
51
+ "@xylabs/forget": "~3.5.2",
52
+ "@xylabs/function-name": "~3.5.2",
53
+ "@xylabs/hex": "~3.5.2",
54
+ "@xylabs/log": "~3.5.2",
55
+ "@xylabs/logger": "~3.5.2",
56
+ "@xylabs/object": "~3.5.2",
57
+ "@xylabs/platform": "~3.5.2",
58
+ "@xylabs/profile": "~3.5.2",
59
+ "@xylabs/promise": "~3.5.2",
60
+ "@xylabs/retry": "~3.5.2",
61
+ "@xylabs/set": "~3.5.2",
62
+ "@xylabs/static-implements": "~3.5.2",
63
+ "@xylabs/timer": "~3.5.2",
64
+ "@xylabs/url": "~3.5.2"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/jest": "^29.5.12",
68
68
  "@types/supertest": "^6.0.2",
69
- "@xylabs/config": "^3.10.4",
70
- "@xylabs/eslint-config": "^3.10.4",
71
- "@xylabs/ts-scripts-yarn3": "^3.10.4",
72
- "@xylabs/tsconfig": "^3.10.4",
73
- "@xylabs/tsconfig-jest": "^3.10.4",
69
+ "@xylabs/config": "^3.11.10",
70
+ "@xylabs/eslint-config-flat": "^3.11.10",
71
+ "@xylabs/ts-scripts-yarn3": "^3.11.10",
72
+ "@xylabs/tsconfig": "^3.11.10",
73
+ "@xylabs/tsconfig-jest": "^3.11.10",
74
74
  "dotenv": "^16.4.5",
75
- "eslint": "^8.57.0",
75
+ "eslint": "^9.5.0",
76
76
  "jest": "^29.7.0",
77
77
  "jest-environment-jsdom": "^29.7.0",
78
78
  "jest-extended": "^4.0.2",
79
79
  "jest-sorted": "^1.0.15",
80
80
  "reflect-metadata": "^0.2.2",
81
- "ts-jest": "^29.1.3",
82
- "typescript": "^5.4.5"
81
+ "ts-jest": "^29.1.5",
82
+ "typescript": "^5.5.2"
83
83
  },
84
84
  "publishConfig": {
85
85
  "access": "public"
@@ -89,7 +89,7 @@
89
89
  "url": "https://github.com/xylabs/sdk-js.git"
90
90
  },
91
91
  "sideEffects": false,
92
- "packageManager": "yarn@4.2.2",
92
+ "packageManager": "yarn@4.3.0",
93
93
  "engines": {
94
94
  "node": ">=18.17.1"
95
95
  },
@@ -101,6 +101,6 @@
101
101
  "node": "18.17.1",
102
102
  "yarn": "1.22.19"
103
103
  },
104
- "version": "3.5.1",
104
+ "version": "3.5.2",
105
105
  "type": "module"
106
106
  }