@xyo-network/crypto-cards-game-plugin 2.99.5 → 2.99.6
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 +10 -19
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.mjs +10 -21
- package/dist/browser/index.mjs.map +1 -1
- package/dist/neutral/index.cjs +10 -19
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.mjs +10 -21
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.cjs +12 -25
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +12 -27
- package/dist/node/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/browser/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name in all)
|
|
9
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -41,13 +40,7 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
41
40
|
|
|
42
41
|
// src/Witness.ts
|
|
43
42
|
var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitness {
|
|
44
|
-
static
|
|
45
|
-
__name(this, "CryptoCardsGameWitness");
|
|
46
|
-
}
|
|
47
|
-
static configSchemas = [
|
|
48
|
-
...super.configSchemas,
|
|
49
|
-
CryptoCardsGameWitnessConfigSchema
|
|
50
|
-
];
|
|
43
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
51
44
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
52
45
|
observeHandler(payloads) {
|
|
53
46
|
return payloads ?? [];
|
|
@@ -55,15 +48,13 @@ var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitne
|
|
|
55
48
|
};
|
|
56
49
|
|
|
57
50
|
// src/Plugin.ts
|
|
58
|
-
var CryptoCardsGamePlugin =
|
|
59
|
-
required: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, "witness")
|
|
68
|
-
}), "CryptoCardsGamePlugin");
|
|
51
|
+
var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
+
{ required: { [import_crypto_cards_game_payload_plugin.CryptoCardsGameSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
53
|
+
{
|
|
54
|
+
witness: async (params) => {
|
|
55
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
);
|
|
69
60
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,wCAAuE;AAAA,EACjH,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EAC9G,OAAyB,sBAA8B;AAAA,EAEpC,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,UACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,6DAAqB,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/Plugin.ts
|
|
5
2
|
import { CryptoCardsGameSchema } from "@xyo-network/crypto-cards-game-payload-plugin";
|
|
6
3
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
@@ -14,13 +11,7 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
14
11
|
|
|
15
12
|
// src/Witness.ts
|
|
16
13
|
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
17
|
-
static
|
|
18
|
-
__name(this, "CryptoCardsGameWitness");
|
|
19
|
-
}
|
|
20
|
-
static configSchemas = [
|
|
21
|
-
...super.configSchemas,
|
|
22
|
-
CryptoCardsGameWitnessConfigSchema
|
|
23
|
-
];
|
|
14
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
24
15
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
25
16
|
observeHandler(payloads) {
|
|
26
17
|
return payloads ?? [];
|
|
@@ -28,17 +19,15 @@ var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
|
28
19
|
};
|
|
29
20
|
|
|
30
21
|
// src/Plugin.ts
|
|
31
|
-
var CryptoCardsGamePlugin =
|
|
32
|
-
required: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, "witness")
|
|
41
|
-
}), "CryptoCardsGamePlugin");
|
|
22
|
+
var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
+
{ required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },
|
|
24
|
+
{
|
|
25
|
+
witness: async (params) => {
|
|
26
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
);
|
|
42
31
|
export {
|
|
43
32
|
CryptoCardsGamePlugin,
|
|
44
33
|
CryptoCardsGameWitness,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";AAAA,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,uBAAuB;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,gBAAuE;AAAA,EACjH,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EAC9G,OAAyB,sBAA8B;AAAA,EAEpC,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,MACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,qBAAqB,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name in all)
|
|
9
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -41,13 +40,7 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
41
40
|
|
|
42
41
|
// src/Witness.ts
|
|
43
42
|
var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitness {
|
|
44
|
-
static
|
|
45
|
-
__name(this, "CryptoCardsGameWitness");
|
|
46
|
-
}
|
|
47
|
-
static configSchemas = [
|
|
48
|
-
...super.configSchemas,
|
|
49
|
-
CryptoCardsGameWitnessConfigSchema
|
|
50
|
-
];
|
|
43
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
51
44
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
52
45
|
observeHandler(payloads) {
|
|
53
46
|
return payloads ?? [];
|
|
@@ -55,15 +48,13 @@ var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitne
|
|
|
55
48
|
};
|
|
56
49
|
|
|
57
50
|
// src/Plugin.ts
|
|
58
|
-
var CryptoCardsGamePlugin =
|
|
59
|
-
required: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, "witness")
|
|
68
|
-
}), "CryptoCardsGamePlugin");
|
|
51
|
+
var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
+
{ required: { [import_crypto_cards_game_payload_plugin.CryptoCardsGameSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
53
|
+
{
|
|
54
|
+
witness: async (params) => {
|
|
55
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
);
|
|
69
60
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,wCAAuE;AAAA,EACjH,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EAC9G,OAAyB,sBAA8B;AAAA,EAEpC,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,UACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,6DAAqB,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/Plugin.ts
|
|
5
2
|
import { CryptoCardsGameSchema } from "@xyo-network/crypto-cards-game-payload-plugin";
|
|
6
3
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
@@ -14,13 +11,7 @@ var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.
|
|
|
14
11
|
|
|
15
12
|
// src/Witness.ts
|
|
16
13
|
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
17
|
-
static
|
|
18
|
-
__name(this, "CryptoCardsGameWitness");
|
|
19
|
-
}
|
|
20
|
-
static configSchemas = [
|
|
21
|
-
...super.configSchemas,
|
|
22
|
-
CryptoCardsGameWitnessConfigSchema
|
|
23
|
-
];
|
|
14
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
24
15
|
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
25
16
|
observeHandler(payloads) {
|
|
26
17
|
return payloads ?? [];
|
|
@@ -28,17 +19,15 @@ var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
|
28
19
|
};
|
|
29
20
|
|
|
30
21
|
// src/Plugin.ts
|
|
31
|
-
var CryptoCardsGamePlugin =
|
|
32
|
-
required: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, "witness")
|
|
41
|
-
}), "CryptoCardsGamePlugin");
|
|
22
|
+
var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
+
{ required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },
|
|
24
|
+
{
|
|
25
|
+
witness: async (params) => {
|
|
26
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
);
|
|
42
31
|
export {
|
|
43
32
|
CryptoCardsGamePlugin,
|
|
44
33
|
CryptoCardsGameWitness,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";AAAA,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,uBAAuB;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,gBAAuE;AAAA,EACjH,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EAC9G,OAAyB,sBAA8B;AAAA,EAEpC,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,MACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,qBAAqB,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/node/index.cjs
CHANGED
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __reflectGet = Reflect.get;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
6
|
var __export = (target, all) => {
|
|
11
7
|
for (var name in all)
|
|
12
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -20,8 +16,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
16
|
return to;
|
|
21
17
|
};
|
|
22
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
24
|
-
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
25
19
|
|
|
26
20
|
// src/index.ts
|
|
27
21
|
var src_exports = {};
|
|
@@ -45,31 +39,24 @@ var import_abstract_witness = require("@xyo-network/abstract-witness");
|
|
|
45
39
|
var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.config";
|
|
46
40
|
|
|
47
41
|
// src/Witness.ts
|
|
48
|
-
var
|
|
42
|
+
var CryptoCardsGameWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
44
|
+
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
49
45
|
observeHandler(payloads) {
|
|
50
46
|
return payloads ?? [];
|
|
51
47
|
}
|
|
52
48
|
};
|
|
53
|
-
__name(_CryptoCardsGameWitness, "CryptoCardsGameWitness");
|
|
54
|
-
__publicField(_CryptoCardsGameWitness, "configSchemas", [
|
|
55
|
-
...__superGet(_CryptoCardsGameWitness, _CryptoCardsGameWitness, "configSchemas"),
|
|
56
|
-
CryptoCardsGameWitnessConfigSchema
|
|
57
|
-
]);
|
|
58
|
-
__publicField(_CryptoCardsGameWitness, "defaultConfigSchema", CryptoCardsGameWitnessConfigSchema);
|
|
59
|
-
var CryptoCardsGameWitness = _CryptoCardsGameWitness;
|
|
60
49
|
|
|
61
50
|
// src/Plugin.ts
|
|
62
|
-
var CryptoCardsGamePlugin =
|
|
63
|
-
required: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}, "witness")
|
|
72
|
-
}), "CryptoCardsGamePlugin");
|
|
51
|
+
var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
52
|
+
{ required: { [import_crypto_cards_game_payload_plugin.CryptoCardsGameSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
53
|
+
{
|
|
54
|
+
witness: async (params) => {
|
|
55
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
);
|
|
73
60
|
// Annotate the CommonJS export names for ESM import in node:
|
|
74
61
|
0 && (module.exports = {
|
|
75
62
|
CryptoCardsGamePlugin,
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["// eslint-disable-next-line import/no-default-export\nexport { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts'\nexport * from './Schema.ts'\nexport * from './Witness.ts'\n","import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,8CAAsC;AACtC,2BAAiC;AACjC,+BAA8C;;;ACD9C,8BAAgC;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,wCAAuE;AAAA,EACjH,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EAC9G,OAAyB,sBAA8B;AAAA,EAEpC,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,UACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,6DAAqB,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
-
var __reflectGet = Reflect.get;
|
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
|
-
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
8
|
-
|
|
9
1
|
// src/Plugin.ts
|
|
10
2
|
import { CryptoCardsGameSchema } from "@xyo-network/crypto-cards-game-payload-plugin";
|
|
11
3
|
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
@@ -18,31 +10,24 @@ import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
|
18
10
|
var CryptoCardsGameWitnessConfigSchema = "network.xyo.crypto.cards.game.witness.config";
|
|
19
11
|
|
|
20
12
|
// src/Witness.ts
|
|
21
|
-
var
|
|
13
|
+
var CryptoCardsGameWitness = class extends AbstractWitness {
|
|
14
|
+
static configSchemas = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema];
|
|
15
|
+
static defaultConfigSchema = CryptoCardsGameWitnessConfigSchema;
|
|
22
16
|
observeHandler(payloads) {
|
|
23
17
|
return payloads ?? [];
|
|
24
18
|
}
|
|
25
19
|
};
|
|
26
|
-
__name(_CryptoCardsGameWitness, "CryptoCardsGameWitness");
|
|
27
|
-
__publicField(_CryptoCardsGameWitness, "configSchemas", [
|
|
28
|
-
...__superGet(_CryptoCardsGameWitness, _CryptoCardsGameWitness, "configSchemas"),
|
|
29
|
-
CryptoCardsGameWitnessConfigSchema
|
|
30
|
-
]);
|
|
31
|
-
__publicField(_CryptoCardsGameWitness, "defaultConfigSchema", CryptoCardsGameWitnessConfigSchema);
|
|
32
|
-
var CryptoCardsGameWitness = _CryptoCardsGameWitness;
|
|
33
20
|
|
|
34
21
|
// src/Plugin.ts
|
|
35
|
-
var CryptoCardsGamePlugin =
|
|
36
|
-
required: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}, "witness")
|
|
45
|
-
}), "CryptoCardsGamePlugin");
|
|
22
|
+
var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
|
|
23
|
+
{ required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },
|
|
24
|
+
{
|
|
25
|
+
witness: async (params) => {
|
|
26
|
+
const result = await CryptoCardsGameWitness.create(params);
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
);
|
|
46
31
|
export {
|
|
47
32
|
CryptoCardsGamePlugin,
|
|
48
33
|
CryptoCardsGameWitness,
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGameSchema } from '@xyo-network/crypto-cards-game-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CryptoCardsGameWitness } from './Witness.ts'\n\nexport const CryptoCardsGamePlugin = () =>\n createPayloadSetWitnessPlugin<CryptoCardsGameWitness>(\n { required: { [CryptoCardsGameSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await CryptoCardsGameWitness.create(params)\n return result as CryptoCardsGameWitness\n },\n },\n )\n","import { Promisable } from '@xylabs/promise'\nimport { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema.ts'\n\nexport type CryptoCardsGameWitnessConfig = WitnessConfig<{\n schema: CryptoCardsGameWitnessConfigSchema\n}>\n\nexport type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>\n\nexport class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, CryptoCardsGameWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = CryptoCardsGameWitnessConfigSchema\n\n protected override observeHandler(payloads?: Payload[]): Promisable<Payload[]> {\n return payloads ?? []\n }\n}\n","export type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\nexport const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config'\n"],"mappings":";AAAA,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;;;ACD9C,SAAS,uBAAuB;;;ACAzB,IAAM,qCAAyE;;;ADa/E,IAAM,yBAAN,cAAqC,gBAAuE;AAAA,EACjH,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,kCAAkC;AAAA,EAC9G,OAAyB,sBAA8B;AAAA,EAEpC,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADfO,IAAM,wBAAwB,MACnC;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,qBAAqB,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EACrE;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,YAAM,SAAS,MAAM,uBAAuB,OAAO,MAAM;AACzD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/promise": "^3.6.
|
|
14
|
-
"@xyo-network/abstract-witness": "^2.111.
|
|
15
|
-
"@xyo-network/crypto-cards-game-payload-plugin": "^2.99.
|
|
16
|
-
"@xyo-network/module-model": "^2.111.
|
|
17
|
-
"@xyo-network/payload-model": "^2.111.
|
|
18
|
-
"@xyo-network/payloadset-plugin": "^2.111.
|
|
19
|
-
"@xyo-network/witness-model": "^2.111.
|
|
13
|
+
"@xylabs/promise": "^3.6.12",
|
|
14
|
+
"@xyo-network/abstract-witness": "^2.111.3",
|
|
15
|
+
"@xyo-network/crypto-cards-game-payload-plugin": "^2.99.6",
|
|
16
|
+
"@xyo-network/module-model": "^2.111.3",
|
|
17
|
+
"@xyo-network/payload-model": "^2.111.3",
|
|
18
|
+
"@xyo-network/payloadset-plugin": "^2.111.3",
|
|
19
|
+
"@xyo-network/witness-model": "^2.111.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^3.15.
|
|
23
|
-
"@xylabs/tsconfig": "^3.15.
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.15.14",
|
|
23
|
+
"@xylabs/tsconfig": "^3.15.14",
|
|
24
24
|
"typescript": "^5.5.4"
|
|
25
25
|
},
|
|
26
26
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
|
-
"version": "2.99.
|
|
65
|
+
"version": "2.99.6",
|
|
66
66
|
"type": "module"
|
|
67
67
|
}
|