@socketsecurity/cli-with-sentry 0.14.109 → 0.14.111
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 +14 -5
- 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 +14 -5
- 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
package/dist/require/cli.js
CHANGED
|
@@ -917,7 +917,7 @@ function emitBanner(name) {
|
|
|
917
917
|
logger.logger.error(getAsciiHeader(name))
|
|
918
918
|
}
|
|
919
919
|
function getAsciiHeader(command) {
|
|
920
|
-
const cliVersion = '0.14.
|
|
920
|
+
const cliVersion = '0.14.111:ed1497e:e21871cf:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
|
|
921
921
|
const nodeVersion = process$1.version
|
|
922
922
|
const apiToken = shadowNpmInject.getDefaultToken()
|
|
923
923
|
const defaultOrg = shadowNpmInject.getConfigValue('defaultOrg')
|
|
@@ -3728,7 +3728,10 @@ const cmdDiffScan = {
|
|
|
3728
3728
|
|
|
3729
3729
|
const { GITHUB_REF_NAME } = constants
|
|
3730
3730
|
function formatBranchName(str) {
|
|
3731
|
-
return str
|
|
3731
|
+
return str
|
|
3732
|
+
.replace(/[\\/-_.]+/g, '-')
|
|
3733
|
+
.replace(/[^-a-zA-Z0-9]+/g, '')
|
|
3734
|
+
.replace(/^-+|-+$/g, '')
|
|
3732
3735
|
}
|
|
3733
3736
|
function getPkgNameFromPurlObj(purlObj) {
|
|
3734
3737
|
return `${purlObj.namespace ? `${purlObj.namespace}/` : ''}${purlObj.name}`
|
|
@@ -4631,19 +4634,24 @@ async function pnpmFix(
|
|
|
4631
4634
|
if (updateData) {
|
|
4632
4635
|
editablePkgJson.update(updateData)
|
|
4633
4636
|
}
|
|
4634
|
-
shadowNpmInject.updatePackageJsonFromNode(
|
|
4637
|
+
const modded = shadowNpmInject.updatePackageJsonFromNode(
|
|
4635
4638
|
editablePkgJson,
|
|
4636
4639
|
actualTree,
|
|
4637
4640
|
node,
|
|
4638
4641
|
newVersion,
|
|
4639
4642
|
rangeStyle
|
|
4640
4643
|
)
|
|
4644
|
+
debug.debugLog('updatePackageJsonFromNode', modded)
|
|
4645
|
+
debug.debugLog(branch, editablePkgJson.filename)
|
|
4641
4646
|
let error
|
|
4642
4647
|
let errored = false
|
|
4643
4648
|
let installed = false
|
|
4644
4649
|
|
|
4645
4650
|
// eslint-disable-next-line no-await-in-loop
|
|
4646
4651
|
if (!(await editablePkgJson.save())) {
|
|
4652
|
+
debug.debugLog(
|
|
4653
|
+
`Skipping nothing changed in ${editablePkgJson.filename}`
|
|
4654
|
+
)
|
|
4647
4655
|
continue
|
|
4648
4656
|
}
|
|
4649
4657
|
if (!installedSpecs.has(newSpecKey)) {
|
|
@@ -4676,6 +4684,7 @@ async function pnpmFix(
|
|
|
4676
4684
|
error = e
|
|
4677
4685
|
errored = true
|
|
4678
4686
|
}
|
|
4687
|
+
debug.debugLog('check "shouldOpenPr":', shouldOpenPr)
|
|
4679
4688
|
debug.debugLog('check "errored":', errored)
|
|
4680
4689
|
if (!errored && shouldOpenPr) {
|
|
4681
4690
|
debug.debugLog('1: gitCreateAndPushBranchIfNeeded')
|
|
@@ -12303,7 +12312,7 @@ void (async () => {
|
|
|
12303
12312
|
await vendor.updater({
|
|
12304
12313
|
name: SOCKET_CLI_BIN_NAME,
|
|
12305
12314
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12306
|
-
version: '0.14.
|
|
12315
|
+
version: '0.14.111',
|
|
12307
12316
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12308
12317
|
})
|
|
12309
12318
|
try {
|
|
@@ -12371,5 +12380,5 @@ void (async () => {
|
|
|
12371
12380
|
await shadowNpmInject.captureException(e)
|
|
12372
12381
|
}
|
|
12373
12382
|
})()
|
|
12374
|
-
//# debugId=
|
|
12383
|
+
//# debugId=43329688-2753-4a28-b484-2b4f53cd77d6
|
|
12375
12384
|
//# sourceMappingURL=cli.js.map
|