merge-images
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -18,3 +18,3 @@ // Defaults | ||
// Setup browser/node specific variables | ||
// Setup browser/Node.js specific variables | ||
var canvas = options.Canvas ? new options.Canvas() : window.document.createElement('canvas'); | ||
@@ -28,3 +28,3 @@ var Image = options.Canvas ? options.Canvas.Image : window.Image; | ||
var images = sources.map(function (source) { return new Promise(function (resolve, reject) { | ||
// Convert strings to objects | ||
// Convert sources to objects | ||
if (source.constructor.name !== 'Object') { | ||
@@ -31,0 +31,0 @@ source = { src: source }; |
@@ -24,3 +24,3 @@ (function (global, factory) { | ||
// Setup browser/node specific variables | ||
// Setup browser/Node.js specific variables | ||
var canvas = options.Canvas ? new options.Canvas() : window.document.createElement('canvas'); | ||
@@ -34,3 +34,3 @@ var Image = options.Canvas ? options.Canvas.Image : window.Image; | ||
var images = sources.map(function (source) { return new Promise(function (resolve, reject) { | ||
// Convert strings to objects | ||
// Convert sources to objects | ||
if (source.constructor.name !== 'Object') { | ||
@@ -37,0 +37,0 @@ source = { src: source }; |
{ | ||
"name": "merge-images", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Easily compose images together without messing around with canvas", | ||
@@ -14,3 +14,4 @@ "main": "dist/index.umd.js", | ||
"prelint": "npm run build", | ||
"lint": "xo" | ||
"lint": "xo", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -17,0 +18,0 @@ "xo": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
145929