@xyo-network/sdk-js 2.110.10 → 2.110.11
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.cjs.map +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/eslint.config.mjs +36 -0
- package/jest.config.ts +0 -1
- package/jestSetup/globalSetup.ts +0 -2
- package/jestSetup/globalTeardown.ts +0 -1
- package/package.json +26 -15
- package/eslint.config.flat.mjs +0 -98
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nexport * from '@xyo-network/core-payload-plugins'\nexport * from '@xyo-network/manifest'\nexport * from '@xyo-network/modules'\nexport * from '@xyo-network/protocol'\nexport * from '@xyo-network/sdk-utils'\nexport * from '@xyo-network/shared'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nexport * from '@xyo-network/core-payload-plugins'\nexport * from '@xyo-network/manifest'\nexport * from '@xyo-network/modules'\nexport * from '@xyo-network/protocol'\nexport * from '@xyo-network/sdk-utils'\nexport * from '@xyo-network/shared'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,wBAAc,8CADd;AAEA,wBAAc,kCAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,kCAJd;AAKA,wBAAc,mCALd;AAMA,wBAAc,gCANd;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nexport * from '@xyo-network/core-payload-plugins'\nexport * from '@xyo-network/manifest'\nexport * from '@xyo-network/modules'\nexport * from '@xyo-network/protocol'\nexport * from '@xyo-network/sdk-utils'\nexport * from '@xyo-network/shared'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nexport * from '@xyo-network/core-payload-plugins'\nexport * from '@xyo-network/manifest'\nexport * from '@xyo-network/modules'\nexport * from '@xyo-network/protocol'\nexport * from '@xyo-network/sdk-utils'\nexport * from '@xyo-network/shared'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,wBAAc,8CADd;AAEA,wBAAc,kCAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,kCAJd;AAKA,wBAAc,mCALd;AAMA,wBAAc,gCANd;","names":[]}
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nexport * from '@xyo-network/core-payload-plugins'\nexport * from '@xyo-network/manifest'\nexport * from '@xyo-network/modules'\nexport * from '@xyo-network/protocol'\nexport * from '@xyo-network/sdk-utils'\nexport * from '@xyo-network/shared'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\nexport * from '@xyo-network/core-payload-plugins'\nexport * from '@xyo-network/manifest'\nexport * from '@xyo-network/modules'\nexport * from '@xyo-network/protocol'\nexport * from '@xyo-network/sdk-utils'\nexport * from '@xyo-network/shared'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AACA,wBAAc,8CADd;AAEA,wBAAc,kCAFd;AAGA,wBAAc,iCAHd;AAIA,wBAAc,kCAJd;AAKA,wBAAc,mCALd;AAMA,wBAAc,gCANd;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// eslint.config.mjs
|
|
2
|
+
|
|
3
|
+
import { config as xylabsConfig, rulesConfig } 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
|
+
'no-restricted-imports': [
|
|
13
|
+
'warn',
|
|
14
|
+
{
|
|
15
|
+
paths: [
|
|
16
|
+
...rulesConfig.rules['no-restricted-imports'][1].paths,
|
|
17
|
+
'@types/node',
|
|
18
|
+
'@xyo-network/archivist',
|
|
19
|
+
'@xyo-network/bridge',
|
|
20
|
+
'@xyo-network/core',
|
|
21
|
+
'@xyo-network/diviner',
|
|
22
|
+
'@xyo-network/module',
|
|
23
|
+
'@xyo-network/modules',
|
|
24
|
+
'@xyo-network/node',
|
|
25
|
+
'@xyo-network/sdk',
|
|
26
|
+
'@xyo-network/plugins',
|
|
27
|
+
'@xyo-network/protocol',
|
|
28
|
+
'@xyo-network/sentinel',
|
|
29
|
+
'@xyo-network/witness',
|
|
30
|
+
'@xyo-network/core-payload-plugins',
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
]
|
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/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
|
|
|
@@ -16,5 +15,4 @@ declare global {
|
|
|
16
15
|
|
|
17
16
|
const setup = async (_globalConfig: Config, _projectConfig: Config) => {}
|
|
18
17
|
|
|
19
|
-
// eslint-disable-next-line id-denylist
|
|
20
18
|
module.exports = setup
|
package/package.json
CHANGED
|
@@ -12,25 +12,36 @@
|
|
|
12
12
|
"packages/**/*"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@xyo-network/core-payload-plugins": "^2.110.
|
|
16
|
-
"@xyo-network/manifest": "^2.110.
|
|
17
|
-
"@xyo-network/modules": "^2.110.
|
|
18
|
-
"@xyo-network/protocol": "^2.110.
|
|
19
|
-
"@xyo-network/sdk-utils": "^2.110.
|
|
20
|
-
"@xyo-network/shared": "^2.110.
|
|
15
|
+
"@xyo-network/core-payload-plugins": "^2.110.11",
|
|
16
|
+
"@xyo-network/manifest": "^2.110.11",
|
|
17
|
+
"@xyo-network/modules": "^2.110.11",
|
|
18
|
+
"@xyo-network/protocol": "^2.110.11",
|
|
19
|
+
"@xyo-network/sdk-utils": "^2.110.11",
|
|
20
|
+
"@xyo-network/shared": "^2.110.11"
|
|
21
21
|
},
|
|
22
22
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
"@babel/core": "^7.24.9",
|
|
24
25
|
"@types/jest": "^29.5.12",
|
|
25
26
|
"@types/supertest": "^6.0.2",
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@xylabs/
|
|
29
|
-
"@xylabs/
|
|
30
|
-
"@xylabs/
|
|
31
|
-
"@xylabs/
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
|
28
|
+
"@typescript-eslint/parser": "^7.17.0",
|
|
29
|
+
"@xylabs/eslint-config": "^3.13.3",
|
|
30
|
+
"@xylabs/eslint-config-flat": "^3.13.3",
|
|
31
|
+
"@xylabs/forget": "^3.6.5",
|
|
32
|
+
"@xylabs/ts-scripts-yarn3": "^3.13.3",
|
|
33
|
+
"@xylabs/tsconfig": "^3.13.3",
|
|
34
|
+
"@xylabs/tsconfig-dom-jest": "^3.13.3",
|
|
35
|
+
"@xylabs/tsconfig-jest": "^3.13.3",
|
|
36
|
+
"babel-jest": "^29.7.0",
|
|
32
37
|
"dotenv": "^16.4.5",
|
|
33
|
-
"eslint": "^9.
|
|
38
|
+
"eslint": "^9.8.0",
|
|
39
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
40
|
+
"eslint-plugin-import": "^2.29.1",
|
|
41
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
42
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
43
|
+
"eslint-plugin-sonarjs": "^1.0.4",
|
|
44
|
+
"eslint-plugin-workspaces": "^0.10.1",
|
|
34
45
|
"jest": "^29.7.0",
|
|
35
46
|
"jest-docblock": "^29.7.0",
|
|
36
47
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -38,6 +49,7 @@
|
|
|
38
49
|
"jest-runner": "^29.7.0",
|
|
39
50
|
"jest-runner-groups": "^2.2.0",
|
|
40
51
|
"jest-sorted": "^1.0.15",
|
|
52
|
+
"prettier": "^3.3.3",
|
|
41
53
|
"reflect-metadata": "^0.2.2",
|
|
42
54
|
"supertest": "^7.0.0",
|
|
43
55
|
"ts-jest": "^29.2.3",
|
|
@@ -48,7 +60,6 @@
|
|
|
48
60
|
},
|
|
49
61
|
"resolutions": {
|
|
50
62
|
"axios": "^1",
|
|
51
|
-
"eslint": "^8",
|
|
52
63
|
"ethers": "^6",
|
|
53
64
|
"fake-indexeddb": "^4",
|
|
54
65
|
"quick-lru": "^5"
|
|
@@ -117,7 +128,7 @@
|
|
|
117
128
|
"build-typedoc-site": "typedoc"
|
|
118
129
|
},
|
|
119
130
|
"sideEffects": false,
|
|
120
|
-
"version": "2.110.
|
|
131
|
+
"version": "2.110.11",
|
|
121
132
|
"packageManager": "yarn@4.3.1",
|
|
122
133
|
"volta": {
|
|
123
134
|
"node": "22.3.0",
|
package/eslint.config.flat.mjs
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// eslint.config.mjs
|
|
2
|
-
|
|
3
|
-
import tsParser from '@typescript-eslint/parser'
|
|
4
|
-
import { importConfig, prettierConfig, rulesConfig, typescriptConfig, unicornConfig, workspacesConfig } from '@xylabs/eslint-config-flat'
|
|
5
|
-
import deprecation from 'eslint-plugin-deprecation'
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line import/no-default-export
|
|
8
|
-
export default [
|
|
9
|
-
{
|
|
10
|
-
ignores: ['.yarn', '.yarn/**', '**/dist/**', 'dist/**', 'build/**', 'node_modules/**'],
|
|
11
|
-
},
|
|
12
|
-
workspacesConfig,
|
|
13
|
-
unicornConfig,
|
|
14
|
-
prettierConfig,
|
|
15
|
-
rulesConfig,
|
|
16
|
-
{
|
|
17
|
-
...typescriptConfig,
|
|
18
|
-
plugins: { deprecation, ...typescriptConfig.plugins },
|
|
19
|
-
rules: {
|
|
20
|
-
...typescriptConfig.rules,
|
|
21
|
-
'deprecation/deprecation': ['warn'],
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
...importConfig,
|
|
26
|
-
languageOptions: {
|
|
27
|
-
parser: tsParser,
|
|
28
|
-
parserOptions: {
|
|
29
|
-
ecmaFeatures: { modules: true },
|
|
30
|
-
ecmaVersion: 'latest',
|
|
31
|
-
project: './tsconfig-eslint.json',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
rules: {
|
|
35
|
-
...importConfig.rules,
|
|
36
|
-
'import/no-deprecated': ['warn'],
|
|
37
|
-
'import/no-internal-modules': ['off'],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
rules: {
|
|
42
|
-
complexity: ['error', 18],
|
|
43
|
-
'max-depth': ['error', 6],
|
|
44
|
-
'max-lines': [
|
|
45
|
-
'error',
|
|
46
|
-
{
|
|
47
|
-
max: 512,
|
|
48
|
-
skipBlankLines: true,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
'max-nested-callbacks': ['error', 6],
|
|
52
|
-
'max-statements': ['error', 32],
|
|
53
|
-
'no-restricted-imports': [
|
|
54
|
-
'warn',
|
|
55
|
-
{
|
|
56
|
-
paths: [
|
|
57
|
-
'@types/node',
|
|
58
|
-
'@xyo-network/archivist',
|
|
59
|
-
'@xyo-network/bridge',
|
|
60
|
-
'@xyo-network/core',
|
|
61
|
-
'@xyo-network/diviner',
|
|
62
|
-
'@xyo-network/module',
|
|
63
|
-
'@xyo-network/modules',
|
|
64
|
-
'@xyo-network/node',
|
|
65
|
-
'@xyo-network/sdk',
|
|
66
|
-
'@xyo-network/plugins',
|
|
67
|
-
'@xyo-network/protocol',
|
|
68
|
-
'@xyo-network/sentinel',
|
|
69
|
-
'@xyo-network/witness',
|
|
70
|
-
'@xyo-network/core-payload-plugins',
|
|
71
|
-
'react-player',
|
|
72
|
-
'filepond',
|
|
73
|
-
'aos',
|
|
74
|
-
'react-icons',
|
|
75
|
-
'.',
|
|
76
|
-
'..',
|
|
77
|
-
'../..',
|
|
78
|
-
'../../..',
|
|
79
|
-
'../../../..',
|
|
80
|
-
'../../../../..',
|
|
81
|
-
'../../../../../..',
|
|
82
|
-
'../../../../../../..',
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
|
|
87
|
-
//'no-secrets/no-secrets': ['off'],
|
|
88
|
-
'no-tabs': ['error'],
|
|
89
|
-
|
|
90
|
-
'no-unused-disable-directive': ['off'],
|
|
91
|
-
'no-unused-vars': 'off',
|
|
92
|
-
'no-useless-escape': 'off',
|
|
93
|
-
quotes: [2, 'single', 'avoid-escape'],
|
|
94
|
-
'require-await': 'error',
|
|
95
|
-
semi: ['warn', 'never'],
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
]
|