Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.31 to 4.8.32

2

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

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

@@ -52,18 +52,16 @@ "use strict";

.flatMap((h) => locationFactory(h));
const actions = [];
if (locations.length > 0) {
const actions = [
{
type,
locations,
},
];
if (allowDecline) {
actions.push({
type: types_1.ShipAction.Nothing,
locations: [],
});
}
return actions;
actions.push({
type,
locations,
});
}
return [];
if (allowDecline) {
actions.push({
type: types_1.ShipAction.Nothing,
locations: [],
});
}
return actions;
}

@@ -70,0 +68,0 @@ function tradeUnits(engine, player, building) {

@@ -136,5 +136,2 @@ "use strict";

this.loadMoves(moves);
if (replay) {
this.options = options; // is this necessary?
}
}

@@ -141,0 +138,0 @@ get expansions() {

@@ -414,4 +414,6 @@ "use strict";

power += this.power.area3;
// eslint-disable-next-line no-fallthrough
case enums_1.PowerArea.Area2:
power += this.power.area2;
// eslint-disable-next-line no-fallthrough
case enums_1.PowerArea.Area1:

@@ -418,0 +420,0 @@ power += this.power.area1;

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

const rewards = event.rewards.map((reward) => new reward_1.default(reward.count * times, reward.type));
return { source: event.source, rewards: rewards };
return new events_1.default(rewards.join(","), event.source);
});

@@ -628,0 +628,0 @@ }

{
"name": "@gaia-project/engine",
"version": "4.8.31",
"version": "4.8.32",
"description": "Javascript engine for project gaia",

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

@@ -77,18 +77,16 @@ import Engine from "../engine";

.flatMap((h) => locationFactory(h));
const actions: AvailableShipAction[] = [];
if (locations.length > 0) {
const actions = [
{
type,
locations,
} as AvailableShipAction,
];
if (allowDecline) {
actions.push({
type: ShipAction.Nothing,
locations: [],
});
}
return actions;
actions.push({
type,
locations,
} as AvailableShipAction);
}
return [];
if (allowDecline) {
actions.push({
type: ShipAction.Nothing,
locations: [],
});
}
return actions;
}

@@ -95,0 +93,0 @@

@@ -302,5 +302,2 @@ import assert from "assert";

this.loadMoves(moves);
if (replay) {
this.options = options; // is this necessary?
}
}

@@ -307,0 +304,0 @@

@@ -360,6 +360,6 @@ import assert from "assert";

let center = this.placement!.sectors!.find((conf) => conf.sector.replace(/[AB]/, "") === sector).center!;
let center = this.placement.sectors.find((conf) => conf.sector.replace(/[AB]/, "") === sector).center;
if (!center) {
const index = this.placement!.sectors!.findIndex((conf) => conf.sector.replace(/[AB]/, "") === sector);
const index = this.placement.sectors.findIndex((conf) => conf.sector.replace(/[AB]/, "") === sector);
center = (this.placement.sectors.length === 7 ? smallCenters : bigCenters)[index];

@@ -366,0 +366,0 @@ }

@@ -489,4 +489,6 @@ import { EventEmitter } from "eventemitter3";

power += this.power.area3;
// eslint-disable-next-line no-fallthrough
case PowerArea.Area2:
power += this.power.area2;
// eslint-disable-next-line no-fallthrough
case PowerArea.Area1:

@@ -493,0 +495,0 @@ power += this.power.area1;

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

passIncomeEvents(): { source: EventSource; rewards: Reward[] }[] {
passIncomeEvents(): Event[] {
// this is for pass tile income (e.g. round boosters, adv tiles)

@@ -773,3 +773,3 @@ return this.events[Operator.Pass].map((event) => {

const rewards = event.rewards.map((reward) => new Reward(reward.count * times, reward.type));
return { source: event.source, rewards: rewards };
return new Event(rewards.join(","), event.source);
});

@@ -776,0 +776,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

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