@xyo-network/diviner-identity 2.103.9 → 2.104.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/browser/index.cjs +2 -6
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +2 -6
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/index.cjs +2 -6
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +2 -6
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/index.cjs +3 -10
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +3 -10
- package/dist/node/index.js.map +1 -1
- package/package.json +9 -9
package/dist/browser/index.cjs
CHANGED
|
@@ -31,12 +31,8 @@ var import_diviner_abstract = require("@xyo-network/diviner-abstract");
|
|
|
31
31
|
var import_module_model = require("@xyo-network/module-model");
|
|
32
32
|
function _ts_decorate(decorators, target, key, desc) {
|
|
33
33
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
35
|
-
|
|
36
|
-
else
|
|
37
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
38
|
-
if (d = decorators[i])
|
|
39
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
34
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
36
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
37
|
}
|
|
42
38
|
__name(_ts_decorate, "_ts_decorate");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/IdentityDiviner.ts"],"sourcesContent":["export * from './IdentityDiviner'\n","import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,oBAAyB;AAEzB,8BAAgC;AAEhC,0BAAiD
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/IdentityDiviner.ts"],"sourcesContent":["export * from './IdentityDiviner'\n","import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,oBAAyB;AAEzB,8BAAgC;AAEhC,0BAAiD;;;;;;;;AAM1C,IAAMA,kBAAN,cAQGC,wCAAAA;SAAAA;;;EACR,OAAgBC,eAAe;EAEZC,cAAcC,UAAqC;AACpE,eAAOC,wBAASD,UAAU,MAAM,yCAAA;EAClC;AACF;AAdaJ,kBAAAA,aAAAA;MADZM,qCAAAA;GACYN,eAAAA;","names":["IdentityDiviner","AbstractDiviner","targetSchema","divineHandler","payloads","assertEx","creatableModule"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -7,12 +7,8 @@ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
|
|
|
7
7
|
import { creatableModule } from "@xyo-network/module-model";
|
|
8
8
|
function _ts_decorate(decorators, target, key, desc) {
|
|
9
9
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
11
|
-
|
|
12
|
-
else
|
|
13
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
14
|
-
if (d = decorators[i])
|
|
15
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16
12
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
13
|
}
|
|
18
14
|
__name(_ts_decorate, "_ts_decorate");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/IdentityDiviner.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;AAAA,SAASA,gBAAgB;AAEzB,SAASC,uBAAuB;AAEhC,SAA0BC,uBAAuB
|
|
1
|
+
{"version":3,"sources":["../../src/IdentityDiviner.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;AAAA,SAASA,gBAAgB;AAEzB,SAASC,uBAAuB;AAEhC,SAA0BC,uBAAuB;;;;;;;;AAM1C,IAAMC,kBAAN,cAQGC,gBAAAA;SAAAA;;;EACR,OAAgBC,eAAe;EAEZC,cAAcC,UAAqC;AACpE,WAAOC,SAASD,UAAU,MAAM,yCAAA;EAClC;AACF;AAdaJ,kBAAAA,aAAAA;EADZM,gBAAAA;GACYN,eAAAA;","names":["assertEx","AbstractDiviner","creatableModule","IdentityDiviner","AbstractDiviner","targetSchema","divineHandler","payloads","assertEx","creatableModule"]}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -31,12 +31,8 @@ var import_diviner_abstract = require("@xyo-network/diviner-abstract");
|
|
|
31
31
|
var import_module_model = require("@xyo-network/module-model");
|
|
32
32
|
function _ts_decorate(decorators, target, key, desc) {
|
|
33
33
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
34
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
35
|
-
|
|
36
|
-
else
|
|
37
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
38
|
-
if (d = decorators[i])
|
|
39
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
34
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
35
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
36
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
37
|
}
|
|
42
38
|
__name(_ts_decorate, "_ts_decorate");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/IdentityDiviner.ts"],"sourcesContent":["export * from './IdentityDiviner'\n","import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,oBAAyB;AAEzB,8BAAgC;AAEhC,0BAAiD
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/IdentityDiviner.ts"],"sourcesContent":["export * from './IdentityDiviner'\n","import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,oBAAyB;AAEzB,8BAAgC;AAEhC,0BAAiD;;;;;;;;AAM1C,IAAMA,kBAAN,cAQGC,wCAAAA;SAAAA;;;EACR,OAAgBC,eAAe;EAEZC,cAAcC,UAAqC;AACpE,eAAOC,wBAASD,UAAU,MAAM,yCAAA;EAClC;AACF;AAdaJ,kBAAAA,aAAAA;MADZM,qCAAAA;GACYN,eAAAA;","names":["IdentityDiviner","AbstractDiviner","targetSchema","divineHandler","payloads","assertEx","creatableModule"]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -7,12 +7,8 @@ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
|
|
|
7
7
|
import { creatableModule } from "@xyo-network/module-model";
|
|
8
8
|
function _ts_decorate(decorators, target, key, desc) {
|
|
9
9
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
11
|
-
|
|
12
|
-
else
|
|
13
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
14
|
-
if (d = decorators[i])
|
|
15
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
16
12
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
13
|
}
|
|
18
14
|
__name(_ts_decorate, "_ts_decorate");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/IdentityDiviner.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;AAAA,SAASA,gBAAgB;AAEzB,SAASC,uBAAuB;AAEhC,SAA0BC,uBAAuB
|
|
1
|
+
{"version":3,"sources":["../../src/IdentityDiviner.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;AAAA,SAASA,gBAAgB;AAEzB,SAASC,uBAAuB;AAEhC,SAA0BC,uBAAuB;;;;;;;;AAM1C,IAAMC,kBAAN,cAQGC,gBAAAA;SAAAA;;;EACR,OAAgBC,eAAe;EAEZC,cAAcC,UAAqC;AACpE,WAAOC,SAASD,UAAU,MAAM,yCAAA;EAClC;AACF;AAdaJ,kBAAAA,aAAAA;EADZM,gBAAAA;GACYN,eAAAA;","names":["assertEx","AbstractDiviner","creatableModule","IdentityDiviner","AbstractDiviner","targetSchema","divineHandler","payloads","assertEx","creatableModule"]}
|
package/dist/node/index.cjs
CHANGED
|
@@ -18,10 +18,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
-
var __publicField = (obj, key, value) =>
|
|
22
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
23
|
-
return value;
|
|
24
|
-
};
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
25
22
|
|
|
26
23
|
// src/index.ts
|
|
27
24
|
var src_exports = {};
|
|
@@ -36,12 +33,8 @@ var import_diviner_abstract = require("@xyo-network/diviner-abstract");
|
|
|
36
33
|
var import_module_model = require("@xyo-network/module-model");
|
|
37
34
|
function _ts_decorate(decorators, target, key, desc) {
|
|
38
35
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
39
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
40
|
-
|
|
41
|
-
else
|
|
42
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
43
|
-
if (d = decorators[i])
|
|
44
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
36
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
37
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
45
38
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
46
39
|
}
|
|
47
40
|
__name(_ts_decorate, "_ts_decorate");
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/IdentityDiviner.ts"],"sourcesContent":["export * from './IdentityDiviner'\n","import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/IdentityDiviner.ts"],"sourcesContent":["export * from './IdentityDiviner'\n","import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACAA,oBAAyB;AAEzB,8BAAgC;AAEhC,0BAAiD;;;;;;;;AAM1C,IAAMA,mBAAN,MAAMA,yBAQHC,wCAAAA;EAGWC,cAAcC,UAAqC;AACpE,eAAOC,wBAASD,UAAU,MAAM,yCAAA;EAClC;AACF;AANUF;AACR,cATWD,kBASKK,gBAAe;AAT1B,IAAML,kBAAN;AAAMA,kBAAAA,aAAAA;MADZM,qCAAAA;GACYN,eAAAA;","names":["IdentityDiviner","AbstractDiviner","divineHandler","payloads","assertEx","targetSchema","creatableModule"]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
-
var __publicField = (obj, key, value) =>
|
|
5
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
-
return value;
|
|
7
|
-
};
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
5
|
|
|
9
6
|
// src/IdentityDiviner.ts
|
|
10
7
|
import { assertEx } from "@xylabs/assert";
|
|
@@ -12,12 +9,8 @@ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
|
|
|
12
9
|
import { creatableModule } from "@xyo-network/module-model";
|
|
13
10
|
function _ts_decorate(decorators, target, key, desc) {
|
|
14
11
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
16
|
-
|
|
17
|
-
else
|
|
18
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
19
|
-
if (d = decorators[i])
|
|
20
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
15
|
}
|
|
23
16
|
__name(_ts_decorate, "_ts_decorate");
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/IdentityDiviner.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/IdentityDiviner.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { Promisable } from '@xylabs/promise'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerConfig, DivinerInstance, DivinerModuleEventData, DivinerParams } from '@xyo-network/diviner-model'\nimport { AnyConfigSchema, creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport type IdentityDivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> = DivinerParams<TConfig>\n\n@creatableModule()\nexport class IdentityDiviner<\n TParams extends IdentityDivinerParams = IdentityDivinerParams,\n TIn extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TIn>, TIn, TIn> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TIn>,\n TIn,\n TIn\n >,\n> extends AbstractDiviner<TParams, TIn, TIn, TEventData> {\n static override targetSchema = 'network.xyo.test'\n\n protected override divineHandler(payloads?: TIn[]): Promisable<TIn[]> {\n return assertEx(payloads, () => 'IdentityDiviner requires passed payload') as TIn[]\n }\n}\n"],"mappings":";;;;;;AAAA,SAASA,gBAAgB;AAEzB,SAASC,uBAAuB;AAEhC,SAA0BC,uBAAuB;;;;;;;;AAM1C,IAAMC,mBAAN,MAAMA,yBAQHC,gBAAAA;EAGWC,cAAcC,UAAqC;AACpE,WAAOC,SAASD,UAAU,MAAM,yCAAA;EAClC;AACF;AANUF;AACR,cATWD,kBASKK,gBAAe;AAT1B,IAAML,kBAAN;AAAMA,kBAAAA,aAAAA;EADZM,gBAAAA;GACYN,eAAAA;","names":["assertEx","AbstractDiviner","creatableModule","IdentityDiviner","AbstractDiviner","divineHandler","payloads","assertEx","targetSchema","creatableModule"]}
|
package/package.json
CHANGED
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/assert": "^3.5.
|
|
14
|
-
"@xylabs/promise": "^3.5.
|
|
15
|
-
"@xyo-network/diviner-abstract": "~2.
|
|
16
|
-
"@xyo-network/diviner-model": "~2.
|
|
17
|
-
"@xyo-network/module-model": "~2.
|
|
18
|
-
"@xyo-network/payload-model": "~2.
|
|
13
|
+
"@xylabs/assert": "^3.5.1",
|
|
14
|
+
"@xylabs/promise": "^3.5.1",
|
|
15
|
+
"@xyo-network/diviner-abstract": "~2.104.1",
|
|
16
|
+
"@xyo-network/diviner-model": "~2.104.1",
|
|
17
|
+
"@xyo-network/module-model": "~2.104.1",
|
|
18
|
+
"@xyo-network/payload-model": "~2.104.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
22
|
-
"@xylabs/tsconfig": "^3.
|
|
21
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.2",
|
|
22
|
+
"@xylabs/tsconfig": "^3.11.2",
|
|
23
23
|
"typescript": "^5.4.5"
|
|
24
24
|
},
|
|
25
25
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
62
62
|
},
|
|
63
63
|
"sideEffects": false,
|
|
64
|
-
"version": "2.
|
|
64
|
+
"version": "2.104.1",
|
|
65
65
|
"type": "module"
|
|
66
66
|
}
|