@socketsecurity/cli 0.14.34 → 0.14.36

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 (37) hide show
  1. package/bin/cli.js +37 -1
  2. package/bin/npm-cli.js +2 -1
  3. package/bin/npx-cli.js +2 -1
  4. package/dist/constants.js +69 -38
  5. package/dist/module-sync/cli.js +773 -1555
  6. package/dist/module-sync/constants.d.ts +16 -79
  7. package/dist/module-sync/constants.d.ts.map +1 -0
  8. package/dist/module-sync/npm-injection.js +77 -396
  9. package/dist/module-sync/path-resolve.d.ts +6 -1
  10. package/dist/module-sync/path-resolve.js +47 -38
  11. package/dist/module-sync/sdk.js +60 -110
  12. package/dist/module-sync/shadow-bin.d.ts +2 -0
  13. package/dist/module-sync/shadow-bin.js +103 -0
  14. package/dist/require/cli.js +768 -1549
  15. package/dist/require/constants.d.ts.map +1 -0
  16. package/dist/require/npm-injection.js +76 -394
  17. package/dist/require/path-resolve.js +47 -38
  18. package/dist/require/sdk.js +57 -106
  19. package/dist/require/shadow-bin.js +103 -0
  20. package/dist/require/vendor.js +8295 -8708
  21. package/package.json +30 -31
  22. package/shadow-bin/npm +4 -0
  23. package/shadow-bin/npx +4 -0
  24. package/bin/shadow/module-sync/npm +0 -3
  25. package/bin/shadow/module-sync/npx +0 -3
  26. package/bin/shadow/require/npm +0 -3
  27. package/bin/shadow/require/npx +0 -3
  28. package/dist/module-sync/link.d.ts +0 -2
  29. package/dist/module-sync/link.js +0 -54
  30. package/dist/module-sync/npm-cli.d.ts +0 -2
  31. package/dist/module-sync/npm-cli.js +0 -101
  32. package/dist/module-sync/npx-cli.d.ts +0 -2
  33. package/dist/module-sync/npx-cli.js +0 -77
  34. package/dist/module-sync/vendor.js +0 -70
  35. package/dist/require/link.js +0 -54
  36. package/dist/require/npm-cli.js +0 -101
  37. package/dist/require/npx-cli.js +0 -77
@@ -1,77 +0,0 @@
1
- #!/usr/bin/env node
2
- 'use strict';
3
-
4
- function _socketInterop(e) {
5
- let c = 0
6
- for (const k in e ?? {}) {
7
- c = c === 0 && k === 'default' ? 1 : 0
8
- if (!c) break
9
- }
10
- return c ? e.default : e
11
- }
12
-
13
- var vendor = require('./vendor.js');
14
- var require$$1 = require('node:path');
15
- var require$$1$1 = _socketInterop(require('@npmcli/promise-spawn'));
16
- var constants = require('./constants.js');
17
- var link = require('./link.js');
18
-
19
- var npxCli$2 = {};
20
-
21
- var npxCli$1 = {};
22
-
23
- var _nodePath = require$$1;
24
- var _promiseSpawn = require$$1$1;
25
- var _constants = constants.constants;
26
- var _link = link.link;
27
- const {
28
- distPath,
29
- execPath,
30
- shadowBinPath
31
- } = _constants;
32
- const npxPath = (0, _link.installLinks)(shadowBinPath, 'npx');
33
- const injectionPath = _nodePath.join(distPath, 'npm-injection.js');
34
- process.exitCode = 1;
35
- const spawnPromise = _promiseSpawn(execPath, [
36
- // Lazily access constants.nodeNoWarningsFlags.
37
- ..._constants.nodeNoWarningsFlags, '--require', injectionPath, npxPath, ...process.argv.slice(2)], {
38
- stdio: 'inherit'
39
- });
40
- spawnPromise.process.on('exit', (code, signal) => {
41
- if (signal) {
42
- process.kill(process.pid, signal);
43
- } else if (code !== null) {
44
- process.exit(code);
45
- }
46
- });
47
-
48
- (function (exports) {
49
-
50
- var _interopRequireWildcard = vendor.interopRequireWildcard.default;
51
- Object.defineProperty(exports, "__esModule", {
52
- value: true
53
- });
54
- var _exportNames = {};
55
- Object.defineProperty(exports, "default", {
56
- enumerable: true,
57
- get: function () {
58
- return _npxCli.default;
59
- }
60
- });
61
- var _npxCli = _interopRequireWildcard(npxCli$1, true);
62
- Object.keys(_npxCli).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
65
- if (key in exports && exports[key] === _npxCli[key]) return;
66
- Object.defineProperty(exports, key, {
67
- enumerable: true,
68
- get: function () {
69
- return _npxCli[key];
70
- }
71
- });
72
- });
73
- } (npxCli$2));
74
-
75
- var npxCli = /*@__PURE__*/vendor.getDefaultExportFromCjs(npxCli$2);
76
-
77
- module.exports = npxCli;