@flesh-and-blood/cards 0.0.94 → 0.0.97

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flesh-and-blood/cards",
3
3
  "description": "TypeScript representations of Flesh and Blood cards",
4
- "version": "0.0.94",
4
+ "version": "0.0.97",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "sideEffects": false,
@@ -20,7 +20,7 @@
20
20
  "prepublish": "npm run full"
21
21
  },
22
22
  "dependencies": {
23
- "@flesh-and-blood/types": "^0.0.94"
23
+ "@flesh-and-blood/types": "^0.0.97"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/jest": "^29.5.5",
@@ -31,7 +31,7 @@
31
31
  "esbuild-jest": "^0.5.0",
32
32
  "fast-xml-parser": "4.2.7",
33
33
  "jest": "^29.7.0",
34
- "latest-cards": "npm:@flesh-and-blood/cards@^0.0.93",
34
+ "latest-cards": "npm:@flesh-and-blood/cards@^0.0.95",
35
35
  "papaparse": "5.3.2",
36
36
  "ts-node": "^10.9.1",
37
37
  "typescript": "^5.2.2",
@@ -58,5 +58,5 @@
58
58
  "FAB",
59
59
  "FABTCG"
60
60
  ],
61
- "gitHead": "804091bb2fc9e79619800e8307ce43ba0e7424a1"
61
+ "gitHead": "22ecc9f6e8213875451be04eeb1813c5a07b0854"
62
62
  }
