New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

krot-phaser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krot-phaser - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "krot-phaser",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

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

@@ -1,2 +0,2 @@

const {getKeyAndFrameName, isDefaultFrame} = require("./utils");
const {getKeyAndFrameName, getImageByTextureName} = require("./utils");

@@ -33,3 +33,4 @@ const Sprite = Phaser.Sprite;

get() {
return isDefaultFrame(this.key, this.animations.frameName) ? this.key : this.frameName;
const image = getImageByTextureName(this.key);
return image.frameData.getFrames().length === 1 ? this.key : this.frameName;
},

@@ -36,0 +37,0 @@ });

@@ -59,7 +59,2 @@ let frameNameKeyMap = {};

const isDefaultFrame = (key, frameName) => {
const image = game.cache.getImage(key, Phaser.Cache.IMAGE);
return image.frameData.getFrame(0).name === frameName;
};
module.exports = {getKeyAndFrameName, getImageByTextureName, isDefaultFrame};
module.exports = {getKeyAndFrameName, getImageByTextureName};

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