From 8b6cec044de9e6f8e5c828bcb631623374f00ec2 Mon Sep 17 00:00:00 2001 From: Jonathan Woodard Date: Thu, 16 Nov 2017 07:15:25 -0700 Subject: [PATCH] Explicitly declare `Image` to avoid strict-mode error --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ec3fd26..dabd024 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,8 @@ if (typeof Parse == "undefined") { Parse = require("parse").Parse; } -module.exports = Image = function(){} +var Image = function(){}; +module.exports = Image; Image.prototype.setData = function(data, options){ return _setData(this, data, undefined, options);