File: 2001_modernize_lodash_loading.patch

package info (click to toggle)
node-webpack-merge 2.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 224 kB
  • sloc: javascript: 1,569; sh: 4; makefile: 4
file content (41 lines) | stat: -rw-r--r-- 1,444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: modernize lodash loading
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2019-01-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/index.js
+++ b/src/index.js
@@ -1,6 +1,5 @@
-const differenceWith = require('lodash.differencewith');
-const mergeWith = require('lodash.mergewith');
-const unionWith = require('lodash.unionwith');
+import { differenceWith, mergeWith, unionWith } from 'lodash';
+
 const joinArrays = require('./join-arrays');
 const joinArraysSmart = require('./join-arrays-smart');
 
--- a/src/join-arrays-smart.js
+++ b/src/join-arrays-smart.js
@@ -1,8 +1,5 @@
-const isEqual = require('lodash.isequal');
-const isFunction = require('lodash.isfunction');
-const mergeWith = require('lodash.mergewith');
-const unionWith = require('lodash.unionwith');
-const differenceWith = require('lodash.differencewith');
+import { isEqual, isFunction, mergeWith, unionWith, differenceWith } from 'lodash';
+
 const joinArrays = require('./join-arrays');
 
 const isArray = Array.isArray;
--- a/src/join-arrays.js
+++ b/src/join-arrays.js
@@ -1,7 +1,4 @@
-const cloneDeep = require('lodash.clonedeep');
-const isFunction = require('lodash.isfunction');
-const isPlainObject = require('lodash.isplainobject');
-const mergeWith = require('lodash.mergewith');
+import { cloneDeep, isFunction, isPlainObject, mergeWith } from 'lodash';
 
 const isArray = Array.isArray;