Socket
Socket
Sign inDemoInstall

@gaia-project/engine

Package Overview
Dependencies
Maintainers
2
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gaia-project/engine - npm Package Compare versions

Comparing version 4.8.43 to 4.8.44

2

dist/package.json
{
"name": "@gaia-project/engine",
"version": "4.8.43",
"version": "4.8.44",
"description": "Javascript engine for project gaia",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -26,3 +26,3 @@ "use strict";

player,
data: s.descriptions,
data: s.descriptions.map((d) => d.toString()),
});

@@ -29,0 +29,0 @@ }

@@ -35,4 +35,4 @@ "use strict";

for (const incR of incomeRewards) {
const eventIdx = incomes.findIndex((rw) => reward_1.default.match(reward_1.default.parse(incR), [rw]));
assert_1.default(eventIdx > -1, `${incR} is not in the available income`);
const eventIdx = incomes.findIndex((rw) => reward_1.default.match(reward_1.default.parse(incR), reward_1.default.parse(rw)));
assert_1.default(eventIdx > -1, `${incR} is not in the available income: ${incomes.join(",")}`);
incomes.splice(eventIdx, 1);

@@ -39,0 +39,0 @@ }

{
"name": "@gaia-project/engine",
"version": "4.8.43",
"version": "4.8.44",
"description": "Javascript engine for project gaia",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -29,3 +29,3 @@ import Engine from "../engine";

player,
data: s.descriptions,
data: s.descriptions.map((d) => d.toString()),
});

@@ -32,0 +32,0 @@ }

@@ -17,3 +17,2 @@ import {

import { BrainstoneDest } from "../player-data";
import Reward from "../reward";
import { AvailableSetupOption } from "../setup";

@@ -111,3 +110,3 @@

[Command.ChooseFederationTile]: { tiles: Federation[]; rescore: boolean };
[Command.ChooseIncome]: Reward[];
[Command.ChooseIncome]: string[];
[Command.ChooseRoundBooster]: { boosters: Booster[] };

@@ -114,0 +113,0 @@ [Command.ChooseTechTile]: { tiles: ChooseTechTile[] };

@@ -42,3 +42,3 @@ import assert from "assert";

function descriptions(gainTokens: Event[], chargePowers: Event[]) {
function descriptions(gainTokens: Event[], chargePowers: Event[]): Reward[] {
return [

@@ -45,0 +45,0 @@ ...gainTokens.map((ev) => ev.rewards.find((rw) => rw.type === Resource.GainToken)),

@@ -53,4 +53,4 @@ import assert from "assert";

for (const incR of incomeRewards) {
const eventIdx = incomes.findIndex((rw) => Reward.match(Reward.parse(incR), [rw]));
assert(eventIdx > -1, `${incR} is not in the available income`);
const eventIdx = incomes.findIndex((rw) => Reward.match(Reward.parse(incR), Reward.parse(rw)));
assert(eventIdx > -1, `${incR} is not in the available income: ${incomes.join(",")}`);
incomes.splice(eventIdx, 1);

@@ -57,0 +57,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc