@xyo-network/crypto-cards-game-plugin 4.1.1 → 5.0.0

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.
@@ -1,24 +1,4 @@
1
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import { Promisable } from '@xylabs/promise';
3
- import { AbstractWitness } from '@xyo-network/abstract-witness';
4
- import { AnyConfigSchema } from '@xyo-network/module-model';
5
- import { Schema, Payload } from '@xyo-network/payload-model';
6
- import { WitnessParams, WitnessConfig, WitnessModule } from '@xyo-network/witness-model';
7
-
8
- type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config';
9
- declare const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema;
10
-
11
- type CryptoCardsGameWitnessConfig = WitnessConfig<{
12
- schema: CryptoCardsGameWitnessConfigSchema;
13
- }>;
14
- type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
15
- declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
16
- static readonly configSchemas: Schema[];
17
- static readonly defaultConfigSchema: Schema;
18
- protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
19
- }
20
-
21
- declare const CryptoCardsGamePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
22
-
23
- export { CryptoCardsGamePlugin, CryptoCardsGameWitness, CryptoCardsGameWitnessConfigSchema, CryptoCardsGamePlugin as default };
24
- export type { CryptoCardsGameWitnessConfig, CryptoCardsGameWitnessParams };
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
2
+ export * from './Schema.ts';
3
+ export * from './Witness.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,4 @@
1
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import { Promisable } from '@xylabs/promise';
3
- import { AbstractWitness } from '@xyo-network/abstract-witness';
4
- import { AnyConfigSchema } from '@xyo-network/module-model';
5
- import { Schema, Payload } from '@xyo-network/payload-model';
6
- import { WitnessParams, WitnessConfig, WitnessModule } from '@xyo-network/witness-model';
7
-
8
- type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config';
9
- declare const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema;
10
-
11
- type CryptoCardsGameWitnessConfig = WitnessConfig<{
12
- schema: CryptoCardsGameWitnessConfigSchema;
13
- }>;
14
- type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
15
- declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
16
- static readonly configSchemas: Schema[];
17
- static readonly defaultConfigSchema: Schema;
18
- protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
19
- }
20
-
21
- declare const CryptoCardsGamePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
22
-
23
- export { CryptoCardsGamePlugin, CryptoCardsGameWitness, CryptoCardsGameWitnessConfigSchema, CryptoCardsGamePlugin as default };
24
- export type { CryptoCardsGameWitnessConfig, CryptoCardsGameWitnessParams };
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
2
+ export * from './Schema.ts';
3
+ export * from './Witness.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,4 @@
1
- import * as _xyo_network_payloadset_plugin from '@xyo-network/payloadset-plugin';
2
- import { Promisable } from '@xylabs/promise';
3
- import { AbstractWitness } from '@xyo-network/abstract-witness';
4
- import { AnyConfigSchema } from '@xyo-network/module-model';
5
- import { Schema, Payload } from '@xyo-network/payload-model';
6
- import { WitnessParams, WitnessConfig, WitnessModule } from '@xyo-network/witness-model';
7
-
8
- type CryptoCardsGameWitnessConfigSchema = 'network.xyo.crypto.cards.game.witness.config';
9
- declare const CryptoCardsGameWitnessConfigSchema: CryptoCardsGameWitnessConfigSchema;
10
-
11
- type CryptoCardsGameWitnessConfig = WitnessConfig<{
12
- schema: CryptoCardsGameWitnessConfigSchema;
13
- }>;
14
- type CryptoCardsGameWitnessParams = WitnessParams<AnyConfigSchema<CryptoCardsGameWitnessConfig>>;
15
- declare class CryptoCardsGameWitness extends AbstractWitness<CryptoCardsGameWitnessParams> implements WitnessModule {
16
- static readonly configSchemas: Schema[];
17
- static readonly defaultConfigSchema: Schema;
18
- protected observeHandler(payloads?: Payload[]): Promisable<Payload[]>;
19
- }
20
-
21
- declare const CryptoCardsGamePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<CryptoCardsGameWitness>;
22
-
23
- export { CryptoCardsGamePlugin, CryptoCardsGameWitness, CryptoCardsGameWitnessConfigSchema, CryptoCardsGamePlugin as default };
24
- export type { CryptoCardsGameWitnessConfig, CryptoCardsGameWitnessParams };
1
+ export { CryptoCardsGamePlugin, CryptoCardsGamePlugin as default } from './Plugin.ts';
2
+ export * from './Schema.ts';
3
+ export * from './Witness.ts';
4
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/crypto-cards-game-plugin",
3
- "version": "4.1.1",
3
+ "version": "5.0.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -28,20 +28,23 @@
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
+ "files": [
32
+ "dist",
33
+ "src"
34
+ ],
31
35
  "dependencies": {
32
- "@xylabs/promise": "^4.13.23",
33
- "@xyo-network/abstract-witness": "^4.1.7",
34
- "@xyo-network/crypto-cards-game-payload-plugin": "^4.1.1",
35
- "@xyo-network/module-model": "^4.1.7",
36
- "@xyo-network/payload-model": "^4.1.7",
37
- "@xyo-network/payloadset-plugin": "^4.1.7",
38
- "@xyo-network/witness-model": "^4.1.7"
36
+ "@xylabs/promise": "^5.0.0",
37
+ "@xyo-network/abstract-witness": "^5.0.0",
38
+ "@xyo-network/crypto-cards-game-payload-plugin": "^5.0.0",
39
+ "@xyo-network/module-model": "^5.0.0",
40
+ "@xyo-network/payload-model": "^5.0.0",
41
+ "@xyo-network/payloadset-plugin": "^5.0.0",
42
+ "@xyo-network/witness-model": "^5.0.0"
39
43
  },
40
44
  "devDependencies": {
41
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.24",
42
- "@xylabs/tsconfig": "^7.0.0-rc.24",
43
- "@xylabs/vitest-extended": "^4.13.23",
44
- "knip": "^5.62.0",
45
+ "@xylabs/ts-scripts-yarn3": "^7.0.2",
46
+ "@xylabs/tsconfig": "^7.0.2",
47
+ "@xylabs/vitest-extended": "^5.0.0",
45
48
  "typescript": "^5.8.3",
46
49
  "vitest": "^3.2.4"
47
50
  },
@@ -0,0 +1,18 @@
1
+ import '@xylabs/vitest-extended'
2
+
3
+ import { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin'
4
+ import {
5
+ describe, expect,
6
+ test,
7
+ } from 'vitest'
8
+
9
+ import { CryptoCardsGamePlugin } from '../Plugin.ts'
10
+
11
+ describe('CryptoCardsGamePlugin', () => {
12
+ test('Add to Resolver', async () => {
13
+ const plugin = CryptoCardsGamePlugin()
14
+ const resolver = await new PayloadSetPluginResolver().register(plugin)
15
+ expect(await resolver.resolve(plugin.set)).toBeObject()
16
+ expect(await resolver.witness(plugin.set)).toBeObject()
17
+ })
18
+ })
package/typedoc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://typedoc.org/schema.json",
3
- "entryPoints": ["./src/index.ts"],
4
- "tsconfig": "./tsconfig.typedoc.json"
5
- }