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

canvas-confetti

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-confetti - npm Package Compare versions

Comparing version

to
1.1.1

19

dist/confetti.browser.js

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

// canvas-confetti v1.1.0 built on 2020-02-23T18:57:14.260Z
// canvas-confetti v1.1.1 built on 2020-03-05T02:43:16.010Z
!(function (window, module) {

@@ -477,5 +477,18 @@ // source content

// TODO this really shouldn't be immediate, because it is expensive
var obj = {};
var obj = {
getBoundingClientRect: function () {
if (!isLibCanvas) {
return canvas.getBoundingClientRect();
}
}
};
resizer(obj);
worker.postMessage({ resize: obj });
worker.postMessage({
resize: {
width: obj.width,
height: obj.height
}
});
return;

@@ -482,0 +495,0 @@ }

2

package.json
{
"name": "canvas-confetti",
"version": "1.1.0",
"version": "1.1.1",
"description": "performant confetti animation in the browser",

@@ -5,0 +5,0 @@ "main": "src/confetti.js",

@@ -474,5 +474,18 @@ (function main(global, module, isWorker, workerSize) {

// TODO this really shouldn't be immediate, because it is expensive
var obj = {};
var obj = {
getBoundingClientRect: function () {
if (!isLibCanvas) {
return canvas.getBoundingClientRect();
}
}
};
resizer(obj);
worker.postMessage({ resize: obj });
worker.postMessage({
resize: {
width: obj.width,
height: obj.height
}
});
return;

@@ -479,0 +492,0 @@ }

Sorry, the diff of this file is not supported yet