@xyo-network/crypto-cards-game-plugin 2.85.0 → 2.85.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.
@@ -23,7 +23,7 @@ __export(src_exports, {
23
23
  CryptoCardsGamePlugin: () => CryptoCardsGamePlugin,
24
24
  CryptoCardsGameWitness: () => CryptoCardsGameWitness,
25
25
  CryptoCardsGameWitnessConfigSchema: () => CryptoCardsGameWitnessConfigSchema,
26
- default: () => src_default
26
+ default: () => CryptoCardsGamePlugin
27
27
  });
28
28
  module.exports = __toCommonJS(src_exports);
29
29
 
@@ -56,7 +56,4 @@ var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetW
56
56
  }
57
57
  }
58
58
  );
59
-
60
- // src/index.ts
61
- var src_default = CryptoCardsGamePlugin;
62
59
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGamePlugin } from './Plugin'\n\nexport * from './Schema'\nexport * from './Witness'\n\nexport { CryptoCardsGamePlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default CryptoCardsGamePlugin\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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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;;;ADPF,IAAO,cAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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":[]}
@@ -1,6 +1,4 @@
1
- import { CryptoCardsGamePlugin } from './Plugin';
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin';
2
2
  export * from './Schema';
3
3
  export * from './Witness';
4
- export { CryptoCardsGamePlugin };
5
- export default CryptoCardsGamePlugin;
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAGhC,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAClF,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -1,6 +1,4 @@
1
- import { CryptoCardsGamePlugin } from './Plugin';
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin';
2
2
  export * from './Schema';
3
3
  export * from './Witness';
4
- export { CryptoCardsGamePlugin };
5
- export default CryptoCardsGamePlugin;
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAGhC,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAClF,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -1,6 +1,4 @@
1
- import { CryptoCardsGamePlugin } from './Plugin';
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin';
2
2
  export * from './Schema';
3
3
  export * from './Witness';
4
- export { CryptoCardsGamePlugin };
5
- export default CryptoCardsGamePlugin;
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAGhC,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAClF,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -27,13 +27,10 @@ var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
27
27
  }
28
28
  }
29
29
  );
30
-
31
- // src/index.ts
32
- var src_default = CryptoCardsGamePlugin;
33
30
  export {
34
31
  CryptoCardsGamePlugin,
35
32
  CryptoCardsGameWitness,
36
33
  CryptoCardsGameWitnessConfigSchema,
37
- src_default as default
34
+ CryptoCardsGamePlugin as default
38
35
  };
39
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts","../../src/index.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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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","import { CryptoCardsGamePlugin } from './Plugin'\n\nexport * from './Schema'\nexport * from './Witness'\n\nexport { CryptoCardsGamePlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default CryptoCardsGamePlugin\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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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;;;AGPF,IAAO,cAAQ;","names":[]}
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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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":[]}
@@ -23,7 +23,7 @@ __export(src_exports, {
23
23
  CryptoCardsGamePlugin: () => CryptoCardsGamePlugin,
24
24
  CryptoCardsGameWitness: () => CryptoCardsGameWitness,
25
25
  CryptoCardsGameWitnessConfigSchema: () => CryptoCardsGameWitnessConfigSchema,
26
- default: () => src_default
26
+ default: () => CryptoCardsGamePlugin
27
27
  });
28
28
  module.exports = __toCommonJS(src_exports);
29
29
 
@@ -56,9 +56,6 @@ var CryptoCardsGamePlugin = () => (0, import_payloadset_plugin.createPayloadSetW
56
56
  }
57
57
  }
58
58
  );
59
-
60
- // src/index.ts
61
- var src_default = CryptoCardsGamePlugin;
62
59
  // Annotate the CommonJS export names for ESM import in node:
