From 56c83fafaf214fcdb54981c9684dc9d92e0029be Mon Sep 17 00:00:00 2001 From: Joshua Gorner Date: Mon, 22 Apr 2024 14:56:35 -0400 Subject: [PATCH] Replace unmaintained lodash per-method packages with full lodash --- index.js | 4 ++-- package.json | 3 +-- tests/integration.js | 2 +- yarn.lock | 28 ++++------------------------ 4 files changed, 8 insertions(+), 29 deletions(-) diff --git a/index.js b/index.js index 39ad676..1c15a1e 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,8 @@ var validate , toAscii , assert = require('assert') , SMConsumer = require('source-map').SourceMapConsumer - , each = require('lodash.foreach') - , template = require('lodash.template') + , each = require('lodash/foreach') + , template = require('lodash/template') , jsesc = require('jsesc') , fancyArrow = String.fromCharCode(parseInt(2192,16)); diff --git a/package.json b/package.json index b6223b0..661d4a1 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,7 @@ }, "dependencies": { "jsesc": "~0.3.x", - "lodash.foreach": "^4.5.0", - "lodash.template": "^4.5.0", + "lodash": "^4.17.21", "source-map": "~0.1.x" }, "files": [ diff --git a/tests/integration.js b/tests/integration.js index cb8dbf0..7dbab93 100644 --- a/tests/integration.js +++ b/tests/integration.js @@ -3,7 +3,7 @@ var validate = require('..') , path = require('path') , assert = require('assert') , uglify = require('uglify-js') - , each = require('lodash.foreach') + , each = require('lodash/foreach') , libDir = path.join(__dirname, 'fixtures', 'integration') , tests = {} , fixtures; diff --git a/yarn.lock b/yarn.lock index f6cfe6a..0bc9347 100644 --- a/yarn.lock +++ b/yarn.lock @@ -35,30 +35,10 @@ jsesc@~0.3.x: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.3.0.tgz#1bf5ee63b4539fe2e26d0c1e99c240b97a457972" integrity sha1-G/XuY7RTn+LibQwemcJAuXpFeXI= -lodash._reinterpolate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" - integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= - -lodash.foreach@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.foreach/-/lodash.foreach-4.5.0.tgz#1a6a35eace401280c7f06dddec35165ab27e3e53" - integrity sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM= - -lodash.template@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" - integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.templatesettings "^4.0.0" - -lodash.templatesettings@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" - integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== - dependencies: - lodash._reinterpolate "^3.0.0" +lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== lru-cache@2: version "2.7.3"