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

pixeled

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixeled - npm Package Compare versions

Comparing version 1.0.0-beta.0 to 1.0.0-beta.1

rollup.config.js

2

dist/index.js

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

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"default",function(){return i});var i=function e(t){var n=this,i=t.canvas;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"canvas",null),r(this,"context",null),r(this,"elapsedTime",0),r(this,"previousTime",null),r(this,"running",!1),r(this,"height",256),r(this,"width",256),r(this,"_loop",function(e){null==n.previousTime&&(n.previousTime=e),n.elapsedTime=e;n.previousTime;n.context.clearRect(0,0,n.width,n.height),n.running&&requestAnimationFrame(n._loop)}),r(this,"start",function(){n.running=!0,requestAnimationFrame(n._loop)}),r(this,"stop",function(){n.running=!1}),this.canvas=i,this.context=i.getContext("2d")}}]);
"use strict";function _classCallCheck(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperty(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var Pixeled=function e(i){var t=this,n=i.canvas;_classCallCheck(this,e),_defineProperty(this,"canvas",null),_defineProperty(this,"context",null),_defineProperty(this,"elapsedTime",0),_defineProperty(this,"previousTime",null),_defineProperty(this,"running",!1),_defineProperty(this,"height",256),_defineProperty(this,"width",256),_defineProperty(this,"_loop",function(e){null==t.previousTime&&(t.previousTime=e),t.elapsedTime=e;t.previousTime;t.context.clearRect(0,0,t.width,t.height),t.running&&requestAnimationFrame(t._loop)}),_defineProperty(this,"start",function(){t.running=!0,requestAnimationFrame(t._loop)}),_defineProperty(this,"stop",function(){t.running=!1}),this.canvas=n,this.context=n.getContext("2d")};module.exports=Pixeled;
{
"name": "pixeled",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"description": "A functional tile game engine",

@@ -9,4 +9,4 @@ "main": "dist/index.js",

"scripts": {
"dev": "webpack -w",
"build": "NODE_ENV=\"production\" webpack"
"dev": "rollup -c rollup.config.js -w",
"build": "rollup -c rollup.config.js"
},

@@ -18,5 +18,7 @@ "devDependencies": {

"babel-loader": "^8.0.4",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.2"
"rollup": "^0.66.6",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-terser": "^3.0.0"
}
}

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