63
60
  0 && (module.exports = {
64
61
  CryptoCardsGamePlugin,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["import { CryptoCardsGamePlugin } from './Plugin'\n\nexport * from './Schema'\nexport * from './Witness'\n\nexport { CryptoCardsGamePlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default CryptoCardsGamePlugin\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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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;;;ADPF,IAAO,cAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts"],"sourcesContent":["export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin'\nexport * from './Schema'\nexport * from './Witness'\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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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":[]}
@@ -1,6 +1,4 @@
1
- import { CryptoCardsGamePlugin } from './Plugin';
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin';
2
2
  export * from './Schema';
3
3
  export * from './Witness';
4
- export { CryptoCardsGamePlugin };
5
- export default CryptoCardsGamePlugin;
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAGhC,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAClF,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -1,6 +1,4 @@
1
- import { CryptoCardsGamePlugin } from './Plugin';
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin';
2
2
  export * from './Schema';
3
3
  export * from './Witness';
4
- export { CryptoCardsGamePlugin };
5
- export default CryptoCardsGamePlugin;
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAGhC,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAClF,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -1,6 +1,4 @@
1
- import { CryptoCardsGamePlugin } from './Plugin';
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin';
2
2
  export * from './Schema';
3
3
  export * from './Witness';
4
- export { CryptoCardsGamePlugin };
5
- export default CryptoCardsGamePlugin;
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAGhC,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAClF,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -27,13 +27,10 @@ var CryptoCardsGamePlugin = () => createPayloadSetWitnessPlugin(
27
27
  }
28
28
  }
29
29
  );
30
-
31
- // src/index.ts
32
- var src_default = CryptoCardsGamePlugin;
33
30
  export {
34
31
  CryptoCardsGamePlugin,
35
32
  CryptoCardsGameWitness,
36
33
  CryptoCardsGameWitnessConfigSchema,
37
- src_default as default
34
+ CryptoCardsGamePlugin as default
38
35
  };
39
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Plugin.ts","../../src/Witness.ts","../../src/Schema.ts","../../src/index.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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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","import { CryptoCardsGamePlugin } from './Plugin'\n\nexport * from './Schema'\nexport * from './Witness'\n\nexport { CryptoCardsGamePlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default CryptoCardsGamePlugin\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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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;;;AGPF,IAAO,cAAQ;","names":[]}
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'\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 } from '@xyo-network/payload-model'\nimport { WitnessConfig, WitnessModule, WitnessParams } from '@xyo-network/witness-model'\n\nimport { CryptoCardsGameWitnessConfigSchema } from './Schema'\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 configSchemas = [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,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEhD,eAAe,UAA6C;AAC7E,WAAO,YAAY,CAAC;AAAA,EACtB;AACF;;;ADdO,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,13 +10,13 @@
10
10
  "url": "https://github.com/XYOracleNetwork/plugins/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/promise": "^2.13.20",
14
- "@xyo-network/abstract-witness": "^2.85.0",
15
- "@xyo-network/crypto-cards-game-payload-plugin": "~2.85.0",
16
- "@xyo-network/module-model": "^2.85.0",
17
- "@xyo-network/payload-model": "^2.85.0",
18
- "@xyo-network/payloadset-plugin": "^2.85.0",
19
- "@xyo-network/witness-model": "^2.85.0"
13
+ "@xylabs/promise": "^2.13.22",
14
+ "@xyo-network/abstract-witness": "^2.85.3",
15
+ "@xyo-network/crypto-cards-game-payload-plugin": "~2.85.1",
16
+ "@xyo-network/module-model": "^2.85.3",
17
+ "@xyo-network/payload-model": "^2.85.3",
18
+ "@xyo-network/payloadset-plugin": "^2.85.3",
19
+ "@xyo-network/witness-model": "^2.85.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@xylabs/ts-scripts-yarn3": "^3.2.25",
@@ -62,6 +62,6 @@
62
62
  "url": "https://github.com/XYOracleNetwork/plugins.git"
63
63
  },
64
64
  "sideEffects": false,
65
- "version": "2.85.0",
65
+ "version": "2.85.1",
66
66
  "type": "module"
67
67
  }
package/src/index.ts CHANGED
@@ -1,9 +1,3 @@
1
- import { CryptoCardsGamePlugin } from './Plugin'
2
-
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin'
3
2
  export * from './Schema'
4
3
  export * from './Witness'
5
-
6
- export { CryptoCardsGamePlugin }
7
-
8
- // eslint-disable-next-line import/no-default-export
9
- export default CryptoCardsGamePlugin