@flesh-and-blood/types 4.0.0 → 4.0.3

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,4 +1,4 @@
1
- import { Card, Type, Keyword, Subtype, Trait } from "../interfaces";
1
+ import { Card, Type, Keyword, Subtype, Trait } from "../interfaces.js";
2
2
  export declare const getCardIdentifier: (card: {
3
3
  name: string;
4
4
  pitch?: string | number;
@@ -1,4 +1,4 @@
1
- import { Type, Keyword, Subtype, Trait } from "../interfaces";
1
+ import { Type, Keyword, Subtype, Trait } from "../interfaces.js";
2
2
  const getCardIdentifier = (card, useNumber) => {
3
3
  const { name: unformattedName, pitch } = card;
4
4
  const name = unformattedName.trim().toLowerCase().replace("//", "-").normalize("NFD").replace(/\p{Diacritic}/gu, "").replace(/ /g, "-").replace("\xF0", "d").replace("\u0111", "d").replace("\xED", "i").replace(/[^a-z0-9 -]/g, "").replace(/--/, "-");
@@ -1,2 +1,2 @@
1
- export * from "./cards";
2
- export * from "./printings";
1
+ export * from "./cards.js";
2
+ export * from "./printings.js";
@@ -1,2 +1,2 @@
1
- export * from "./cards";
2
- export * from "./printings";
1
+ export * from "./cards.js";
2
+ export * from "./printings.js";
@@ -1,4 +1,4 @@
1
- import { Printing } from "../interfaces";
1
+ import { Printing } from "../interfaces.js";
2
2
  export declare const getPrint: (printing: {
3
3
  identifier: string;
4
4
  image?: string;
@@ -2,8 +2,8 @@ import {
2
2
  Treatment,
3
3
  Foiling,
4
4
  ReleaseEdition
5
- } from "../interfaces";
6
- import { fullSetIdentifiers } from "../sets";
5
+ } from "../interfaces.js";
6
+ import { fullSetIdentifiers } from "../sets.js";
7
7
  const identifierExtensionMapping = {
8
8
  // [Release.RhinarBlitzDeck]: "-Blitz",
9
9
  };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./helpers/index";
2
- export * from "./interfaces";
3
- export * from "./sets";
1
+ export * from "./helpers/index.js";
2
+ export * from "./interfaces.js";
3
+ export * from "./sets.js";
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./helpers/index";
2
- export * from "./interfaces";
3
- export * from "./sets";
1
+ export * from "./helpers/index.js";
2
+ export * from "./interfaces.js";
3
+ export * from "./sets.js";
package/dist/sets.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Class, Hero, Rarity, Release, Talent } from "./interfaces";
1
+ import { Class, Hero, Rarity, Release, Talent } from "./interfaces.js";
2
2
  export declare enum Language {
3
3
  English = "English",
4
4
  French = "Fran\u00E7ais",
package/dist/sets.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Class, Hero, Rarity, Release, Talent } from "./interfaces";
1
+ import { Class, Hero, Rarity, Release, Talent } from "./interfaces.js";
2
2
  var Language = /* @__PURE__ */ ((Language2) => {
3
3
  Language2["English"] = "English";
4
4
  Language2["French"] = "Fran\xE7ais";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flesh-and-blood/types",
3
3
  "description": "TypeScript representations of Flesh and Blood card types",
4
- "version": "4.0.0",
4
+ "version": "4.0.3",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "dist/index.cjs",
@@ -71,5 +71,5 @@
71
71
  "FAB",
72
72
  "FABTCG"
73
73
  ],
74
- "gitHead": "9ded4ed228786d702f9c16ebe94d090dc4e73f23"
74
+ "gitHead": "ddbb4d4372b235cc064ac7ccef1b2b42d721447f"
75
75
  }