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

remove lodash dep #3198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/

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

/**
Expand Down Expand Up @@ -189,7 +188,7 @@ function getOptions(opts, cb) {
if (typeof opts !== 'object') {
throw new Error('Invalid: options is not an object.');
}
var options = clonedeep(opts || {});
var options = Object.assign({}, opts || {});

options.sourceComments = options.sourceComments || false;
if (Object.prototype.hasOwnProperty.call(options, 'file')) {
Expand Down Expand Up @@ -343,7 +342,7 @@ module.exports.render = function(opts, cb) {
}
}

var functions = clonedeep(options.functions);
var functions = Object.assign({}, options.functions);

if (functions) {
options.functions = {};
Expand Down Expand Up @@ -407,7 +406,7 @@ module.exports.renderSync = function(opts) {
}
}

var functions = clonedeep(options.functions);
var functions = Object.assign({}, options.functions);

if (options.functions) {
options.functions = {};
Expand Down
3 changes: 1 addition & 2 deletions lib/watcher.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
var grapher = require('sass-graph'),
clonedeep = require('lodash/cloneDeep'),
path = require('path'),
config = {},
watcher = {},
graph = null;

watcher.reset = function(opts) {
config = clonedeep(opts || config || {});
config = Object.assign({}, opts || config || {});
var options = {
loadPaths: config.includePath,
extensions: ['scss', 'sass', 'css'],
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"gaze": "^1.0.0",
"get-stdin": "^4.0.1",
"glob": "^7.0.3",
"lodash": "^4.17.15",
"meow": "^9.0.0",
"nan": "^2.13.2",
"node-gyp": "^7.1.0",
Expand Down