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

squishjs

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

squishjs - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

package.json
{
"name": "squishjs",
"version": "1.0.9",
"version": "1.0.10",
"description": "squish & unsquish stuff",

@@ -5,0 +5,0 @@ "scripts": {

@@ -15,2 +15,3 @@ const ASSET_TYPE = 1;

this.assets = {};
this.playerSettings = {};

@@ -118,3 +119,2 @@ this.customBottomLayer = customBottomLayer;

if (playerIdFilter.size > 0) {
let playerIdsToRemove = new Set();

@@ -127,3 +127,11 @@ for (let playerId of playerIdFilter) {

if (node.node.playerIds.length === 0 || node.node.playerIds.findIndex(i => Number(i) === Number(playerId)) >= 0) {
playerMap[playerId].push(squished);
if (node.node.asset) {
const assetInfo = this.gameAssets[Object.keys(node.node.asset)[0]]?.info;
if (assetInfo.type === 'audio' && !this.playerSettings[playerId]?.SOUND?.ENABLED) {
} else {
playerMap[playerId].push(squished);
}
} else {
playerMap[playerId].push(squished);
}
} else {

@@ -141,3 +149,11 @@ playerIdsToRemove.add(playerId);

}
playerMap[playerId].push(squished);
if (node.node.asset) {
const assetInfo = this.gameAssets[Object.keys(node.node.asset)[0]]?.info;
if (assetInfo.type === 'audio' && this.playerSettings[playerId]?.SOUND && !this.playerSettings[playerId].SOUND.enabled) {
} else {
playerMap[playerId].push(squished);
}
} else {
playerMap[playerId].push(squished);
}
})

@@ -177,2 +193,3 @@ }

const gameAssets = gameMetadata && gameMetadata.assets ? gameMetadata.assets : {};
this.gameAssets = gameAssets;

@@ -268,4 +285,13 @@ if (this.customBottomLayer && this.customBottomLayer.assets) {

updatePlayerSettings(playerId, settings) {
const currentSettings = Object.assign(this.playerSettings[playerId] || {}, settings);
this.playerSettings[playerId] = currentSettings;
}
deletePlayerSettings(playerId) {
delete this.playerSettings[playerId];
}
}
module.exports = Squisher;
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