socket 0.14.40-alpha.4 → 0.14.40-alpha.6
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
CHANGED
|
@@ -230,9 +230,9 @@ const fix = {
|
|
|
230
230
|
const wrapperPath = path.join(rootBinPath$1, 'npm-cli.js');
|
|
231
231
|
const spinner$1 = new spinner.Spinner().start();
|
|
232
232
|
try {
|
|
233
|
-
await spawn(execPath$1, [wrapperPath, 'install'
|
|
233
|
+
await spawn(execPath$1, [wrapperPath, 'install'], {
|
|
234
234
|
signal: abortSignal$3,
|
|
235
|
-
stdio: '
|
|
235
|
+
stdio: 'inherit',
|
|
236
236
|
env: {
|
|
237
237
|
...process.env,
|
|
238
238
|
[SOCKET_CLI_FIX_PACKAGE_LOCK_FILE]: '1'
|
|
@@ -1724,17 +1724,17 @@ const optimize = {
|
|
|
1724
1724
|
const wrapperPath = path.join(rootBinPath, 'npm-cli.js');
|
|
1725
1725
|
const npmSpawnOptions = {
|
|
1726
1726
|
signal: abortSignal$2,
|
|
1727
|
-
stdio: '
|
|
1727
|
+
stdio: 'inherit',
|
|
1728
1728
|
env: {
|
|
1729
1729
|
...process.env,
|
|
1730
1730
|
[SOCKET_CLI_UPDATE_OVERRIDES_IN_PACKAGE_LOCK_FILE]: '1'
|
|
1731
1731
|
}
|
|
1732
1732
|
};
|
|
1733
|
-
await spawn(execPath, [wrapperPath, 'install'
|
|
1733
|
+
await spawn(execPath, [wrapperPath, 'install'], npmSpawnOptions);
|
|
1734
1734
|
// TODO: This is a temporary workaround for a `npm ci` bug where it
|
|
1735
1735
|
// will error out after Socket Optimize generates a lock file. More
|
|
1736
1736
|
// investigation is needed.
|
|
1737
|
-
await spawn(execPath, [wrapperPath, 'install', '--
|
|
1737
|
+
await spawn(execPath, [wrapperPath, 'install', '--ignore-scripts', '--package-lock-only'], npmSpawnOptions);
|
|
1738
1738
|
} else {
|
|
1739
1739
|
// All package managers support the "install" command.
|
|
1740
1740
|
await spawn(agentExecPath, ['install'], {
|
|
@@ -1241,7 +1241,12 @@ class SafeArborist extends Arborist {
|
|
|
1241
1241
|
options.dryRun = old.dryRun;
|
|
1242
1242
|
options['save'] = old.save;
|
|
1243
1243
|
options['saveBundle'] = old.saveBundle;
|
|
1244
|
-
const
|
|
1244
|
+
const {
|
|
1245
|
+
diff
|
|
1246
|
+
} = this;
|
|
1247
|
+
// `diff` is `null` when `options.packageLockOnly`, --package-lock-only,
|
|
1248
|
+
// is `true`.
|
|
1249
|
+
const needInfoOn = diff ? walk(diff) : [];
|
|
1245
1250
|
if (needInfoOn.findIndex(c => c.repository_url === NPM_REGISTRY_URL) === -1) {
|
|
1246
1251
|
// Nothing to check, hmmm already installed or all private?
|
|
1247
1252
|
return await this[kRiskyReify](...args);
|
package/dist/require/cli.js
CHANGED
|
@@ -226,9 +226,9 @@ const fix = {
|
|
|
226
226
|
const wrapperPath = path.join(rootBinPath$1, 'npm-cli.js');
|
|
227
227
|
const spinner$1 = new spinner.Spinner().start();
|
|
228
228
|
try {
|
|
229
|
-
await spawn(execPath$1, [wrapperPath, 'install'
|
|
229
|
+
await spawn(execPath$1, [wrapperPath, 'install'], {
|
|
230
230
|
signal: abortSignal$3,
|
|
231
|
-
stdio: '
|
|
231
|
+
stdio: 'inherit',
|
|
232
232
|
env: {
|
|
233
233
|
...process.env,
|
|
234
234
|
[SOCKET_CLI_FIX_PACKAGE_LOCK_FILE]: '1'
|
|
@@ -1720,17 +1720,17 @@ const optimize = {
|
|
|
1720
1720
|
const wrapperPath = path.join(rootBinPath, 'npm-cli.js');
|
|
1721
1721
|
const npmSpawnOptions = {
|
|
1722
1722
|
signal: abortSignal$2,
|
|
1723
|
-
stdio: '
|
|
1723
|
+
stdio: 'inherit',
|
|
1724
1724
|
env: {
|
|
1725
1725
|
...process.env,
|
|
1726
1726
|
[SOCKET_CLI_UPDATE_OVERRIDES_IN_PACKAGE_LOCK_FILE]: '1'
|
|
1727
1727
|
}
|
|
1728
1728
|
};
|
|
1729
|
-
await spawn(execPath, [wrapperPath, 'install'
|
|
1729
|
+
await spawn(execPath, [wrapperPath, 'install'], npmSpawnOptions);
|
|
1730
1730
|
// TODO: This is a temporary workaround for a `npm ci` bug where it
|
|
1731
1731
|
// will error out after Socket Optimize generates a lock file. More
|
|
1732
1732
|
// investigation is needed.
|
|
1733
|
-
await spawn(execPath, [wrapperPath, 'install', '--
|
|
1733
|
+
await spawn(execPath, [wrapperPath, 'install', '--ignore-scripts', '--package-lock-only'], npmSpawnOptions);
|
|
1734
1734
|
} else {
|
|
1735
1735
|
// All package managers support the "install" command.
|
|
1736
1736
|
await spawn(agentExecPath, ['install'], {
|
|
@@ -1241,7 +1241,12 @@ class SafeArborist extends Arborist {
|
|
|
1241
1241
|
options.dryRun = old.dryRun;
|
|
1242
1242
|
options['save'] = old.save;
|
|
1243
1243
|
options['saveBundle'] = old.saveBundle;
|
|
1244
|
-
const
|
|
1244
|
+
const {
|
|
1245
|
+
diff
|
|
1246
|
+
} = this;
|
|
1247
|
+
// `diff` is `null` when `options.packageLockOnly`, --package-lock-only,
|
|
1248
|
+
// is `true`.
|
|
1249
|
+
const needInfoOn = diff ? walk(diff) : [];
|
|
1245
1250
|
if (needInfoOn.findIndex(c => c.repository_url === NPM_REGISTRY_URL) === -1) {
|
|
1246
1251
|
// Nothing to check, hmmm already installed or all private?
|
|
1247
1252
|
return await this[kRiskyReify](...args);
|