Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Replace lodash/assign in favor of the native Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking authored and nschonni committed Sep 30, 2020
1 parent 522828a commit 1f6df86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

var path = require('path'),
clonedeep = require('lodash/cloneDeep'),
assign = require('lodash/assign'),
sass = require('./extensions');

/**
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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));
};

/**
Expand Down

0 comments on commit 1f6df86

Please sign in to comment.