@xyo-network/plugins 2.80.0 → 2.80.3
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/README.md +16 -16
- package/jest.config.ts +4 -2
- package/jestSetup/globalSetup.ts +16 -0
- package/jestSetup/globalTeardown.ts +9 -0
- package/jestSetup/setupFiles.ts +10 -0
- package/package.json +16 -10
- /package/{typedoc.site.json → typedoc.json} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[![logo][]](https://xyo.network)
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# plugins
|
|
4
4
|
|
|
5
5
|
[![main-build][]][main-build-link]
|
|
6
6
|
[![npm-badge][]][npm-link]
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
> We continue to maintain this software in the interest of developer education.
|
|
15
15
|
|
|
16
16
|
## Table of Contents
|
|
17
|
-
- [Title](#
|
|
17
|
+
- [Title](#plugins)
|
|
18
18
|
- [Table of Contents](#table-of-contents)
|
|
19
19
|
- [Description](#description)
|
|
20
20
|
- [Install](#install)
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
## Description
|
|
26
26
|
|
|
27
|
-
>
|
|
27
|
+
> Plugins (Witnesses, Diviners, etc...) to be used with the XYO Platform
|
|
28
28
|
> Designed to work in both browser based and Node JS based solutions.
|
|
29
29
|
|
|
30
30
|
## Use the sdk in another project
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
Using npm:
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
npm i --save @xyo-network/
|
|
35
|
+
npm i --save @xyo-network/plugins
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Using yarn:
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
|
-
yarn add @xyo-network/
|
|
41
|
+
yarn add @xyo-network/plugins
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Building the sdk locally
|
|
@@ -66,7 +66,7 @@ yarn xy compile
|
|
|
66
66
|
|
|
67
67
|
## License
|
|
68
68
|
|
|
69
|
-
> See the [LICENSE](https://raw.githubusercontent.com/XYOracleNetwork/
|
|
69
|
+
> See the [LICENSE](https://raw.githubusercontent.com/XYOracleNetwork/plugins/main/LICENSE)
|
|
70
70
|
> file for license details
|
|
71
71
|
|
|
72
72
|
## Credits
|
|
@@ -75,20 +75,20 @@ yarn xy compile
|
|
|
75
75
|
|
|
76
76
|
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
77
77
|
|
|
78
|
-
[main-build]: https://github.com/XYOracleNetwork/
|
|
79
|
-
[main-build-link]: https://github.com/XYOracleNetwork/
|
|
78
|
+
[main-build]: https://github.com/XYOracleNetwork/plugins/actions/workflows/build.yml/badge.svg
|
|
79
|
+
[main-build-link]: https://github.com/XYOracleNetwork/plugins/actions/workflows/build.yml
|
|
80
80
|
|
|
81
|
-
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/
|
|
82
|
-
[npm-link]: https://www.npmjs.com/package/@xyo-network/
|
|
81
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/plugins.svg
|
|
82
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/plugins
|
|
83
83
|
|
|
84
84
|
[codacy-badge]: https://app.codacy.com/project/badge/Grade/ba1f344ae34e4bfe999331cf4e27b9f5
|
|
85
|
-
[codacy-link]: https://www.codacy.com/gh/XYOracleNetwork/
|
|
85
|
+
[codacy-link]: https://www.codacy.com/gh/XYOracleNetwork/plugins/dashboard?utm_source=github.com&utm_medium=referral&utm_content=XYOracleNetwork/plugins&utm_campaign=Badge_Grade
|
|
86
86
|
|
|
87
87
|
[codeclimate-badge]: https://api.codeclimate.com/v1/badges/0e76349c9541f3866948/maintainability
|
|
88
|
-
[codeclimate-link]: https://codeclimate.com/github/XYOracleNetwork/
|
|
88
|
+
[codeclimate-link]: https://codeclimate.com/github/XYOracleNetwork/plugins/maintainability
|
|
89
89
|
|
|
90
|
-
[snyk-badge]: https://snyk.io/test/github/XYOracleNetwork/
|
|
91
|
-
[snyk-link]: https://snyk.io/test/github/XYOracleNetwork/
|
|
90
|
+
[snyk-badge]: https://snyk.io/test/github/XYOracleNetwork/plugins/badge.svg?targetFile=package.json
|
|
91
|
+
[snyk-link]: https://snyk.io/test/github/XYOracleNetwork/plugins?targetFile=package.json
|
|
92
92
|
|
|
93
|
-
[license-badge]: https://img.shields.io/github/license/XYOracleNetwork/
|
|
94
|
-
[license-link]: https://github.com/XYOracleNetwork/
|
|
93
|
+
[license-badge]: https://img.shields.io/github/license/XYOracleNetwork/plugins
|
|
94
|
+
[license-link]: https://github.com/XYOracleNetwork/plugins/blob/main/LICENSE
|
package/jest.config.ts
CHANGED
|
@@ -2,12 +2,14 @@ const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
|
|
|
2
2
|
const esModulesList = Array.isArray(esModules) ? esModules.join('|') : esModules
|
|
3
3
|
return {
|
|
4
4
|
coveragePathIgnorePatterns: ['<rootDir>/(.*)/dist'],
|
|
5
|
+
globalSetup: './jestSetup/globalSetup.ts',
|
|
6
|
+
globalTeardown: './jestSetup/globalTeardown.ts',
|
|
5
7
|
moduleNameMapper: {
|
|
6
8
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
7
9
|
},
|
|
8
10
|
preset: 'ts-jest/presets/default-esm',
|
|
9
11
|
setupFiles: ['dotenv/config'],
|
|
10
|
-
setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all'],
|
|
12
|
+
setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all', './jestSetup/setupFiles.ts'],
|
|
11
13
|
testRegex: '(/__tests__/.*|(\\.|/)((!perf\\.)test|spec))\\.tsx?$',
|
|
12
14
|
testTimeout: 200000,
|
|
13
15
|
transform: {
|
|
@@ -23,7 +25,7 @@ const generateJestConfig = ({ esModules }: { esModules: string[] }) => {
|
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es'] })
|
|
28
|
+
const config = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid', 'lodash-es', 'quick-lru'] })
|
|
27
29
|
|
|
28
30
|
// eslint-disable-next-line import/no-default-export
|
|
29
31
|
export default config
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* eslint-disable no-var */
|
|
2
|
+
import { config } from 'dotenv'
|
|
3
|
+
config()
|
|
4
|
+
import { Config } from 'jest'
|
|
5
|
+
import { SuperTest, Test } from 'supertest'
|
|
6
|
+
|
|
7
|
+
// Augment global scope with shared variables (must be var)
|
|
8
|
+
declare global {
|
|
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
|
+
module.exports = async (_globalConfig: Config, _projectConfig: Config) => {}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
module.exports = async (_globalConfig: Config, _projectConfig: Config) => {}
|
package/package.json
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
},
|
|
8
8
|
"bugs": {
|
|
9
9
|
"email": "support@xyo.network",
|
|
10
|
-
"url": "https://github.com/XYOracleNetwork/
|
|
10
|
+
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"workspaces": [
|
|
13
13
|
"packages/**/*"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xyo-network/payload-plugins": "~2.80.
|
|
17
|
-
"@xyo-network/payloadset-plugins": "~2.80.
|
|
16
|
+
"@xyo-network/payload-plugins": "~2.80.3",
|
|
17
|
+
"@xyo-network/payloadset-plugins": "~2.80.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/core": "^7.23.3",
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
"@types/supertest": "^2.0.16",
|
|
25
25
|
"@typescript-eslint/eslint-plugin": "^6.11.0",
|
|
26
26
|
"@typescript-eslint/parser": "^6.11.0",
|
|
27
|
-
"@xylabs/eslint-config": "^3.
|
|
28
|
-
"@xylabs/
|
|
29
|
-
"@xylabs/
|
|
30
|
-
"@xylabs/tsconfig
|
|
27
|
+
"@xylabs/eslint-config": "^3.2.2",
|
|
28
|
+
"@xylabs/forget": "^2.13.9",
|
|
29
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.2",
|
|
30
|
+
"@xylabs/tsconfig": "^3.2.2",
|
|
31
|
+
"@xylabs/tsconfig-dom-jest": "^3.2.2",
|
|
31
32
|
"babel-jest": "^29.7.0",
|
|
32
33
|
"dotenv": "^16.3.1",
|
|
33
34
|
"eslint": "^8.53.0",
|
|
@@ -48,7 +49,12 @@
|
|
|
48
49
|
"ts-node": "^10.9.1",
|
|
49
50
|
"typescript": "^5.2.2"
|
|
50
51
|
},
|
|
51
|
-
"
|
|
52
|
+
"resolutions": {
|
|
53
|
+
"axios": "^1",
|
|
54
|
+
"bn.js": "^5",
|
|
55
|
+
"quick-lru": "^5"
|
|
56
|
+
},
|
|
57
|
+
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
52
58
|
"exports": {
|
|
53
59
|
".": {
|
|
54
60
|
"browser": {
|
|
@@ -97,8 +103,8 @@
|
|
|
97
103
|
"build-typedoc-site": "xy gen-docs @xyo-network/plugins"
|
|
98
104
|
},
|
|
99
105
|
"sideEffects": false,
|
|
100
|
-
"version": "2.80.
|
|
101
|
-
"packageManager": "yarn@
|
|
106
|
+
"version": "2.80.3",
|
|
107
|
+
"packageManager": "yarn@4.0.2",
|
|
102
108
|
"volta": {
|
|
103
109
|
"node": "18.17.1",
|
|
104
110
|
"yarn": "1.22.19"
|
|
File without changes
|