@xyo-network/diviner-payload-abstract 2.72.8 → 2.73.0

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.
@@ -0,0 +1,7 @@
1
+ import { AbstractDiviner } from '@xyo-network/abstract-diviner';
2
+ import { PayloadDivinerParams } from '@xyo-network/diviner-payload-model';
3
+
4
+ declare abstract class PayloadDiviner<TParams extends PayloadDivinerParams = PayloadDivinerParams> extends AbstractDiviner<TParams> {
5
+ }
6
+
7
+ export { PayloadDiviner };
@@ -0,0 +1,7 @@
1
+ import { AbstractDiviner } from '@xyo-network/abstract-diviner';
2
+ import { PayloadDivinerParams } from '@xyo-network/diviner-payload-model';
3
+
4
+ declare abstract class PayloadDiviner<TParams extends PayloadDivinerParams = PayloadDivinerParams> extends AbstractDiviner<TParams> {
5
+ }
6
+
7
+ export { PayloadDiviner };
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ PayloadDiviner: () => PayloadDiviner
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+
27
+ // src/Diviner.ts
28
+ var import_abstract_diviner = require("@xyo-network/abstract-diviner");
29
+ var PayloadDiviner = class extends import_abstract_diviner.AbstractDiviner {
30
+ };
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ PayloadDiviner
34
+ });
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/Diviner.ts"],"sourcesContent":["export * from './Diviner'\n","import { AbstractDiviner } from '@xyo-network/abstract-diviner'\nimport { PayloadDivinerParams } from '@xyo-network/diviner-payload-model'\n\nexport abstract class PayloadDiviner<TParams extends PayloadDivinerParams = PayloadDivinerParams> extends AbstractDiviner<TParams> {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8BAAgC;AAGzB,IAAe,iBAAf,cAAmG,wCAAyB;AAAC;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ // src/Diviner.ts
2
+ import { AbstractDiviner } from "@xyo-network/abstract-diviner";
3
+ var PayloadDiviner = class extends AbstractDiviner {
4
+ };
5
+ export {
6
+ PayloadDiviner
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Diviner.ts"],"sourcesContent":["import { AbstractDiviner } from '@xyo-network/abstract-diviner'\nimport { PayloadDivinerParams } from '@xyo-network/diviner-payload-model'\n\nexport abstract class PayloadDiviner<TParams extends PayloadDivinerParams = PayloadDivinerParams> extends AbstractDiviner<TParams> {}\n"],"mappings":";AAAA,SAAS,uBAAuB;AAGzB,IAAe,iBAAf,cAAmG,gBAAyB;AAAC;","names":[]}
package/package.json CHANGED
@@ -10,36 +10,50 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/abstract-diviner": "~2.72.8",
14
- "@xyo-network/diviner-payload-model": "~2.72.8"
13
+ "@xyo-network/abstract-diviner": "~2.73.0",
14
+ "@xyo-network/diviner-payload-model": "~2.73.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@xylabs/ts-scripts-yarn3": "^2.19.3",
18
- "@xylabs/tsconfig": "^2.19.3",
17
+ "@xylabs/ts-scripts-yarn3": "^2.19.5",
18
+ "@xylabs/tsconfig": "^2.19.5",
19
+ "publint": "^0.2.2",
20
+ "tsup": "^7.2.0",
19
21
  "typescript": "^5.2.2"
20
22
  },
23
+ "scripts": {
24
+ "package-compile": "tsup && publint",
25
+ "package-recompile": "tsup && publint"
26
+ },
21
27
  "description": "Primary SDK for using XYO Protocol 2.0",
22
- "browser": "dist/esm/index.js",
23
28
  "docs": "dist/docs.json",
29
+ "types": "dist/index.d.ts",
24
30
  "exports": {
25
31
  ".": {
26
- "node": {
27
- "import": "./dist/esm/index.js",
28
- "require": "./dist/cjs/index.js"
29
- },
30
- "browser": {
31
- "import": "./dist/esm/index.js",
32
- "require": "./dist/cjs/index.js"
32
+ "require": {
33
+ "types": "./dist/index.d.ts",
34
+ "default": "./dist/index.js"
33
35
  },
34
- "default": "./dist/esm/index.js"
36
+ "import": {
37
+ "types": "./dist/index.d.mts",
38
+ "default": "./dist/index.mjs"
39
+ }
35
40
  },
36
41
  "./dist/docs.json": {
37
42
  "default": "./dist/docs.json"
38
43
  },
44
+ "./cjs": {
45
+ "default": "./dist/index.js"
46
+ },
47
+ "./docs": {
48
+ "default": "./dist/docs.json"
49
+ },
50
+ "./esm": {
51
+ "default": "./dist/index.mjs"
52
+ },
39
53
  "./package.json": "./package.json"
40
54
  },
41
- "main": "dist/cjs/index.js",
42
- "module": "dist/esm/index.js",
55
+ "main": "dist/index.js",
56
+ "module": "dist/index.mjs",
43
57
  "homepage": "https://xyo.network",
44
58
  "license": "LGPL-3.0",
45
59
  "publishConfig": {
@@ -50,6 +64,5 @@
50
64
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
51
65
  },
52
66
  "sideEffects": false,
53
- "types": "dist/types/index.d.ts",
54
- "version": "2.72.8"
67
+ "version": "2.73.0"
55
68
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ // eslint-disable-next-line import/no-default-export
4
+ export default defineConfig({
5
+ bundle: true,
6
+ cjsInterop: true,
7
+ clean: true,
8
+ dts: {
9
+ entry: ['src/index.ts'],
10
+ },
11
+ entry: ['src/index.ts'],
12
+ format: ['cjs', 'esm'],
13
+ sourcemap: true,
14
+ splitting: false,
15
+ tsconfig: 'tsconfig.json',
16
+ })
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayloadDiviner = void 0;
4
- const abstract_diviner_1 = require("@xyo-network/abstract-diviner");
5
- class PayloadDiviner extends abstract_diviner_1.AbstractDiviner {
6
- }
7
- exports.PayloadDiviner = PayloadDiviner;
8
- //# sourceMappingURL=Diviner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Diviner.js","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":";;;AAAA,oEAA+D;AAG/D,MAAsB,cAA4E,SAAQ,kCAAwB;CAAG;AAArI,wCAAqI"}
package/dist/cjs/index.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Diviner"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB"}