@xyo-network/diviner-model 2.67.0-rc.1 → 2.67.0-rc.2
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 +3 -2
- package/dist/cjs/typeChecks.js.map +1 -1
- package/dist/esm/typeChecks.js +2 -1
- 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 +7 -6
- package/src/typeChecks.ts +2 -1
package/dist/cjs/typeChecks.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
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
|
+
const object_identity_1 = require("@xyo-network/object-identity");
|
|
5
6
|
const Queries_1 = require("./Queries");
|
|
6
7
|
exports.isDivinerInstance = new module_model_1.IsInstanceFactory().create({ divine: 'function' }, [module_model_1.isModuleInstance]);
|
|
7
8
|
exports.isDivinerModule = new module_model_1.IsModuleFactory().create([Queries_1.DivinerDivineQuerySchema]);
|
|
8
|
-
exports.asDivinerModule =
|
|
9
|
-
exports.asDivinerInstance =
|
|
9
|
+
exports.asDivinerModule = object_identity_1.AsObjectFactory.create(exports.isDivinerModule);
|
|
10
|
+
exports.asDivinerInstance = object_identity_1.AsObjectFactory.create(exports.isDivinerInstance);
|
|
10
11
|
exports.withDivinerModule = module_model_1.WithFactory.create(exports.isDivinerModule);
|
|
11
12
|
exports.withDivinerInstance = module_model_1.WithFactory.create(exports.isDivinerInstance);
|
|
12
13
|
//# 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,4DAA6G;AAC7G,kEAA8D;AAG9D,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,iCAAe,CAAC,MAAM,CAAC,uBAAe,CAAC,CAAA;AACzD,QAAA,iBAAiB,GAAG,iCAAe,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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model';
|
|
2
|
+
import { AsObjectFactory } from '@xyo-network/object-identity';
|
|
2
3
|
import { DivinerDivineQuerySchema } from './Queries';
|
|
3
4
|
export const isDivinerInstance = new IsInstanceFactory().create({ divine: 'function' }, [isModuleInstance]);
|
|
4
5
|
export const isDivinerModule = new IsModuleFactory().create([DivinerDivineQuerySchema]);
|
|
@@ -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,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC7G,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAG9D,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/
|
|
2
|
+
export declare const isDivinerInstance: import("@xyo-network/object-identity").ObjectTypeCheck<DivinerInstance>;
|
|
3
3
|
export declare const isDivinerModule: import("@xyo-network/module-model").ModuleTypeCheck<DivinerModule>;
|
|
4
4
|
export declare const asDivinerModule: {
|
|
5
|
-
(
|
|
6
|
-
(
|
|
5
|
+
(obj: any, config?: import("@xyo-network/object-identity").ObjectTypeConfig | undefined): DivinerModule | undefined;
|
|
6
|
+
(obj: any, assert: string | (() => string), config?: import("@xyo-network/object-identity").ObjectTypeConfig | undefined): DivinerModule;
|
|
7
7
|
};
|
|
8
8
|
export declare const asDivinerInstance: {
|
|
9
|
-
(
|
|
10
|
-
(
|
|
9
|
+
(obj: any, config?: import("@xyo-network/object-identity").ObjectTypeConfig | undefined): DivinerInstance | undefined;
|
|
10
|
+
(obj: any, assert: string | (() => string), config?: import("@xyo-network/object-identity").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":"
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG1D,eAAO,MAAM,iBAAiB,yEAA8F,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,11 +10,12 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/core": "~2.67.0-rc.
|
|
14
|
-
"@xyo-network/module": "~2.67.0-rc.
|
|
15
|
-
"@xyo-network/module-model": "~2.67.0-rc.
|
|
16
|
-
"@xyo-network/
|
|
17
|
-
"@xyo-network/
|
|
13
|
+
"@xyo-network/core": "~2.67.0-rc.2",
|
|
14
|
+
"@xyo-network/module": "~2.67.0-rc.2",
|
|
15
|
+
"@xyo-network/module-model": "~2.67.0-rc.2",
|
|
16
|
+
"@xyo-network/object-identity": "~2.67.0-rc.2",
|
|
17
|
+
"@xyo-network/payload-model": "~2.67.0-rc.2",
|
|
18
|
+
"@xyo-network/promise": "~2.67.0-rc.2"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@xylabs/ts-scripts-yarn3": "^2.19.0",
|
|
@@ -54,6 +55,6 @@
|
|
|
54
55
|
},
|
|
55
56
|
"sideEffects": false,
|
|
56
57
|
"types": "dist/types/index.d.ts",
|
|
57
|
-
"version": "2.67.0-rc.
|
|
58
|
+
"version": "2.67.0-rc.2",
|
|
58
59
|
"stableVersion": "2.66.9"
|
|
59
60
|
}
|
package/src/typeChecks.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
|
|
2
|
+
import { AsObjectFactory } from '@xyo-network/object-identity'
|
|
2
3
|
|
|
3
4
|
import { DivinerInstance, DivinerModule } from './Diviner'
|
|
4
5
|
import { DivinerDivineQuerySchema } from './Queries'
|