socket 0.14.40-alpha.4 → 0.14.40-alpha.5

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.
@@ -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 needInfoOn = walk(this['diff']);
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);
@@ -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 needInfoOn = walk(this['diff']);
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket",
3
- "version": "0.14.40-alpha.4",
3
+ "version": "0.14.40-alpha.5",
4
4
  "description": "CLI tool for Socket.dev",
5
5
  "homepage": "http://github.com/SocketDev/socket-cli",
6
6
  "license": "MIT",