From 4cbfbd86fc129db5a3ba428ec1391194183daf32 Mon Sep 17 00:00:00 2001 From: Marcelo Lauxen Date: Tue, 21 Nov 2023 10:17:05 -0300 Subject: [PATCH] upgrade trim-newlines --- bootstrap-icons-gem/package-lock.json | 19 +++++++++++-------- bootstrap-icons-gem/package.json | 2 +- bootstrap-icons-gem/script/build.js | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/bootstrap-icons-gem/package-lock.json b/bootstrap-icons-gem/package-lock.json index 5152bf1..745d775 100644 --- a/bootstrap-icons-gem/package-lock.json +++ b/bootstrap-icons-gem/package-lock.json @@ -12,7 +12,7 @@ "fs-extra": "^11.1.1", "globby": "^14.0.0", "lodash.keyby": "^4.6.0", - "trim-newlines": "^3.0.1", + "trim-newlines": "^5.0.0", "yargs": "^15.1.0" } }, @@ -775,12 +775,15 @@ } }, "node_modules/trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-5.0.0.tgz", + "integrity": "sha512-kstfs+hgwmdsOadN3KgA+C68wPJwnZq4DN6WMDCvZapDWEF34W2TyPKN2v2+BJnZgIz5QOfxFeldLyYvdgRAwg==", "dev": true, "engines": { - "node": ">=8" + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/unicorn-magic": { @@ -1395,9 +1398,9 @@ } }, "trim-newlines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-5.0.0.tgz", + "integrity": "sha512-kstfs+hgwmdsOadN3KgA+C68wPJwnZq4DN6WMDCvZapDWEF34W2TyPKN2v2+BJnZgIz5QOfxFeldLyYvdgRAwg==", "dev": true }, "unicorn-magic": { diff --git a/bootstrap-icons-gem/package.json b/bootstrap-icons-gem/package.json index 822d766..57b89bf 100644 --- a/bootstrap-icons-gem/package.json +++ b/bootstrap-icons-gem/package.json @@ -9,7 +9,7 @@ "fs-extra": "^11.1.1", "globby": "^14.0.0", "lodash.keyby": "^4.6.0", - "trim-newlines": "^3.0.1", + "trim-newlines": "^5.0.0", "yargs": "^15.1.0" } } diff --git a/bootstrap-icons-gem/script/build.js b/bootstrap-icons-gem/script/build.js index 2f53cdd..ddcb13f 100755 --- a/bootstrap-icons-gem/script/build.js +++ b/bootstrap-icons-gem/script/build.js @@ -5,7 +5,7 @@ const path = require('path') const { globbySync } = await import('globby') const cheerio = require('cheerio') - const trimNewlines = require('trim-newlines') + const { trimNewlines } = await import('trim-newlines') const yargs = require('yargs') const keyBy = require('lodash.keyby')