@xyo-network/sdk-js 3.0.6 → 3.0.8

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.
@@ -4,3 +4,4 @@ export * from '@xyo-network/modules';
4
4
  export * from '@xyo-network/protocol';
5
5
  export * from '@xyo-network/sdk-utils';
6
6
  export * from '@xyo-network/shared';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mCAAmC,CAAA;AACjD,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
@@ -4,3 +4,4 @@ export * from '@xyo-network/modules';
4
4
  export * from '@xyo-network/protocol';
5
5
  export * from '@xyo-network/sdk-utils';
6
6
  export * from '@xyo-network/shared';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mCAAmC,CAAA;AACjD,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
@@ -4,3 +4,4 @@ export * from '@xyo-network/modules';
4
4
  export * from '@xyo-network/protocol';
5
5
  export * from '@xyo-network/sdk-utils';
6
6
  export * from '@xyo-network/shared';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mCAAmC,CAAA;AACjD,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
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,67 +1,24 @@
1
1
  {
2
- "author": {
3
- "email": "support@xyo.network",
4
- "name": "XYO Development Team",
5
- "url": "https://xyo.network"
6
- },
2
+ "name": "@xyo-network/sdk-js",
3
+ "version": "3.0.8",
4
+ "description": "Primary SDK for using XYO Protocol 2.0",
5
+ "homepage": "https://xyo.network",
7
6
  "bugs": {
8
- "email": "support@xyo.network",
9
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
10
- },
11
- "workspaces": [
12
- "packages/**/*"
13
- ],
14
- "dependencies": {
15
- "@xyo-network/core-payload-plugins": "^3.0.6",
16
- "@xyo-network/manifest": "^3.0.6",
17
- "@xyo-network/modules": "^3.0.6",
18
- "@xyo-network/protocol": "^3.0.6",
19
- "@xyo-network/sdk-utils": "^3.0.6",
20
- "@xyo-network/shared": "^3.0.6"
7
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues",
8
+ "email": "support@xyo.network"
21
9
  },
22
- "description": "Primary SDK for using XYO Protocol 2.0",
23
- "devDependencies": {
24
- "@babel/core": "^7.25.2",
25
- "@stylistic/eslint-plugin": "^2.6.4",
26
- "@types/jest": "^29.5.12",
27
- "@types/supertest": "^6.0.2",
28
- "@typescript-eslint/eslint-plugin": "^8.2.0",
29
- "@typescript-eslint/parser": "^8.2.0",
30
- "@xylabs/eslint-config-flat": "^4.0.0-rc.30",
31
- "@xylabs/forget": "^4.0.2",
32
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.30",
33
- "@xylabs/tsconfig": "^4.0.0-rc.30",
34
- "@xylabs/tsconfig-dom-jest": "^4.0.0-rc.30",
35
- "@xylabs/tsconfig-jest": "^4.0.0-rc.30",
36
- "babel-jest": "^29.7.0",
37
- "dotenv": "^16.4.5",
38
- "eslint": "^9.9.0",
39
- "eslint-import-resolver-typescript": "^3.6.1",
40
- "jest": "^29.7.0",
41
- "jest-docblock": "^29.7.0",
42
- "jest-environment-jsdom": "^29.7.0",
43
- "jest-extended": "^4.0.2",
44
- "jest-runner": "^29.7.0",
45
- "jest-runner-groups": "^2.2.0",
46
- "jest-sorted": "^1.0.15",
47
- "jsdom": "^24.1.1",
48
- "reflect-metadata": "^0.2.2",
49
- "supertest": "^7.0.0",
50
- "ts-jest": "^29.2.4",
51
- "ts-node": "^10.9.2",
52
- "tslib": "^2.6.3",
53
- "typedoc": "^0.26.6",
54
- "typedoc-material-theme": "^1.1.0",
55
- "typescript": "^5.5.4",
56
- "vitest": "^2.0.5"
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
57
13
  },
58
- "resolutions": {
59
- "axios": "^1",
60
- "ethers": "^6",
61
- "fake-indexeddb": "^4",
62
- "quick-lru": "^5"
14
+ "license": "LGPL-3.0-only",
15
+ "author": {
16
+ "name": "XYO Development Team",
17
+ "email": "support@xyo.network",
18
+ "url": "https://xyo.network"
63
19
  },
64
- "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",
20
+ "sideEffects": false,
21
+ "type": "module",
65
22
  "exports": {
66
23
  ".": {
67
24
  "browser": {
@@ -84,45 +41,88 @@
84
41
  },
85
42
  "module": "./dist/neutral/index.mjs",
86
43
  "types": "./dist/neutral/index.d.ts",
87
- "homepage": "https://xyo.network",
88
- "license": "LGPL-3.0-only",
89
- "name": "@xyo-network/sdk-js",
90
- "publishConfig": {
91
- "access": "public"
92
- },
93
- "repository": {
94
- "type": "git",
95
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
96
- },
44
+ "workspaces": [
45
+ "packages/**/*"
46
+ ],
97
47
  "scripts": {
98
- "coverage": "yarn jest --coverage --forceExit",
99
- "compile": "./scripts/clear-scrollback-buffer.sh && yarn xy compile",
100
48
  "build": "xy build && xy statics",
49
+ "build-typedoc-site": "typedoc",
50
+ "compile": "./scripts/clear-scrollback-buffer.sh && yarn xy compile",
51
+ "coverage": "yarn jest --coverage --forceExit",
101
52
  "deploy": "xy deploy",
53
+ "free-3033": "kill -9 $(lsof -t -i :3033)",
54
+ "free-8080": "kill -9 $(lsof -t -i :8080)",
55
+ "free-mongo": "kill -9 $(lsof -t -i :55391) && kill -9 $(lsof -t -i :55393)",
102
56
  "lint-pkg": "npmPkgJsonLint .",
103
57
  "perf": "yarn jest -c jest.config.perf.cjs",
104
- "test-esm": "FORCE_COLOR=1 && node $(yarn jest --no-cache --forceExit)",
105
58
  "test": "vitest --watch false",
106
- "test:no-slow": "jest . --passWithNoTests --forceExit -- --group=-slow",
59
+ "test-esm": "FORCE_COLOR=1 && node $(yarn jest --no-cache --forceExit)",
60
+ "test:ci": "jest --runInBand --coverage --forceExit --passWithNoTests",
61
+ "test:hash-perf": "jest packages/protocol/packages/core/packages/hash/src/spec/PayloadHasher.bigobj.perf.spec.ts -c ./jest.config.no-mongo.ts",
62
+ "test:hash-perf-parallel": "jest packages/protocol/packages/core/packages/hash/src/spec/PayloadHasher.bigobj-parallel.perf.spec.ts -c ./jest.config.no-mongo.ts",
107
63
  "test:module": "jest . --passWithNoTests --forceExit -- --group=module",
64
+ "test:no-mongo": "jest ${0} --passWithNoTests --forceExit -c ./jest.config.no-mongo.ts -- --group=-mongo",
65
+ "test:no-slow": "jest . --passWithNoTests --forceExit -- --group=-slow",
108
66
  "test:sentinel": "jest . --passWithNoTests --forceExit -- --group=sentinel",
109
67
  "test:thumbnail": "jest . --passWithNoTests --forceExit -- --group=thumbnail",
110
- "test:no-mongo": "jest ${0} --passWithNoTests --forceExit -c ./jest.config.no-mongo.ts -- --group=-mongo",
111
- "testx": "jest ${0} --passWithNoTests --forceExit -c ./jest.config.no-mongo.ts -- --group=-mongo",
112
- "test:hash-perf": "jest packages/protocol/packages/core/packages/hash/src/spec/PayloadHasher.bigobj.perf.spec.ts -c ./jest.config.no-mongo.ts",
113
- "test:hash-perf-parallel": "jest packages/protocol/packages/core/packages/hash/src/spec/PayloadHasher.bigobj-parallel.perf.spec.ts -c ./jest.config.no-mongo.ts",
114
- "test:ci": "jest --runInBand --coverage --forceExit --passWithNoTests",
115
- "free-8080": "kill -9 $(lsof -t -i :8080)",
116
- "free-3033": "kill -9 $(lsof -t -i :3033)",
117
- "free-mongo": "kill -9 $(lsof -t -i :55391) && kill -9 $(lsof -t -i :55393)",
118
- "build-typedoc-site": "typedoc"
68
+ "testx": "jest ${0} --passWithNoTests --forceExit -c ./jest.config.no-mongo.ts -- --group=-mongo"
69
+ },
70
+ "resolutions": {
71
+ "axios": "^1",
72
+ "ethers": "^6",
73
+ "fake-indexeddb": "^4",
74
+ "quick-lru": "^5"
75
+ },
76
+ "dependencies": {
77
+ "@xyo-network/core-payload-plugins": "^3.0.8",
78
+ "@xyo-network/manifest": "^3.0.8",
79
+ "@xyo-network/modules": "^3.0.8",
80
+ "@xyo-network/protocol": "^3.0.8",
81
+ "@xyo-network/sdk-utils": "^3.0.8",
82
+ "@xyo-network/shared": "^3.0.8"
83
+ },
84
+ "devDependencies": {
85
+ "@babel/core": "^7.25.2",
86
+ "@stylistic/eslint-plugin": "^2.6.4",
87
+ "@types/jest": "^29.5.12",
88
+ "@types/supertest": "^6.0.2",
89
+ "@typescript-eslint/eslint-plugin": "^8.2.0",
90
+ "@typescript-eslint/parser": "^8.2.0",
91
+ "@xylabs/eslint-config-flat": "^4.0.7",
92
+ "@xylabs/forget": "^4.0.3",
93
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
94
+ "@xylabs/tsconfig": "^4.0.7",
95
+ "@xylabs/tsconfig-dom-jest": "^4.0.7",
96
+ "@xylabs/tsconfig-jest": "^4.0.7",
97
+ "babel-jest": "^29.7.0",
98
+ "dotenv": "^16.4.5",
99
+ "eslint": "^9.9.1",
100
+ "eslint-import-resolver-typescript": "^3.6.1",
101
+ "jest": "^29.7.0",
102
+ "jest-docblock": "^29.7.0",
103
+ "jest-environment-jsdom": "^29.7.0",
104
+ "jest-extended": "^4.0.2",
105
+ "jest-runner": "^29.7.0",
106
+ "jest-runner-groups": "^2.2.0",
107
+ "jest-sorted": "^1.0.15",
108
+ "jsdom": "^24.1.1",
109
+ "reflect-metadata": "^0.2.2",
110
+ "supertest": "^7.0.0",
111
+ "ts-jest": "^29.2.5",
112
+ "ts-node": "^10.9.2",
113
+ "tslib": "^2.7.0",
114
+ "typedoc": "^0.26.6",
115
+ "typedoc-material-theme": "^1.1.0",
116
+ "typescript": "^5.5.4",
117
+ "vitest": "^2.0.5"
119
118
  },
120
- "sideEffects": false,
121
- "version": "3.0.6",
122
119
  "packageManager": "yarn@4.4.0",
123
120
  "volta": {
124
121
  "node": "22.3.0",
125
122
  "yarn": "1.22.22"
126
123
  },
127
- "type": "module"
124
+ "publishConfig": {
125
+ "access": "public"
126
+ },
127
+ "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"
128
128
  }
package/xy.config.ts CHANGED
@@ -2,9 +2,7 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: { src: true },
5
- neutral: {
6
- src: true,
7
- },
5
+ neutral: { src: true },
8
6
  node: { src: true },
9
7
  },
10
8
  }