🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@ion-phaser/react

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ion-phaser/react - npm Package Compare versions

Comparing version

to
1.2.2

dist/components.d.ts

37

dist/index.js

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

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
const loader = require('@ion-phaser/core/loader');
const React = _interopDefault(require('react'));
class IonPhaserComponent extends React.Component {
constructor() {
super(...arguments);
this.ref = React.createRef();
}
updateGame(nextProps) {
const node = this.ref.current;
if (!node.game && nextProps.game) {
node.game = nextProps.game;
}
}
componentDidMount() {
this.updateGame(this.props);
}
componentDidUpdate() {
this.updateGame(this.props);
}
render() {
return (React.createElement("ion-phaser", Object.assign({ ref: this.ref }, this.props)));
}
}
loader.defineCustomElements(window);
exports.IonPhaser = IonPhaserComponent;
//# sourceMappingURL=index.js.map
export * from './components';
//# sourceMappingURL=index.js.map
{
"name": "@ion-phaser/react",
"version": "1.2.1",
"version": "1.2.2",
"description": "React specific wrapper for @ion-phaser/core",

@@ -26,10 +26,10 @@ "keywords": [

"build": "npm run clean && npm run compile",
"clean": "rm -rf dist && rm -rf dist-transpiled",
"compile": "npm run tsc && rollup -c",
"clean": "rm -rf dist",
"compile": "npm run tsc",
"tsc": "tsc -p .",
"test": "jest"
"lint": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx}' --quiet --fix --ignore-pattern 'src/react-component-lib/*'"
},
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/types/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [

@@ -39,18 +39,24 @@ "dist/"

"dependencies": {
"@ion-phaser/core": "^1.2.0"
"@ion-phaser/core": "^1.2.3"
},
"devDependencies": {
"@types/jest": "^23.3.9",
"@types/node": "10.12.9",
"@types/react": "^16.9.2",
"react": "^16.9.0",
"phaser": "^3.19.0",
"typescript": "^3.6.2",
"rollup": "^1.20.3",
"@types/jest": "23.3.9",
"@types/node": "13.13.0",
"@types/react": "16.7.6",
"@types/react-dom": "16.0.9",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.28.0",
"eslint": "^6.8.0",
"eslint-plugin-react": "^7.19.0",
"jest": "^25.4.0",
"jest-dom": "^3.0.2",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"rollup": "^1.21.2",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-virtual": "^1.0.1"
"typescript": "^3.3.4000"
},
"peerDependencies": {
"react": "^16.9.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"phaser": "^3.19.0"

@@ -60,11 +66,8 @@ },

"preset": "ts-jest",
"setupTestFrameworkScriptFile": "<rootDir>/jest.setup.js",
"testPathIgnorePatterns": [
"node_modules",
"dist",
"dist-transpiled"
],
"modulePaths": [
"<rootDir>"
"dist"
]
}
}

Sorry, the diff of this file is not supported yet