From 834401184b43d6f6a1159179e4cefdd3e6bf53be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 08:58:01 +0000 Subject: [PATCH 1/2] 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] --- package-lock.json | 14 +++++++++----- package.json | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5428576..7933f3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "acorn": "^8.0.4", "ast-util-plus": "^0.7.1", "classic-level": "^3.0.0", - "indent-string": "^4.0.0", + "indent-string": "^5.0.0", "recast": "^0.20.4", "resolve": "^1.19.0", "source-map": "^0.7.3" @@ -1563,11 +1563,15 @@ "license": "BSD-3-Clause" }, "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/inflight": { diff --git a/package.json b/package.json index 2c6c05d..6842d9a 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "acorn": "^8.0.4", "ast-util-plus": "^0.7.1", "classic-level": "^3.0.0", - "indent-string": "^4.0.0", + "indent-string": "^5.0.0", "recast": "^0.20.4", "resolve": "^1.19.0", "source-map": "^0.7.3" -- 2.45.2 From b95893aad31eb25f0de04c417b44eb3f87ab9678 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Mon, 4 May 2026 01:58:44 -0700 Subject: [PATCH 2/2] 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 --- lib/generate-snapshot-script.js | 3 ++- package-lock.json | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generate-snapshot-script.js b/lib/generate-snapshot-script.js index bc7f05a..b70fa6e 100644 --- a/lib/generate-snapshot-script.js +++ b/lib/generate-snapshot-script.js @@ -3,10 +3,11 @@ const fs = require('fs') const path = require('path') const FileRequireTransform = require('./file-require-transform') -const indentString = require('indent-string') +const indentStringImport = import('indent-string') const {SourceMapGenerator} = require('source-map') module.exports = async function (cache, options) { + const {default: indentString} = await indentStringImport // Phase 1: Starting at the main module, traverse all requires, transforming // all module references to paths relative to the base directory path and // collecting abstract syntax trees for use in generating the script in diff --git a/package-lock.json b/package-lock.json index 7933f3d..341c06d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1566,7 +1566,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", - "license": "MIT", "engines": { "node": ">=12" }, -- 2.45.2