@xyo-network/sentinel 2.64.7 → 2.64.9
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/index.js +1 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/typeChecks.js +12 -0
- package/dist/cjs/typeChecks.js.map +1 -0
- package/dist/docs.json +6844 -5928
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/typeChecks.js +9 -0
- package/dist/esm/typeChecks.js.map +1 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/typeChecks.d.ts +14 -0
- package/dist/types/typeChecks.d.ts.map +1 -0
- package/package.json +16 -16
- package/src/index.ts +1 -2
- package/src/typeChecks.ts +12 -0
- package/dist/cjs/isSentinelInstance.js +0 -6
- package/dist/cjs/isSentinelInstance.js.map +0 -1
- package/dist/cjs/isSentinelModule.js +0 -7
- package/dist/cjs/isSentinelModule.js.map +0 -1
- package/dist/cjs/withSentinelModule.js +0 -9
- package/dist/cjs/withSentinelModule.js.map +0 -1
- package/dist/esm/isSentinelInstance.js +0 -3
- package/dist/esm/isSentinelInstance.js.map +0 -1
- package/dist/esm/isSentinelModule.js +0 -4
- package/dist/esm/isSentinelModule.js.map +0 -1
- package/dist/esm/withSentinelModule.js +0 -6
- package/dist/esm/withSentinelModule.js.map +0 -1
- package/dist/types/isSentinelInstance.d.ts +0 -2
- package/dist/types/isSentinelInstance.d.ts.map +0 -1
- package/dist/types/isSentinelModule.d.ts +0 -3
- package/dist/types/isSentinelModule.d.ts.map +0 -1
- package/dist/types/withSentinelModule.d.ts +0 -3
- package/dist/types/withSentinelModule.d.ts.map +0 -1
- package/src/isSentinelInstance.ts +0 -5
- package/src/isSentinelModule.ts +0 -6
- package/src/withSentinelModule.ts +0 -7
package/dist/esm/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * from './AbstractSentinel';
|
|
2
2
|
export * from './Automation';
|
|
3
3
|
export * from './Config';
|
|
4
|
-
export * from './isSentinelModule';
|
|
5
4
|
export * from './MemorySentinel';
|
|
6
5
|
export * from './Queries';
|
|
7
6
|
export * from './SentinelIntervalAutomationWrapper';
|
|
8
7
|
export * from './SentinelModel';
|
|
9
8
|
export * from './SentinelRunner';
|
|
10
|
-
export * from './
|
|
9
|
+
export * from './typeChecks';
|
|
11
10
|
export * from './Wrapper';
|
|
12
11
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,qCAAqC,CAAA;AACnD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AsFactory, IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model';
|
|
2
|
+
import { SentinelReportQuerySchema } from './Queries';
|
|
3
|
+
export const isSentinelInstance = IsInstanceFactory.create({ report: 'function' }, isModuleInstance);
|
|
4
|
+
export const isSentinelModule = IsModuleFactory.create([SentinelReportQuerySchema]);
|
|
5
|
+
export const asSentinelModule = AsFactory.create(isSentinelModule);
|
|
6
|
+
export const asSentinelInstance = AsFactory.create(isSentinelInstance);
|
|
7
|
+
export const withSentinelModule = WithFactory.create(isSentinelModule);
|
|
8
|
+
export const withSentinelInstance = WithFactory.create(isSentinelInstance);
|
|
9
|
+
//# sourceMappingURL=typeChecks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeChecks.js","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAExH,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAGrD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,MAAM,CAAmB,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,gBAAgB,CAAC,CAAA;AACtH,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,MAAM,CAAiB,CAAC,yBAAyB,CAAC,CAAC,CAAA;AAEnG,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;AACtE,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export * from './AbstractSentinel';
|
|
2
2
|
export * from './Automation';
|
|
3
3
|
export * from './Config';
|
|
4
|
-
export * from './isSentinelModule';
|
|
5
4
|
export * from './MemorySentinel';
|
|
6
5
|
export * from './Queries';
|
|
7
6
|
export * from './SentinelIntervalAutomationWrapper';
|
|
8
7
|
export * from './SentinelModel';
|
|
9
8
|
export * from './SentinelRunner';
|
|
10
|
-
export * from './
|
|
9
|
+
export * from './typeChecks';
|
|
11
10
|
export * from './Wrapper';
|
|
12
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,qCAAqC,CAAA;AACnD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SentinelModule } from './SentinelModel';
|
|
2
|
+
export declare const isSentinelInstance: import("@xyo-network/module-model").InstanceTypeCheck<import("./SentinelModel").Sentinel>;
|
|
3
|
+
export declare const isSentinelModule: import("@xyo-network/module-model").ModuleTypeCheck<SentinelModule>;
|
|
4
|
+
export declare const asSentinelModule: {
|
|
5
|
+
(module: any): SentinelModule | undefined;
|
|
6
|
+
(module: any, assert: string | (() => string)): SentinelModule;
|
|
7
|
+
};
|
|
8
|
+
export declare const asSentinelInstance: {
|
|
9
|
+
(module: any): import("./SentinelModel").Sentinel | undefined;
|
|
10
|
+
(module: any, assert: string | (() => string)): import("./SentinelModel").Sentinel;
|
|
11
|
+
};
|
|
12
|
+
export declare const withSentinelModule: <R>(module: any, closure: (module: SentinelModule) => R) => R | undefined;
|
|
13
|
+
export declare const withSentinelInstance: <R>(module: any, closure: (module: import("./SentinelModel").Sentinel) => R) => R | undefined;
|
|
14
|
+
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoB,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAElE,eAAO,MAAM,kBAAkB,2FAAuF,CAAA;AACtH,eAAO,MAAM,gBAAgB,qEAAsE,CAAA;AAEnG,eAAO,MAAM,gBAAgB;;;CAAqC,CAAA;AAClE,eAAO,MAAM,kBAAkB;;;CAAuC,CAAA;AACtE,eAAO,MAAM,kBAAkB,2EAAuC,CAAA;AACtE,eAAO,MAAM,oBAAoB,+FAAyC,CAAA"}
|
package/package.json
CHANGED
|
@@ -12,26 +12,26 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/assert": "^2.9.3",
|
|
14
14
|
"@xylabs/promise": "^2.9.3",
|
|
15
|
-
"@xyo-network/account": "^2.64.
|
|
16
|
-
"@xyo-network/account-model": "^2.64.
|
|
17
|
-
"@xyo-network/archivist": "^2.64.
|
|
18
|
-
"@xyo-network/archivist-wrapper": "^2.64.
|
|
19
|
-
"@xyo-network/boundwitness-model": "^2.64.
|
|
20
|
-
"@xyo-network/core": "^2.64.
|
|
21
|
-
"@xyo-network/error": "^2.64.
|
|
22
|
-
"@xyo-network/module": "^2.64.
|
|
23
|
-
"@xyo-network/module-model": "^2.64.
|
|
24
|
-
"@xyo-network/payload-model": "^2.64.
|
|
25
|
-
"@xyo-network/payload-wrapper": "^2.64.
|
|
26
|
-
"@xyo-network/promise": "^2.64.
|
|
27
|
-
"@xyo-network/witness": "^2.64.
|
|
15
|
+
"@xyo-network/account": "^2.64.9",
|
|
16
|
+
"@xyo-network/account-model": "^2.64.9",
|
|
17
|
+
"@xyo-network/archivist": "^2.64.9",
|
|
18
|
+
"@xyo-network/archivist-wrapper": "^2.64.9",
|
|
19
|
+
"@xyo-network/boundwitness-model": "^2.64.9",
|
|
20
|
+
"@xyo-network/core": "^2.64.9",
|
|
21
|
+
"@xyo-network/error": "^2.64.9",
|
|
22
|
+
"@xyo-network/module": "^2.64.9",
|
|
23
|
+
"@xyo-network/module-model": "^2.64.9",
|
|
24
|
+
"@xyo-network/payload-model": "^2.64.9",
|
|
25
|
+
"@xyo-network/payload-wrapper": "^2.64.9",
|
|
26
|
+
"@xyo-network/promise": "^2.64.9",
|
|
27
|
+
"@xyo-network/witness": "^2.64.9",
|
|
28
28
|
"lodash": "^4.17.21"
|
|
29
29
|
},
|
|
30
30
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/lodash": "^4.14.195",
|
|
33
|
-
"@xylabs/ts-scripts-yarn3": "^2.18.
|
|
34
|
-
"@xylabs/tsconfig": "^2.18.
|
|
33
|
+
"@xylabs/ts-scripts-yarn3": "^2.18.7",
|
|
34
|
+
"@xylabs/tsconfig": "^2.18.7",
|
|
35
35
|
"typescript": "^5.1.6"
|
|
36
36
|
},
|
|
37
37
|
"browser": "dist/esm/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
},
|
|
67
67
|
"sideEffects": false,
|
|
68
68
|
"types": "dist/types/index.d.ts",
|
|
69
|
-
"version": "2.64.
|
|
69
|
+
"version": "2.64.9"
|
|
70
70
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export * from './AbstractSentinel'
|
|
2
2
|
export * from './Automation'
|
|
3
3
|
export * from './Config'
|
|
4
|
-
export * from './isSentinelModule'
|
|
5
4
|
export * from './MemorySentinel'
|
|
6
5
|
export * from './Queries'
|
|
7
6
|
export * from './SentinelIntervalAutomationWrapper'
|
|
8
7
|
export * from './SentinelModel'
|
|
9
8
|
export * from './SentinelRunner'
|
|
10
|
-
export * from './
|
|
9
|
+
export * from './typeChecks'
|
|
11
10
|
export * from './Wrapper'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AsFactory, IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
|
|
2
|
+
|
|
3
|
+
import { SentinelReportQuerySchema } from './Queries'
|
|
4
|
+
import { SentinelInstance, SentinelModule } from './SentinelModel'
|
|
5
|
+
|
|
6
|
+
export const isSentinelInstance = IsInstanceFactory.create<SentinelInstance>({ report: 'function' }, isModuleInstance)
|
|
7
|
+
export const isSentinelModule = IsModuleFactory.create<SentinelModule>([SentinelReportQuerySchema])
|
|
8
|
+
|
|
9
|
+
export const asSentinelModule = AsFactory.create(isSentinelModule)
|
|
10
|
+
export const asSentinelInstance = AsFactory.create(isSentinelInstance)
|
|
11
|
+
export const withSentinelModule = WithFactory.create(isSentinelModule)
|
|
12
|
+
export const withSentinelInstance = WithFactory.create(isSentinelInstance)
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSentinelInstance = void 0;
|
|
4
|
-
const module_1 = require("@xyo-network/module");
|
|
5
|
-
exports.isSentinelInstance = module_1.IsInstanceFactory.create({ report: 'function' });
|
|
6
|
-
//# sourceMappingURL=isSentinelInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSentinelInstance.js","sourceRoot":"","sources":["../../src/isSentinelInstance.ts"],"names":[],"mappings":";;;AAAA,gDAAuD;AAI1C,QAAA,kBAAkB,GAAG,0BAAiB,CAAC,MAAM,CAAmB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSentinelModule = void 0;
|
|
4
|
-
const module_1 = require("@xyo-network/module");
|
|
5
|
-
const Queries_1 = require("./Queries");
|
|
6
|
-
exports.isSentinelModule = module_1.IsModuleFactory.create([Queries_1.SentinelReportQuerySchema]);
|
|
7
|
-
//# sourceMappingURL=isSentinelModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSentinelModule.js","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAErD,uCAAqD;AAGxC,QAAA,gBAAgB,GAAG,wBAAe,CAAC,MAAM,CAAiB,CAAC,mCAAyB,CAAC,CAAC,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withSentinelModule = exports.withSentinelInstance = void 0;
|
|
4
|
-
const module_model_1 = require("@xyo-network/module-model");
|
|
5
|
-
const isSentinelInstance_1 = require("./isSentinelInstance");
|
|
6
|
-
const isSentinelModule_1 = require("./isSentinelModule");
|
|
7
|
-
exports.withSentinelInstance = module_model_1.WithFactory.create(isSentinelInstance_1.isSentinelInstance);
|
|
8
|
-
exports.withSentinelModule = module_model_1.WithFactory.create(isSentinelModule_1.isSentinelModule);
|
|
9
|
-
//# sourceMappingURL=withSentinelModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withSentinelModule.js","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":";;;AAAA,4DAAuD;AAEvD,6DAAyD;AACzD,yDAAqD;AAExC,QAAA,oBAAoB,GAAG,0BAAW,CAAC,MAAM,CAAC,uCAAkB,CAAC,CAAA;AAC7D,QAAA,kBAAkB,GAAG,0BAAW,CAAC,MAAM,CAAC,mCAAgB,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSentinelInstance.js","sourceRoot":"","sources":["../../src/isSentinelInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,MAAM,CAAmB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSentinelModule.js","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAGrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,MAAM,CAAiB,CAAC,yBAAyB,CAAC,CAAC,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WithFactory } from '@xyo-network/module-model';
|
|
2
|
-
import { isSentinelInstance } from './isSentinelInstance';
|
|
3
|
-
import { isSentinelModule } from './isSentinelModule';
|
|
4
|
-
export const withSentinelInstance = WithFactory.create(isSentinelInstance);
|
|
5
|
-
export const withSentinelModule = WithFactory.create(isSentinelModule);
|
|
6
|
-
//# sourceMappingURL=withSentinelModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withSentinelModule.js","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;AAC1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSentinelInstance.d.ts","sourceRoot":"","sources":["../../src/isSentinelInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,qFAAqE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSentinelModule.d.ts","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,gBAAgB,+DAAsE,CAAA"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const withSentinelInstance: <R extends void = void>(module: any, closure: (module: import("./SentinelModel").Sentinel) => R) => R | undefined;
|
|
2
|
-
export declare const withSentinelModule: <R extends void = void>(module: any, closure: (module: import("./SentinelModel").SentinelModule) => R) => R | undefined;
|
|
3
|
-
//# sourceMappingURL=withSentinelModule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withSentinelModule.d.ts","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,mHAAyC,CAAA;AAC1E,eAAO,MAAM,kBAAkB,yHAAuC,CAAA"}
|
package/src/isSentinelModule.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WithFactory } from '@xyo-network/module-model'
|
|
2
|
-
|
|
3
|
-
import { isSentinelInstance } from './isSentinelInstance'
|
|
4
|
-
import { isSentinelModule } from './isSentinelModule'
|
|
5
|
-
|
|
6
|
-
export const withSentinelInstance = WithFactory.create(isSentinelInstance)
|
|
7
|
-
export const withSentinelModule = WithFactory.create(isSentinelModule)
|