@xyo-network/diviner-model 2.66.9 → 2.67.0-rc.1
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/cjs/typeChecks.js +4 -4
- package/dist/cjs/typeChecks.js.map +1 -1
- package/dist/esm/typeChecks.js +5 -5
- package/dist/esm/typeChecks.js.map +1 -1
- package/dist/types/typeChecks.d.ts +5 -5
- package/dist/types/typeChecks.d.ts.map +1 -1
- package/package.json +9 -8
- package/src/typeChecks.ts +5 -5
- package/dist/docs.json +0 -9706
package/dist/cjs/typeChecks.js
CHANGED
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.withDivinerInstance = exports.withDivinerModule = exports.asDivinerInstance = exports.asDivinerModule = exports.isDivinerModule = exports.isDivinerInstance = void 0;
|
|
4
4
|
const module_model_1 = require("@xyo-network/module-model");
|
|
5
5
|
const Queries_1 = require("./Queries");
|
|
6
|
-
exports.isDivinerInstance = module_model_1.IsInstanceFactory.create({ divine: 'function' }, module_model_1.isModuleInstance);
|
|
7
|
-
exports.isDivinerModule = module_model_1.IsModuleFactory.create([Queries_1.DivinerDivineQuerySchema]);
|
|
8
|
-
exports.asDivinerModule = module_model_1.
|
|
9
|
-
exports.asDivinerInstance = module_model_1.
|
|
6
|
+
exports.isDivinerInstance = new module_model_1.IsInstanceFactory().create({ divine: 'function' }, [module_model_1.isModuleInstance]);
|
|
7
|
+
exports.isDivinerModule = new module_model_1.IsModuleFactory().create([Queries_1.DivinerDivineQuerySchema]);
|
|
8
|
+
exports.asDivinerModule = module_model_1.AsObjectFactory.create(exports.isDivinerModule);
|
|
9
|
+
exports.asDivinerInstance = module_model_1.AsObjectFactory.create(exports.isDivinerInstance);
|
|
10
10
|
exports.withDivinerModule = module_model_1.WithFactory.create(exports.isDivinerModule);
|
|
11
11
|
exports.withDivinerInstance = module_model_1.WithFactory.create(exports.isDivinerInstance);
|
|
12
12
|
//# sourceMappingURL=typeChecks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.js","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"typeChecks.js","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":";;;AAAA,4DAA8H;AAG9H,uCAAoD;AAEvC,QAAA,iBAAiB,GAAG,IAAI,gCAAiB,EAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,+BAAgB,CAAC,CAAC,CAAA;AAC/G,QAAA,eAAe,GAAG,IAAI,8BAAe,EAAiB,CAAC,MAAM,CAAC,CAAC,kCAAwB,CAAC,CAAC,CAAA;AAEzF,QAAA,eAAe,GAAG,8BAAe,CAAC,MAAM,CAAC,uBAAe,CAAC,CAAA;AACzD,QAAA,iBAAiB,GAAG,8BAAe,CAAC,MAAM,CAAC,yBAAiB,CAAC,CAAA;AAC7D,QAAA,iBAAiB,GAAG,0BAAW,CAAC,MAAM,CAAC,uBAAe,CAAC,CAAA;AACvD,QAAA,mBAAmB,GAAG,0BAAW,CAAC,MAAM,CAAC,yBAAiB,CAAC,CAAA"}
|
package/dist/esm/typeChecks.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AsObjectFactory, IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model';
|
|
2
2
|
import { DivinerDivineQuerySchema } from './Queries';
|
|
3
|
-
export const isDivinerInstance = IsInstanceFactory.create({ divine: 'function' }, isModuleInstance);
|
|
4
|
-
export const isDivinerModule = IsModuleFactory.create([DivinerDivineQuerySchema]);
|
|
5
|
-
export const asDivinerModule =
|
|
6
|
-
export const asDivinerInstance =
|
|
3
|
+
export const isDivinerInstance = new IsInstanceFactory().create({ divine: 'function' }, [isModuleInstance]);
|
|
4
|
+
export const isDivinerModule = new IsModuleFactory().create([DivinerDivineQuerySchema]);
|
|
5
|
+
export const asDivinerModule = AsObjectFactory.create(isDivinerModule);
|
|
6
|
+
export const asDivinerInstance = AsObjectFactory.create(isDivinerInstance);
|
|
7
7
|
export const withDivinerModule = WithFactory.create(isDivinerModule);
|
|
8
8
|
export const withDivinerInstance = WithFactory.create(isDivinerInstance);
|
|
9
9
|
//# sourceMappingURL=typeChecks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.js","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"typeChecks.js","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAG9H,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAC5H,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAiB,CAAC,MAAM,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAA;AAEtG,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;AACtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;AAC1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;AACpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DivinerInstance, DivinerModule } from './Diviner';
|
|
2
|
-
export declare const isDivinerInstance: import("@xyo-network/module-model").
|
|
2
|
+
export declare const isDivinerInstance: import("@xyo-network/module-model").ObjectTypeCheck<DivinerInstance>;
|
|
3
3
|
export declare const isDivinerModule: import("@xyo-network/module-model").ModuleTypeCheck<DivinerModule>;
|
|
4
4
|
export declare const asDivinerModule: {
|
|
5
|
-
(module: any): DivinerModule | undefined;
|
|
6
|
-
(module: any, assert: string | (() => string)): DivinerModule;
|
|
5
|
+
(module: any, config?: import("@xyo-network/module-model").ObjectTypeConfig | undefined): DivinerModule | undefined;
|
|
6
|
+
(module: any, assert: string | (() => string), config?: import("@xyo-network/module-model").ObjectTypeConfig | undefined): DivinerModule;
|
|
7
7
|
};
|
|
8
8
|
export declare const asDivinerInstance: {
|
|
9
|
-
(module: any): DivinerInstance | undefined;
|
|
10
|
-
(module: any, assert: string | (() => string)): DivinerInstance;
|
|
9
|
+
(module: any, config?: import("@xyo-network/module-model").ObjectTypeConfig | undefined): DivinerInstance | undefined;
|
|
10
|
+
(module: any, assert: string | (() => string), config?: import("@xyo-network/module-model").ObjectTypeConfig | undefined): DivinerInstance;
|
|
11
11
|
};
|
|
12
12
|
export declare const withDivinerModule: <R>(module: any, closure: (module: DivinerModule) => R) => R | undefined;
|
|
13
13
|
export declare const withDivinerInstance: <R>(module: any, closure: (module: DivinerInstance) => R) => R | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG1D,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG1D,eAAO,MAAM,iBAAiB,sEAA8F,CAAA;AAC5H,eAAO,MAAM,eAAe,oEAA0E,CAAA;AAEtG,eAAO,MAAM,eAAe;;;CAA0C,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;CAA4C,CAAA;AAC1E,eAAO,MAAM,iBAAiB,0EAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB,4EAAwC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/core": "~2.
|
|
14
|
-
"@xyo-network/module": "~2.
|
|
15
|
-
"@xyo-network/module-model": "~2.
|
|
16
|
-
"@xyo-network/payload-model": "~2.
|
|
17
|
-
"@xyo-network/promise": "~2.
|
|
13
|
+
"@xyo-network/core": "~2.67.0-rc.1",
|
|
14
|
+
"@xyo-network/module": "~2.67.0-rc.1",
|
|
15
|
+
"@xyo-network/module-model": "~2.67.0-rc.1",
|
|
16
|
+
"@xyo-network/payload-model": "~2.67.0-rc.1",
|
|
17
|
+
"@xyo-network/promise": "~2.67.0-rc.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
|
21
|
-
"@xylabs/tsconfig": "^2.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.0",
|
|
21
|
+
"@xylabs/tsconfig": "^2.19.0",
|
|
22
22
|
"typescript": "^5.1.6"
|
|
23
23
|
},
|
|
24
24
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -54,5 +54,6 @@
|
|
|
54
54
|
},
|
|
55
55
|
"sideEffects": false,
|
|
56
56
|
"types": "dist/types/index.d.ts",
|
|
57
|
-
"version": "2.
|
|
57
|
+
"version": "2.67.0-rc.1",
|
|
58
|
+
"stableVersion": "2.66.9"
|
|
58
59
|
}
|
package/src/typeChecks.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AsObjectFactory, IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
3
|
import { DivinerInstance, DivinerModule } from './Diviner'
|
|
4
4
|
import { DivinerDivineQuerySchema } from './Queries'
|
|
5
5
|
|
|
6
|
-
export const isDivinerInstance = IsInstanceFactory
|
|
7
|
-
export const isDivinerModule = IsModuleFactory
|
|
6
|
+
export const isDivinerInstance = new IsInstanceFactory<DivinerInstance>().create({ divine: 'function' }, [isModuleInstance])
|
|
7
|
+
export const isDivinerModule = new IsModuleFactory<DivinerModule>().create([DivinerDivineQuerySchema])
|
|
8
8
|
|
|
9
|
-
export const asDivinerModule =
|
|
10
|
-
export const asDivinerInstance =
|
|
9
|
+
export const asDivinerModule = AsObjectFactory.create(isDivinerModule)
|
|
10
|
+
export const asDivinerInstance = AsObjectFactory.create(isDivinerInstance)
|
|
11
11
|
export const withDivinerModule = WithFactory.create(isDivinerModule)
|
|
12
12
|
export const withDivinerInstance = WithFactory.create(isDivinerInstance)
|