@@ -1 +0,0 @@
1
- export declare const releasedCards: import("@flesh-and-blood/types").Card[];
@@ -1,3 +0,0 @@
1
- import { Card } from "@flesh-and-blood/types";
2
- import { ParsedCard } from "./parser";
3
- export declare const mapJSON: (parsedCards: ParsedCard[]) => Card[];
@@ -1,46 +0,0 @@
1
- export interface Printing {
2
- setIdentifier: string;
3
- set: string;
4
- edition: string;
5
- foiling: string;
6
- rarity: string;
7
- artist: string;
8
- artVariation: string;
9
- imageUrl: string;
10
- }
11
- export interface ParsedCard {
12
- abilitiesAndEffects: string[];
13
- abilityAndEffectKeywords: string[];
14
- artists: string[];
15
- cardKeywords: string[];
16
- cost: string;
17
- power: string;
18
- defense: string;
19
- functionalText: string;
20
- grantedKeywords: string[];
21
- identifiers: string[];
22
- images: string[];
23
- intellect?: string;
24
- life?: string;
25
- name: string;
26
- pitch?: string;
27
- printings: Printing[];
28
- rarity: string[];
29
- setIdentifiers: string[];
30
- sets: string[];
31
- types: string[];
32
- typeText: string;
33
- variations: string[];
34
- blitzBanned: boolean;
35
- blitzLegal: boolean;
36
- blitzLivingLegend: boolean;
37
- blitzSuspended: boolean;
38
- classicConstructedBanned: boolean;
39
- classicConstructedLegal: boolean;
40
- classicConstructedLivingLegend: boolean;
41
- classicConstructedSuspended: boolean;
42
- commonerBanned: boolean;
43
- commonerLegal: boolean;
44
- commonerSuspended: boolean;
45
- }
46
- export declare const parseJSON: (json: any) => ParsedCard[];
@@ -1,4 +0,0 @@
1
- export declare const overrides: {
2
- original: string;
3
- override: string;
4
- }[];
@@ -1,3 +0,0 @@
1
- export declare const filterOutUnwantedCards: ({ name }: {
2
- name: string;
3
- }) => boolean;
@@ -1,2 +0,0 @@
1
- export * from "./excludes";
2
- export * from "./mapper";
@@ -1,59 +0,0 @@
1
- import { Card, Fusion, Printing, Rarity, Release, Subtype } from "@flesh-and-blood/types";
2
- export declare const getNumberOrUndefined: (value?: string) => number | undefined;
3
- export declare const getStringIfNotNumber: (value?: string) => string | undefined;
4
- export declare const addOppositeSideCardIdentifiers: (cards: Card[]) => {
5
- isCardBack?: boolean;
6
- oppositeSideCardIdentifier?: string;
7
- artists: string[];
8
- cardIdentifier: string;
9
- classes: import("@flesh-and-blood/types").Class[];
10
- defaultImage: string;
11
- name: string;
12
- printings: Printing[];
13
- rarities: Rarity[];
14
- rarity: Rarity;
15
- setIdentifiers: string[];
16
- sets: Release[];
17
- specialImage: string;
18
- subtypes: Subtype[];
19
- types: import("@flesh-and-blood/types").Type[];
20
- typeText: string;
21
- cost?: number;
22
- defense?: number;
23
- functionalText?: string;
24
- fusions?: Fusion[];
25
- life?: number;
26
- hero?: import("@flesh-and-blood/types").Hero;
27
- intellect?: number;
28
- keywords?: import("@flesh-and-blood/types").Keyword[];
29
- pitch?: number;
30
- power?: number;
31
- restrictedFormats?: import("@flesh-and-blood/types").Format[];
32
- specialCost?: string;
33
- specialDefense?: string;
34
- specialLife?: string;
35
- specialPower?: string;
36
- specializations?: import("@flesh-and-blood/types").Hero[];
37
- talents?: import("@flesh-and-blood/types").Talent[];
38
- young?: boolean;
39
- }[];
40
- export declare const getDefaultImage: (cardName: string, printings: Printing[]) => string;
41
- export declare const getSpecialImage: (cardName: string, printings: Printing[]) => string;
42
- export declare const getPrint: (printing: {
43
- identifier: string;
44
- edition?: string;
45
- foiling?: string;
46
- treatment?: string;
47
- }) => string;
48
- export declare const getSets: ({ setIdentifiers, }: {
49
- setIdentifiers: string[];
50
- }) => Release[];
51
- export declare const getFusions: (card: {
52
- cardKeywords: string[];
53
- }) => Fusion[];
54
- export declare const rarityStringMapping: {
55
- [key: string]: Rarity;
56
- };
57
- export declare const getRarities: (card: {
58
- rarity: string[];
59
- }) => Rarity[];
@@ -1,2 +0,0 @@
1
- import { Card } from "@flesh-and-blood/types";
2
- export declare const spoiledCards: Card[];
@@ -1,4 +0,0 @@
1
- import { Card, Rarity } from "@flesh-and-blood/types";
2
- import { ParsedCard } from "./parser";
3
- export declare const getRarities: (card: ParsedCard) => Rarity[];
4
- export declare const mapCSV: (parsedCards: ParsedCard[]) => Card[];
@@ -1,32 +0,0 @@
1
- export interface ParsedCard {
2
- abilitiesAndEffects: string[];
3
- abilityAndEffectKeywords: string[];
4
- cardKeywords: string[];
5
- cost: string;
6
- power: string;
7
- defense: string;
8
- functionalText: string;
9
- grantedKeywords: string[];
10
- identifiers: string[];
11
- intellect?: string;
12
- life?: string;
13
- name: string;
14
- pitch?: string;
15
- setIdentifiers: string[];
16
- types: string[];
17
- typeText: string;
18
- blitzLegal: string;
19
- classicConstructedLegal: string;
20
- commonerLegal: string;
21
- artist: string;
22
- foiling?: string;
23
- imageUrl: string;
24
- rarity: string;
25
- treatment?: string;
26
- artist2?: string;
27
- foiling2?: string;
28
- imageUrl2?: string;
29
- rarity2?: string;
30
- treatment2?: string;
31
- }
32
- export declare const parseCSV: (file: string) => ParsedCard[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { Card } from "@flesh-and-blood/types";
2
- export declare const writeFiles: (cards: Card[], outputDirectory: string) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export declare const fabDictionaryIgnore: string[];
2
- export declare const fabDictionary: string[];
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
File without changes