From 1f6df866f34e797df236e38fa181994ab4ca7ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20We=C3=9Fling?= Date: Thu, 7 Dec 2017 16:17:53 +0000 Subject: [PATCH] Replace lodash/assign in favor of the native Object.assign --- lib/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 92f105d7c..2e83c8d2b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,7 +4,6 @@ var path = require('path'), clonedeep = require('lodash/cloneDeep'), - assign = require('lodash/assign'), sass = require('./extensions'); /** @@ -288,7 +287,7 @@ module.exports.render = function(opts, cb) { // options.error and options.success are for libsass binding options.error = function(err) { - var payload = assign(new Error(), JSON.parse(err)); + var payload = Object.assign(new Error(), JSON.parse(err)); if (cb) { options.context.callback.call(options.context, payload, null); @@ -438,7 +437,7 @@ module.exports.renderSync = function(opts) { return result; } - throw assign(new Error(), JSON.parse(result.error)); + throw Object.assign(new Error(), JSON.parse(result.error)); }; /**