@socketsecurity/cli 0.14.84 → 0.14.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module-sync/cli.js +8 -9
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/fs.d.ts +61 -0
- package/dist/module-sync/shadow-npm-inject.js +8 -20
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/require/cli.js +8 -9
- package/dist/require/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/require/cli.js
CHANGED
|
@@ -912,7 +912,7 @@ function emitBanner(name) {
|
|
|
912
912
|
logger.logger.error(getAsciiHeader(name))
|
|
913
913
|
}
|
|
914
914
|
function getAsciiHeader(command) {
|
|
915
|
-
const cliVersion = '0.14.
|
|
915
|
+
const cliVersion = '0.14.85:f285d45:b535f5e3:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
|
|
916
916
|
const nodeVersion = process$1.version
|
|
917
917
|
const apiToken = shadowNpmInject.getDefaultToken()
|
|
918
918
|
const shownToken = apiToken ? getLastFiveOfApiToken(apiToken) : 'no'
|
|
@@ -4228,7 +4228,7 @@ function runAgentInstall(pkgEnvDetails, options) {
|
|
|
4228
4228
|
}
|
|
4229
4229
|
|
|
4230
4230
|
const { CI, NPM: NPM$c, OVERRIDES: OVERRIDES$2, PNPM: PNPM$9 } = constants
|
|
4231
|
-
async function install(pkgEnvDetails, options) {
|
|
4231
|
+
async function install(pkgEnvDetails, arb, options) {
|
|
4232
4232
|
const { spinner } = {
|
|
4233
4233
|
__proto__: null,
|
|
4234
4234
|
...options
|
|
@@ -4238,6 +4238,8 @@ async function install(pkgEnvDetails, options) {
|
|
|
4238
4238
|
spinner,
|
|
4239
4239
|
stdio: debug.isDebug() ? 'inherit' : 'ignore'
|
|
4240
4240
|
})
|
|
4241
|
+
arb.actualTree = null
|
|
4242
|
+
await arb.loadActual()
|
|
4241
4243
|
}
|
|
4242
4244
|
async function pnpmFix(
|
|
4243
4245
|
pkgEnvDetails,
|
|
@@ -4380,7 +4382,7 @@ async function pnpmFix(
|
|
|
4380
4382
|
saved = true
|
|
4381
4383
|
|
|
4382
4384
|
// eslint-disable-next-line no-await-in-loop
|
|
4383
|
-
await install(pkgEnvDetails, {
|
|
4385
|
+
await install(pkgEnvDetails, arb, {
|
|
4384
4386
|
spinner
|
|
4385
4387
|
})
|
|
4386
4388
|
installed = true
|
|
@@ -4417,12 +4419,9 @@ async function pnpmFix(
|
|
|
4417
4419
|
}
|
|
4418
4420
|
if (installed) {
|
|
4419
4421
|
// eslint-disable-next-line no-await-in-loop
|
|
4420
|
-
await install(pkgEnvDetails, {
|
|
4422
|
+
await install(pkgEnvDetails, arb, {
|
|
4421
4423
|
spinner
|
|
4422
4424
|
})
|
|
4423
|
-
arb.actualTree = null
|
|
4424
|
-
// eslint-disable-next-line no-await-in-loop
|
|
4425
|
-
await arb.loadActual()
|
|
4426
4425
|
}
|
|
4427
4426
|
spinner?.failAndStop(`Failed to fix ${oldSpec}`)
|
|
4428
4427
|
}
|
|
@@ -11304,7 +11303,7 @@ void (async () => {
|
|
|
11304
11303
|
await vendor.updater({
|
|
11305
11304
|
name: SOCKET_CLI_BIN_NAME,
|
|
11306
11305
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
11307
|
-
version: '0.14.
|
|
11306
|
+
version: '0.14.85',
|
|
11308
11307
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
11309
11308
|
})
|
|
11310
11309
|
try {
|
|
@@ -11372,5 +11371,5 @@ void (async () => {
|
|
|
11372
11371
|
await shadowNpmInject.captureException(e)
|
|
11373
11372
|
}
|
|
11374
11373
|
})()
|
|
11375
|
-
//# debugId=
|
|
11374
|
+
//# debugId=1e430ef2-95c3-4150-868c-284dc60ae3f4
|
|
11376
11375
|
//# sourceMappingURL=cli.js.map
|