socket 1.0.66 → 1.0.68
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/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +17 -13
- package/dist/constants.js.map +1 -1
- package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/constants.d.mts +1 -0
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/utils.js +11 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4139,7 +4139,8 @@ async function install$1(pkgEnvDetails, options) {
|
|
|
4139
4139
|
__proto__: null,
|
|
4140
4140
|
...options
|
|
4141
4141
|
};
|
|
4142
|
-
const
|
|
4142
|
+
const useDebug = debug.isDebug('stdio');
|
|
4143
|
+
const args = ['--ignore-scripts', '--no-audit', '--no-fund', '--no-progress', ...(useDebug ? [] : ['--silent']), ...(extraArgs ?? [])];
|
|
4143
4144
|
const quotedCmd = `\`${pkgEnvDetails.agent} install ${args.join(' ')}\``;
|
|
4144
4145
|
debug.debugFn('stdio', `spawn: ${quotedCmd}`);
|
|
4145
4146
|
const isSpinning = spinner?.isSpinning;
|
|
@@ -4149,7 +4150,7 @@ async function install$1(pkgEnvDetails, options) {
|
|
|
4149
4150
|
await utils.runAgentInstall(pkgEnvDetails, {
|
|
4150
4151
|
args,
|
|
4151
4152
|
spinner,
|
|
4152
|
-
stdio:
|
|
4153
|
+
stdio: useDebug ? 'inherit' : 'ignore'
|
|
4153
4154
|
});
|
|
4154
4155
|
} catch (e) {
|
|
4155
4156
|
debug.debugFn('error', `caught: ${quotedCmd} failed`);
|
|
@@ -4746,8 +4747,7 @@ async function run$H(argv, importMeta, {
|
|
|
4746
4747
|
const orgSlugCResult = await utils.getDefaultOrgSlug();
|
|
4747
4748
|
if (!orgSlugCResult.ok) {
|
|
4748
4749
|
process.exitCode = orgSlugCResult.code ?? 1;
|
|
4749
|
-
|
|
4750
|
-
// logger.log(serializeResultJson(orgSlugCResult))
|
|
4750
|
+
logger.logger.fail('Unable to resolve a Socket account organization.\nEnsure a Socket API token is specified for the organization using the SOCKET_CLI_API_TOKEN environment variable.');
|
|
4751
4751
|
return;
|
|
4752
4752
|
}
|
|
4753
4753
|
const orgSlug = orgSlugCResult.data;
|
|
@@ -14522,5 +14522,5 @@ void (async () => {
|
|
|
14522
14522
|
await utils.captureException(e);
|
|
14523
14523
|
}
|
|
14524
14524
|
})();
|
|
14525
|
-
//# debugId=
|
|
14525
|
+
//# debugId=7d509d3a-cd9a-4499-b6b6-88b32a2ff18
|
|
14526
14526
|
//# sourceMappingURL=cli.js.map
|