@socketsecurity/cli 0.14.27 → 0.14.29

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.
Files changed (52) hide show
  1. package/bin/cli.js +9 -0
  2. package/bin/npm-cli.js +9 -0
  3. package/bin/npx-cli.js +9 -0
  4. package/bin/shadow/module-sync/npm +3 -0
  5. package/bin/shadow/module-sync/npx +3 -0
  6. package/bin/shadow/require/npm +3 -0
  7. package/bin/shadow/require/npx +3 -0
  8. package/dist/module-sync/cli.d.ts.map +1 -0
  9. package/dist/module-sync/cli.js +5256 -0
  10. package/dist/module-sync/constants.d.ts +15 -0
  11. package/dist/module-sync/constants.js +62 -0
  12. package/dist/module-sync/npm-cli.js +85 -0
  13. package/dist/{npm-injection.js → module-sync/npm-injection.js} +78 -92
  14. package/dist/module-sync/npx-cli.js +61 -0
  15. package/dist/{sdk.d.ts → module-sync/sdk.d.ts} +1 -5
  16. package/dist/module-sync/sdk.js +253 -0
  17. package/dist/require/cli.d.ts +3 -0
  18. package/dist/require/cli.d.ts.map +1 -0
  19. package/dist/{cli.js → require/cli.js} +72 -76
  20. package/dist/require/color-or-markdown.d.ts +23 -0
  21. package/dist/require/constants.d.ts +15 -0
  22. package/dist/require/constants.js +57 -0
  23. package/dist/require/errors.d.ts +7 -0
  24. package/dist/require/link.d.ts +2 -0
  25. package/dist/require/link.js +45 -0
  26. package/dist/require/npm-cli.d.ts +2 -0
  27. package/dist/{npm-cli.js → require/npm-cli.js} +12 -10
  28. package/dist/require/npm-injection.d.ts +1 -0
  29. package/dist/require/npm-injection.js +1830 -0
  30. package/dist/require/npx-cli.d.ts +2 -0
  31. package/dist/{npx-cli.js → require/npx-cli.js} +12 -12
  32. package/dist/require/path-resolve.d.ts +8 -0
  33. package/dist/require/path-resolve.js +183 -0
  34. package/dist/require/sdk.d.ts +9 -0
  35. package/dist/{sdk.js → require/sdk.js} +16 -36
  36. package/dist/require/settings.d.ts +9 -0
  37. package/dist/{vendor.js → require/vendor.js} +126 -13
  38. package/package.json +68 -36
  39. package/bin/npm +0 -2
  40. package/bin/npx +0 -2
  41. package/dist/cli.d.ts.map +0 -1
  42. /package/dist/{cli.d.ts → module-sync/cli.d.ts} +0 -0
  43. /package/dist/{color-or-markdown.d.ts → module-sync/color-or-markdown.d.ts} +0 -0
  44. /package/dist/{errors.d.ts → module-sync/errors.d.ts} +0 -0
  45. /package/dist/{link.d.ts → module-sync/link.d.ts} +0 -0
  46. /package/dist/{link.js → module-sync/link.js} +0 -0
  47. /package/dist/{npm-cli.d.ts → module-sync/npm-cli.d.ts} +0 -0
  48. /package/dist/{npm-injection.d.ts → module-sync/npm-injection.d.ts} +0 -0
  49. /package/dist/{npx-cli.d.ts → module-sync/npx-cli.d.ts} +0 -0
  50. /package/dist/{path-resolve.d.ts → module-sync/path-resolve.d.ts} +0 -0
  51. /package/dist/{path-resolve.js → module-sync/path-resolve.js} +0 -0
  52. /package/dist/{settings.d.ts → module-sync/settings.d.ts} +0 -0
@@ -5,22 +5,22 @@ var vendor = require('./vendor.js');
5
5
  var require$$0 = require('node:fs');
6
6
  var require$$1 = require('node:path');
7
7
  var require$$1$1 = require('@npmcli/promise-spawn');
8
+ var constants = require('./constants.js');
8
9
  var link = require('./link.js');
9
10
  var pathResolve = require('./path-resolve.js');
10
11
 
11
- var npmCli$1 = {};
12
+ var npmCli$2 = {};
12
13
 
13
- var npmCli = {};
14
+ var npmCli$1 = {};
14
15
 
15
16
  var _nodeFs = require$$0;
16
17
  var _nodePath = require$$1;
17
18
  var _promiseSpawn = require$$1$1;
19
+ var _constants = constants.constants;
18
20
  var _link = link.link;
19
21
  var _pathResolve = pathResolve.pathResolve;
20
- const realFilename = (0, _nodeFs.realpathSync)(__filename);
21
- const realDirname = _nodePath.dirname(realFilename);
22
- const npmPath = (0, _link.installLinks)(_nodePath.join(realDirname, 'bin'), 'npm');
23
- const injectionPath = _nodePath.join(realDirname, 'npm-injection.js');
22
+ const npmPath = (0, _link.installLinks)(_constants.shadowBinPath, 'npm');
23
+ const injectionPath = _nodePath.join(_constants.distPath, 'npm-injection.js');
24
24
 
25
25
  // Adding the `--quiet` and `--no-progress` flags when the `proc-log` module
26
26
  // is found to fix a UX issue when running the command with recent versions of
@@ -42,7 +42,7 @@ if (npmArgs.includes('install') && !npmArgs.includes('--no-progress') && !npmArg
42
42
  }
43
43
  }
44
44
  process.exitCode = 1;
45
- const spawnPromise = _promiseSpawn(process.execPath, ['--require', injectionPath, npmPath, ...npmArgs], {
45
+ const spawnPromise = _promiseSpawn(process.execPath, ['--disable-warning', 'ExperimentalWarning', '--require', injectionPath, npmPath, ...npmArgs], {
46
46
  stdio: 'inherit'
47
47
  });
48
48
  spawnPromise.process.on('exit', (code, signal) => {
@@ -66,7 +66,7 @@ spawnPromise.process.on('exit', (code, signal) => {
66
66
  return _npmCli.default;
67
67
  }
68
68
  });
69
- var _npmCli = _interopRequireWildcard(npmCli, true);
69
+ var _npmCli = _interopRequireWildcard(npmCli$1, true);
70
70
  Object.keys(_npmCli).forEach(function (key) {
71
71
  if (key === "default" || key === "__esModule") return;
72
72
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -78,6 +78,8 @@ spawnPromise.process.on('exit', (code, signal) => {
78
78
  }
79
79
  });
80
80
  });
81
- } (npmCli$1));
81
+ } (npmCli$2));
82
+
83
+ var npmCli = /*@__PURE__*/vendor.getDefaultExportFromCjs(npmCli$2);
82
84
 
83
- module.exports = npmCli$1;
85
+ module.exports = npmCli;
@@ -0,0 +1 @@
1
+ export {};