Bump indent-string from 4.0.0 to 5.0.0 (#5)
* Bump indent-string from 4.0.0 to 5.0.0 Bumps [indent-string](https://github.com/sindresorhus/indent-string) from 4.0.0 to 5.0.0. - [Release notes](https://github.com/sindresorhus/indent-string/releases) - [Commits](https://github.com/sindresorhus/indent-string/compare/v4.0.0...v5.0.0) --- updated-dependencies: - dependency-name: indent-string dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix indent-string v5 ESM compatibility indent-string v5 is ESM-only with a default export. Use a top-level dynamic import() promise and destructure .default inside the async function to avoid require() incompatibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
09c137a6ff
commit
5c38cb0a84
3 changed files with 11 additions and 7 deletions
|
|
@ -3,10 +3,11 @@
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const FileRequireTransform = require('./file-require-transform')
|
const FileRequireTransform = require('./file-require-transform')
|
||||||
const indentString = require('indent-string')
|
const indentStringImport = import('indent-string')
|
||||||
const {SourceMapGenerator} = require('source-map')
|
const {SourceMapGenerator} = require('source-map')
|
||||||
|
|
||||||
module.exports = async function (cache, options) {
|
module.exports = async function (cache, options) {
|
||||||
|
const {default: indentString} = await indentStringImport
|
||||||
// Phase 1: Starting at the main module, traverse all requires, transforming
|
// Phase 1: Starting at the main module, traverse all requires, transforming
|
||||||
// all module references to paths relative to the base directory path and
|
// all module references to paths relative to the base directory path and
|
||||||
// collecting abstract syntax trees for use in generating the script in
|
// collecting abstract syntax trees for use in generating the script in
|
||||||
|
|
|
||||||
13
package-lock.json
generated
13
package-lock.json
generated
|
|
@ -12,7 +12,7 @@
|
||||||
"acorn": "^8.0.4",
|
"acorn": "^8.0.4",
|
||||||
"ast-util-plus": "^0.7.1",
|
"ast-util-plus": "^0.7.1",
|
||||||
"classic-level": "^3.0.0",
|
"classic-level": "^3.0.0",
|
||||||
"indent-string": "^4.0.0",
|
"indent-string": "^5.0.0",
|
||||||
"recast": "^0.20.4",
|
"recast": "^0.20.4",
|
||||||
"resolve": "^1.19.0",
|
"resolve": "^1.19.0",
|
||||||
"source-map": "^0.7.3"
|
"source-map": "^0.7.3"
|
||||||
|
|
@ -1563,11 +1563,14 @@
|
||||||
"license": "BSD-3-Clause"
|
"license": "BSD-3-Clause"
|
||||||
},
|
},
|
||||||
"node_modules/indent-string": {
|
"node_modules/indent-string": {
|
||||||
"version": "4.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",
|
||||||
"integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
|
"integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8"
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/inflight": {
|
"node_modules/inflight": {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"acorn": "^8.0.4",
|
"acorn": "^8.0.4",
|
||||||
"ast-util-plus": "^0.7.1",
|
"ast-util-plus": "^0.7.1",
|
||||||
"classic-level": "^3.0.0",
|
"classic-level": "^3.0.0",
|
||||||
"indent-string": "^4.0.0",
|
"indent-string": "^5.0.0",
|
||||||
"recast": "^0.20.4",
|
"recast": "^0.20.4",
|
||||||
"resolve": "^1.19.0",
|
"resolve": "^1.19.0",
|
||||||
"source-map": "^0.7.3"
|
"source-map": "^0.7.3"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue