@socketsecurity/cli-with-sentry 0.14.110 → 0.14.112
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/instrument-with-sentry.js +2 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/module-sync/cli.js +52 -49
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/shadow-npm-inject.js +27 -23
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/require/cli.js +52 -49
- package/dist/require/cli.js.map +1 -1
- package/dist/require/shadow-npm-inject.js +27 -23
- package/dist/require/shadow-npm-inject.js.map +1 -1
- package/package.json +1 -1
|
@@ -391,7 +391,7 @@ async function setupSdk(
|
|
|
391
391
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
|
|
392
392
|
name: '@socketsecurity/cli',
|
|
393
393
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
394
|
-
version: '0.14.
|
|
394
|
+
version: '0.14.112',
|
|
395
395
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
|
|
396
396
|
homepage: 'https://github.com/SocketDev/socket-cli'
|
|
397
397
|
})
|
|
@@ -1416,27 +1416,31 @@ function updatePackageJsonFromNode(
|
|
|
1416
1416
|
rangeStyle
|
|
1417
1417
|
) {
|
|
1418
1418
|
let result = false
|
|
1419
|
-
if (isTopLevel(tree, node)) {
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1419
|
+
if (!isTopLevel(tree, node)) {
|
|
1420
|
+
debug.debugLog('not top level', node)
|
|
1421
|
+
return result
|
|
1422
|
+
}
|
|
1423
|
+
const { name } = node
|
|
1424
|
+
debug.debugLog('name', name)
|
|
1425
|
+
debug.debugLog('editablePkgJson.content', editablePkgJson.content)
|
|
1426
|
+
for (const depField of [
|
|
1427
|
+
'dependencies',
|
|
1428
|
+
'optionalDependencies',
|
|
1429
|
+
'peerDependencies'
|
|
1430
|
+
]) {
|
|
1431
|
+
const depObject = editablePkgJson.content[depField]
|
|
1432
|
+
if (depObject) {
|
|
1433
|
+
const oldRange = depObject[name]
|
|
1434
|
+
if (oldRange) {
|
|
1435
|
+
const newRange = applyRange(oldRange, targetVersion, rangeStyle)
|
|
1436
|
+
if (oldRange !== newRange) {
|
|
1437
|
+
result = true
|
|
1438
|
+
editablePkgJson.update({
|
|
1439
|
+
[depField]: {
|
|
1440
|
+
...depObject,
|
|
1441
|
+
[name]: newRange
|
|
1442
|
+
}
|
|
1443
|
+
})
|
|
1440
1444
|
}
|
|
1441
1445
|
}
|
|
1442
1446
|
}
|
|
@@ -2353,5 +2357,5 @@ exports.supportedConfigKeys = supportedConfigKeys
|
|
|
2353
2357
|
exports.updateConfigValue = updateConfigValue
|
|
2354
2358
|
exports.updateNode = updateNode
|
|
2355
2359
|
exports.updatePackageJsonFromNode = updatePackageJsonFromNode
|
|
2356
|
-
//# debugId=
|
|
2360
|
+
//# debugId=b19ce781-736b-4187-b8ea-59ac136b5cac
|
|
2357
2361
|
//# sourceMappingURL=shadow-npm-inject.js.map
|