@xyo-network/plugins 3.0.2 → 3.0.4
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.d.ts +1 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +1 -0
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.d.ts.map +1 -0
- package/eslint.config.mjs +23 -4
- package/jest.config.ts +1 -3
- package/package.json +68 -76
- package/jestSetup/globalSetup.ts +0 -18
- package/jestSetup/globalTeardown.ts +0 -12
- package/jestSetup/setupFiles.ts +0 -10
package/dist/browser/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
|
package/dist/node/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,iCAAiC,CAAA"}
|
package/eslint.config.mjs
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
// eslint.config.mjs
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { typescriptConfig,
|
|
4
|
+
unicornConfig,
|
|
5
|
+
workspacesConfig,
|
|
6
|
+
rulesConfig,
|
|
7
|
+
importConfig } from '@xylabs/eslint-config-flat'
|
|
4
8
|
|
|
5
9
|
export default [
|
|
6
10
|
{
|
|
7
|
-
ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],
|
|
11
|
+
ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', '.storybook', 'storybook-static', 'eslint.config.mjs'],
|
|
12
|
+
},
|
|
13
|
+
unicornConfig,
|
|
14
|
+
workspacesConfig,
|
|
15
|
+
rulesConfig,
|
|
16
|
+
{
|
|
17
|
+
...typescriptConfig,
|
|
18
|
+
rules: {
|
|
19
|
+
...typescriptConfig.rules,
|
|
20
|
+
'@typescript-eslint/consistent-type-imports': ['warn'],
|
|
21
|
+
},
|
|
8
22
|
},
|
|
9
|
-
...xylabsConfig,
|
|
10
23
|
{
|
|
11
24
|
rules: {
|
|
12
|
-
'@typescript-eslint/no-unused-expressions': ['off'],
|
|
13
25
|
'no-restricted-imports': [
|
|
14
26
|
'warn',
|
|
15
27
|
{
|
|
@@ -34,4 +46,11 @@ export default [
|
|
|
34
46
|
],
|
|
35
47
|
},
|
|
36
48
|
},
|
|
49
|
+
{
|
|
50
|
+
...importConfig,
|
|
51
|
+
rules: {
|
|
52
|
+
...importConfig.rules,
|
|
53
|
+
'import-x/no-cycle': ['warn', { maxDepth: 5 }],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
37
56
|
]
|
package/jest.config.ts
CHANGED
|
@@ -5,9 +5,7 @@ const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
|
|
|
5
5
|
extensionsToTreatAsEsm: ['.ts'],
|
|
6
6
|
globalSetup: './jestSetup/globalSetup.ts',
|
|
7
7
|
globalTeardown: './jestSetup/globalTeardown.ts',
|
|
8
|
-
moduleNameMapper: {
|
|
9
|
-
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
10
|
-
},
|
|
8
|
+
moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' },
|
|
11
9
|
preset: 'ts-jest',
|
|
12
10
|
setupFiles: ['dotenv/config'],
|
|
13
11
|
setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all', './jestSetup/setupFiles.ts'],
|
package/package.json
CHANGED
|
@@ -1,58 +1,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/plugins",
|
|
3
|
+
"version": "3.0.4",
|
|
4
|
+
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
|
+
"homepage": "https://xyo.network",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins/issues",
|
|
8
|
+
"email": "support@xyo.network"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins.git"
|
|
13
|
+
},
|
|
14
|
+
"license": "LGPL-3.0-only",
|
|
3
15
|
"author": {
|
|
4
|
-
"email": "support@xyo.network",
|
|
5
16
|
"name": "XYO Development Team",
|
|
17
|
+
"email": "support@xyo.network",
|
|
6
18
|
"url": "https://xyo.network"
|
|
7
19
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
|
+
"default": "./dist/neutral/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
11
28
|
},
|
|
29
|
+
"module": "dist/neutral/index.mjs",
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
12
31
|
"workspaces": [
|
|
13
32
|
"packages/**/*"
|
|
14
33
|
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "xy build && xy statics",
|
|
36
|
+
"build-typedoc-site": "typedoc",
|
|
37
|
+
"compile": "./scripts/clear-scrollback-buffer.sh && yarn xy compile",
|
|
38
|
+
"coverage": "yarn jest --coverage --forceExit",
|
|
39
|
+
"deploy": "xy deploy",
|
|
40
|
+
"lint-pkg": "npmPkgJsonLint .",
|
|
41
|
+
"test": "jest --no-cache --forceExit",
|
|
42
|
+
"test-esm": "node $(yarn jest --no-cache --forceExit)"
|
|
43
|
+
},
|
|
44
|
+
"resolutions": {
|
|
45
|
+
"axios": "^1",
|
|
46
|
+
"eslint": "^8",
|
|
47
|
+
"ethers": "^6",
|
|
48
|
+
"quick-lru": "^5"
|
|
49
|
+
},
|
|
15
50
|
"dependencies": {
|
|
16
|
-
"@xyo-network/payload-plugins": "^3.0.
|
|
17
|
-
"@xyo-network/payloadset-plugins": "^3.0.
|
|
51
|
+
"@xyo-network/payload-plugins": "^3.0.4",
|
|
52
|
+
"@xyo-network/payloadset-plugins": "^3.0.4"
|
|
18
53
|
},
|
|
19
54
|
"devDependencies": {
|
|
20
55
|
"@babel/core": "^7.25.2",
|
|
21
|
-
"@
|
|
56
|
+
"@ethersproject/address": "^5.7.0",
|
|
57
|
+
"@ethersproject/bignumber": "^5.7.0",
|
|
58
|
+
"@stylistic/eslint-plugin": "^2.6.4",
|
|
22
59
|
"@types/jest": "^29.5.12",
|
|
23
60
|
"@types/supertest": "^6.0.2",
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
25
|
-
"@typescript-eslint/parser": "^8.
|
|
26
|
-
"@xylabs/eslint-config-flat": "^4.0.
|
|
27
|
-
"@xylabs/forget": "^4.0.
|
|
28
|
-
"@xylabs/platform": "^4.0.
|
|
29
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.
|
|
30
|
-
"@xylabs/tsconfig": "^4.0.
|
|
31
|
-
"@xylabs/tsconfig-dom-jest": "^4.0.
|
|
32
|
-
"@xylabs/tsconfig-jest": "^4.0.
|
|
33
|
-
"@xyo-network/account": "^3.0.
|
|
34
|
-
"@xyo-network/archivist-memory": "^3.0.
|
|
35
|
-
"@xyo-network/boundwitness-builder": "^3.0.
|
|
36
|
-
"@xyo-network/hash": "^3.0.
|
|
37
|
-
"@xyo-network/manifest": "^3.0.
|
|
38
|
-
"@xyo-network/manifest-wrapper": "^3.0.
|
|
39
|
-
"@xyo-network/node-memory": "^3.0.
|
|
40
|
-
"@xyo-network/payload-builder": "^3.0.
|
|
41
|
-
"babel-jest": "^29.7.0",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
|
62
|
+
"@typescript-eslint/parser": "^8.2.0",
|
|
63
|
+
"@xylabs/eslint-config-flat": "^4.0.7",
|
|
64
|
+
"@xylabs/forget": "^4.0.4",
|
|
65
|
+
"@xylabs/platform": "^4.0.4",
|
|
66
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
67
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
68
|
+
"@xylabs/tsconfig-dom-jest": "^4.0.7",
|
|
69
|
+
"@xylabs/tsconfig-jest": "^4.0.7",
|
|
70
|
+
"@xyo-network/account": "^3.0.10",
|
|
71
|
+
"@xyo-network/archivist-memory": "^3.0.10",
|
|
72
|
+
"@xyo-network/boundwitness-builder": "^3.0.10",
|
|
73
|
+
"@xyo-network/hash": "^3.0.10",
|
|
74
|
+
"@xyo-network/manifest": "^3.0.10",
|
|
75
|
+
"@xyo-network/manifest-wrapper": "^3.0.10",
|
|
76
|
+
"@xyo-network/node-memory": "^3.0.10",
|
|
77
|
+
"@xyo-network/payload-builder": "^3.0.10",
|
|
42
78
|
"dotenv": "^16.4.5",
|
|
43
|
-
"eslint": "^9.9.
|
|
79
|
+
"eslint": "^9.9.1",
|
|
44
80
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
45
81
|
"eslint-plugin-import": "^2.29.1",
|
|
46
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
47
|
-
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
48
|
-
"eslint-plugin-sonarjs": "^1.0.4",
|
|
49
|
-
"eslint-plugin-workspaces": "^0.10.1",
|
|
50
|
-
"jest": "^29.7.0",
|
|
51
82
|
"jest-docblock": "^29.7.0",
|
|
52
83
|
"jest-environment-jsdom": "^29.7.0",
|
|
53
84
|
"jest-extended": "^4.0.2",
|
|
54
|
-
"jest-runner": "^29.7.0",
|
|
55
|
-
"jest-runner-groups": "^2.2.0",
|
|
56
85
|
"jest-sorted": "^1.0.15",
|
|
57
86
|
"jsbi": "^3.2.5",
|
|
58
87
|
"jsdom": "^24.1.1",
|
|
@@ -61,55 +90,18 @@
|
|
|
61
90
|
"nodemon": "^3.1.4",
|
|
62
91
|
"reflect-metadata": "^0.2.2",
|
|
63
92
|
"supertest": "^7.0.0",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"tslib": "^2.6.3",
|
|
67
|
-
"typedoc": "^0.26.5",
|
|
93
|
+
"tslib": "^2.7.0",
|
|
94
|
+
"typedoc": "^0.26.6",
|
|
68
95
|
"typescript": "^5.5.4",
|
|
69
96
|
"vitest": "^2.0.5"
|
|
70
97
|
},
|
|
71
|
-
"resolutions": {
|
|
72
|
-
"axios": "^1",
|
|
73
|
-
"eslint": "^8",
|
|
74
|
-
"ethers": "^6",
|
|
75
|
-
"quick-lru": "^5"
|
|
76
|
-
},
|
|
77
|
-
"resolutions_comment": "We set the above resolutions to make sure we pull in the latest versions of these packages even if some sub packages request earlier versions",
|
|
78
|
-
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
79
|
-
"exports": {
|
|
80
|
-
".": {
|
|
81
|
-
"types": "./dist/neutral/index.d.ts",
|
|
82
|
-
"default": "./dist/neutral/index.mjs"
|
|
83
|
-
},
|
|
84
|
-
"./package.json": "./package.json"
|
|
85
|
-
},
|
|
86
|
-
"module": "dist/neutral/index.mjs",
|
|
87
|
-
"types": "dist/neutral/index.d.ts",
|
|
88
|
-
"homepage": "https://xyo.network",
|
|
89
|
-
"license": "LGPL-3.0-only",
|
|
90
|
-
"publishConfig": {
|
|
91
|
-
"access": "public"
|
|
92
|
-
},
|
|
93
|
-
"repository": {
|
|
94
|
-
"type": "git",
|
|
95
|
-
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
96
|
-
},
|
|
97
|
-
"scripts": {
|
|
98
|
-
"coverage": "yarn jest --coverage --forceExit",
|
|
99
|
-
"compile": "./scripts/clear-scrollback-buffer.sh && yarn xy compile",
|
|
100
|
-
"build": "xy build && xy statics",
|
|
101
|
-
"deploy": "xy deploy",
|
|
102
|
-
"lint-pkg": "npmPkgJsonLint .",
|
|
103
|
-
"test-esm": "node $(yarn jest --no-cache --forceExit)",
|
|
104
|
-
"test": "jest --no-cache --forceExit",
|
|
105
|
-
"build-typedoc-site": "typedoc"
|
|
106
|
-
},
|
|
107
|
-
"sideEffects": false,
|
|
108
|
-
"version": "3.0.2",
|
|
109
98
|
"packageManager": "yarn@4.4.0",
|
|
110
99
|
"volta": {
|
|
111
100
|
"node": "22.3.0",
|
|
112
101
|
"yarn": "1.22.22"
|
|
113
102
|
},
|
|
114
|
-
"
|
|
103
|
+
"publishConfig": {
|
|
104
|
+
"access": "public"
|
|
105
|
+
},
|
|
106
|
+
"resolutions_comment": "We set the above resolutions to make sure we pull in the latest versions of these packages even if some sub packages request earlier versions"
|
|
115
107
|
}
|
package/jestSetup/globalSetup.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { config } from 'dotenv'
|
|
2
|
-
config()
|
|
3
|
-
import { Config } from 'jest'
|
|
4
|
-
import { SuperTest, Test } from 'supertest'
|
|
5
|
-
|
|
6
|
-
// Augment global scope with shared variables (must be var)
|
|
7
|
-
declare global {
|
|
8
|
-
// eslint-disable-next-line no-var
|
|
9
|
-
var req: SuperTest<Test>
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Jest global setup method runs before any tests are run
|
|
14
|
-
* https://jestjs.io/docs/configuration#globalsetup-string
|
|
15
|
-
*/
|
|
16
|
-
const setup = async (_globalConfig: Config, _projectConfig: Config) => {}
|
|
17
|
-
// eslint-disable-next-line id-denylist
|
|
18
|
-
module.exports = setup
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { config } from 'dotenv'
|
|
2
|
-
config()
|
|
3
|
-
import { Config } from 'jest'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Jest global teardown method runs after all tests are run
|
|
7
|
-
* https://jestjs.io/docs/configuration#globalteardown-string
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
const teardown = async (_globalConfig: Config, _projectConfig: Config) => {}
|
|
11
|
-
// eslint-disable-next-line id-denylist
|
|
12
|
-
module.exports = teardown
|
package/jestSetup/setupFiles.ts
DELETED