Browse Source

Remove destructuring.

pull/150/head
john-codeworx 6 years ago
parent
commit
20f4883f7b
  1. 8709
      package-lock.json
  2. 4
      package.json
  3. 6
      resemble.js

8709
package-lock.json generated

File diff suppressed because it is too large Load Diff

4
package.json

@ -46,8 +46,8 @@
"eslint-plugin-import": "^2.12.0", "eslint-plugin-import": "^2.12.0",
"eslint-plugin-prettier": "^2.6.0", "eslint-plugin-prettier": "^2.6.0",
"husky": "^0.14.3", "husky": "^0.14.3",
"jest": "^20.0.4", "jest": "~23.0.1",
"jest-cli": "^23.5.0", "jest-cli": "~23.0.1",
"lint-staged": "^7.2.0", "lint-staged": "^7.2.0",
"prettier": "^1.13.5" "prettier": "^1.13.5"
}, },

6
resemble.js

@ -16,12 +16,14 @@ URL: https://github.com/Huddle/Resemble.js
"use strict"; "use strict";
var Img; var Img;
var { Canvas, Image: CanvasImage } = require("canvas-prebuilt"); var Canvas;
if (typeof Image !== "undefined") { if (typeof Image !== "undefined") {
Img = Image; Img = Image;
} else { } else {
Img = CanvasImage; var canvasPrebuilt = require("canvas-prebuilt");
Canvas = canvasPrebuilt.Canvas;
Img = canvasPrebuilt.Image;
} }
var document = var document =

Loading…
Cancel
Save