warframe-worldstate-data 3.1.11 → 3.1.12

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.
@@ -2,4 +2,13 @@ import "../types-BambsMUW.mjs";
2
2
  import "../exports-BaguOygr.mjs";
3
3
  import { a as parseDate, c as toNow, i as fromNow, l as weeklyReset, o as pieceIsSmoller, r as dailyReset, s as timeDeltaToString, t as ContentTimestamp } from "../timeDate-CWdYuKRw.mjs";
4
4
  import { A as translateCalendarEvent, C as sortieModDesc, D as syndicate, E as steelPath, M as translatePolarity, N as translateSeason, O as toTitleCase, P as upgrade, S as sortieFaction, T as splitResourceName, _ as nodeMissionType, a as conclaveCategory, b as region, c as faction, d as languageDesc, f as languageString, g as nodeEnemy, h as node, i as archonShardUpgradeType, j as translateFocus, k as translateArchimedeaType, l as fissureModifier, m as missionType, n as archonShard, o as conclaveChallenge, p as lastResourceName, r as archonShardColor, s as conclaveMode, u as fissureTier, v as operation, w as sortieModifier, x as sortieBoss, y as operationSymbol } from "../translation-DfnYeyoz.mjs";
5
- export { ContentTimestamp, archonShard, archonShardColor, archonShardUpgradeType, conclaveCategory, conclaveChallenge, conclaveMode, dailyReset, faction, fissureModifier, fissureTier, fromNow, languageDesc, languageString, lastResourceName, missionType, node, nodeEnemy, nodeMissionType, operation, operationSymbol, parseDate, pieceIsSmoller, region, sortieBoss, sortieFaction, sortieModDesc, sortieModifier, splitResourceName, steelPath, syndicate, timeDeltaToString, toNow, toTitleCase, translateArchimedeaType, translateCalendarEvent, translateFocus, translatePolarity, translateSeason, upgrade, weeklyReset };
5
+
6
+ //#region tools/integrity.d.ts
7
+ /**
8
+ * @description Insist that the provided data has the required properties.
9
+ * @param {Record<string, unknown>} thing to encourage to have data
10
+ * @param {...string} args arguments to ensure
11
+ */
12
+ declare const insist: (thing: Record<string, unknown>, ...args: string[]) => void;
13
+ //#endregion
14
+ export { ContentTimestamp, archonShard, archonShardColor, archonShardUpgradeType, conclaveCategory, conclaveChallenge, conclaveMode, dailyReset, faction, fissureModifier, fissureTier, fromNow, insist, languageDesc, languageString, lastResourceName, missionType, node, nodeEnemy, nodeMissionType, operation, operationSymbol, parseDate, pieceIsSmoller, region, sortieBoss, sortieFaction, sortieModDesc, sortieModifier, splitResourceName, steelPath, syndicate, timeDeltaToString, toNow, toTitleCase, translateArchimedeaType, translateCalendarEvent, translateFocus, translatePolarity, translateSeason, upgrade, weeklyReset };
@@ -3,4 +3,18 @@ import "../exports-M2P8p7tW.mjs";
3
3
  import { c as weeklyReset, i as pieceIsSmoller, n as fromNow, o as timeDeltaToString, r as parseDate, s as toNow, t as dailyReset } from "../timeDate-Dr-FUBZ2.mjs";
4
4
  import { A as translateFocus, C as sortieModifier, D as toTitleCase, E as syndicate, M as translateSeason, O as translateArchimedeaType, P as upgrade, S as sortieModDesc, T as steelPath, _ as operation, a as conclaveChallenge, b as sortieBoss, c as fissureModifier, d as languageString, f as lastResourceName, g as nodeMissionType, h as nodeEnemy, i as conclaveCategory, j as translatePolarity, k as translateCalendarEvent, l as fissureTier, m as node, n as archonShardColor, o as conclaveMode, p as missionType, r as archonShardUpgradeType, s as faction, t as archonShard, u as languageDesc, v as operationSymbol, w as splitResourceName, x as sortieFaction, y as region } from "../translation-B1nyVzj0.mjs";
5
5
 
6
- export { archonShard, archonShardColor, archonShardUpgradeType, conclaveCategory, conclaveChallenge, conclaveMode, dailyReset, faction, fissureModifier, fissureTier, fromNow, languageDesc, languageString, lastResourceName, missionType, node, nodeEnemy, nodeMissionType, operation, operationSymbol, parseDate, pieceIsSmoller, region, sortieBoss, sortieFaction, sortieModDesc, sortieModifier, splitResourceName, steelPath, syndicate, timeDeltaToString, toNow, toTitleCase, translateArchimedeaType, translateCalendarEvent, translateFocus, translatePolarity, translateSeason, upgrade, weeklyReset };
6
+ //#region tools/integrity.ts
7
+ /**
8
+ * @description Insist that the provided data has the required properties.
9
+ * @param {Record<string, unknown>} thing to encourage to have data
10
+ * @param {...string} args arguments to ensure
11
+ */
12
+ const insist = (thing, ...args) => {
13
+ if (!thing || !Object.keys(thing).length) throw new TypeError("No data provided.");
14
+ args.forEach((arg) => {
15
+ if (!(arg in thing)) throw new TypeError(`Missing required property: '${arg}'.`);
16
+ });
17
+ };
18
+
19
+ //#endregion
20
+ export { archonShard, archonShardColor, archonShardUpgradeType, conclaveCategory, conclaveChallenge, conclaveMode, dailyReset, faction, fissureModifier, fissureTier, fromNow, insist, languageDesc, languageString, lastResourceName, missionType, node, nodeEnemy, nodeMissionType, operation, operationSymbol, parseDate, pieceIsSmoller, region, sortieBoss, sortieFaction, sortieModDesc, sortieModifier, splitResourceName, steelPath, syndicate, timeDeltaToString, toNow, toTitleCase, translateArchimedeaType, translateCalendarEvent, translateFocus, translatePolarity, translateSeason, upgrade, weeklyReset };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warframe-worldstate-data",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "description": "Warframe data for use with warframe-worldstate-parser",
5
5
  "keywords": [
6
6
  "warframe-worldstate",
@@ -62,7 +62,7 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@biomejs/biome": "2.3.6",
65
+ "@biomejs/biome": "2.3.7",
66
66
  "@commitlint/cli": "^20.0.0",
67
67
  "@commitlint/config-conventional": "^20.0.0",
68
68
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @description Insist that the provided data has the required properties.
3
+ * @param {Record<string, unknown>} thing to encourage to have data
4
+ * @param {...string} args arguments to ensure
5
+ */
6
+ export const insist = (thing: Record<string, unknown>, ...args: string[]) => {
7
+ if (!thing || !Object.keys(thing).length) {
8
+ throw new TypeError('No data provided.');
9
+ }
10
+
11
+ args.forEach((arg) => {
12
+ if (!(arg in thing)) {
13
+ throw new TypeError(`Missing required property: '${arg}'.`);
14
+ }
15
+ });
16
+ };
@@ -1,4 +1,5 @@
1
1
  /* istanbul ignore file */
2
2
 
3
+ export * from './integrity';
3
4
  export * from './timeDate';
4
5
  export * from './translation';