@socketsecurity/cli-with-sentry 1.0.7 → 1.0.9

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 (171) hide show
  1. package/dist/cli.js +135 -109
  2. package/dist/cli.js.map +1 -1
  3. package/dist/constants.js +8 -3
  4. package/dist/constants.js.map +1 -1
  5. package/dist/shadow-npm-bin.js +5 -5
  6. package/dist/shadow-npm-bin.js.map +1 -1
  7. package/dist/socket-completion.bash +23 -7
  8. package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
  9. package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
  10. package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
  11. package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
  12. package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -1
  13. package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
  14. package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
  15. package/dist/types/commands/fix/agent-fix.d.mts +4 -4
  16. package/dist/types/commands/fix/agent-fix.d.mts.map +1 -1
  17. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  18. package/dist/types/commands/fix/handle-fix.d.mts +4 -3
  19. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  20. package/dist/types/commands/fix/npm-fix.d.mts +2 -2
  21. package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
  22. package/dist/types/commands/fix/pnpm-fix.d.mts +2 -2
  23. package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
  24. package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -1
  25. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -1
  26. package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
  27. package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
  28. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +1 -1
  29. package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -1
  30. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +1 -1
  31. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +1 -1
  32. package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +1 -1
  33. package/dist/types/commands/package/cmd-package-score.d.mts.map +1 -1
  34. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +1 -1
  35. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +1 -1
  36. package/dist/types/commands/repository/cmd-repository-create.d.mts.map +1 -1
  37. package/dist/types/commands/repository/cmd-repository-list.d.mts.map +1 -1
  38. package/dist/types/commands/repository/cmd-repository-update.d.mts.map +1 -1
  39. package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
  40. package/dist/types/commands/scan/cmd-scan-del.d.mts.map +1 -1
  41. package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -1
  42. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
  43. package/dist/types/commands/scan/handle-scan-reach.d.mts +8 -0
  44. package/dist/types/commands/scan/handle-scan-reach.d.mts.map +1 -0
  45. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +1 -1
  46. package/dist/types/constants.d.mts.map +1 -1
  47. package/dist/types/utils/alerts-map.d.mts.map +1 -1
  48. package/dist/types/utils/api.d.mts.map +1 -1
  49. package/dist/types/utils/meow-with-subcommands.d.mts +1 -3
  50. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  51. package/dist/utils.js +33 -45
  52. package/dist/utils.js.map +1 -1
  53. package/dist/vendor.js +3008 -583
  54. package/external/@coana-tech/cli/cli.mjs +1 -1
  55. package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +2 -40
  56. package/external/@socketsecurity/registry/lib/npm.js +102 -71
  57. package/external/@socketsecurity/registry/lib/spinner.js +6 -0
  58. package/external/blessed-contrib/lib/widget/charts/bar.js +4 -3
  59. package/external/blessed-contrib/lib/widget/charts/line.js +4 -3
  60. package/external/blessed-contrib/lib/widget/table.js +3 -3
  61. package/package.json +17 -16
  62. package/dist/types/commands/scan/handle-reach-scan.d.mts +0 -3
  63. package/dist/types/commands/scan/handle-reach-scan.d.mts.map +0 -1
  64. package/external/node-gyp/.release-please-manifest.json +0 -3
  65. package/external/node-gyp/CHANGELOG.md +0 -1053
  66. package/external/node-gyp/CODE_OF_CONDUCT.md +0 -4
  67. package/external/node-gyp/CONTRIBUTING.md +0 -34
  68. package/external/node-gyp/LICENSE +0 -24
  69. package/external/node-gyp/README.md +0 -273
  70. package/external/node-gyp/SECURITY.md +0 -2
  71. package/external/node-gyp/addon.gypi +0 -204
  72. package/external/node-gyp/bin/node-gyp.js +0 -137
  73. package/external/node-gyp/eslint.config.js +0 -3
  74. package/external/node-gyp/gyp/.release-please-manifest.json +0 -3
  75. package/external/node-gyp/gyp/LICENSE +0 -28
  76. package/external/node-gyp/gyp/data/ninja/build.ninja +0 -4
  77. package/external/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  78. package/external/node-gyp/gyp/docs/GypVsCMake.md +0 -116
  79. package/external/node-gyp/gyp/docs/Hacking.md +0 -46
  80. package/external/node-gyp/gyp/docs/InputFormatReference.md +0 -1083
  81. package/external/node-gyp/gyp/docs/LanguageSpecification.md +0 -430
  82. package/external/node-gyp/gyp/docs/README.md +0 -27
  83. package/external/node-gyp/gyp/docs/Testing.md +0 -450
  84. package/external/node-gyp/gyp/docs/UserDocumentation.md +0 -965
  85. package/external/node-gyp/gyp/gyp +0 -8
  86. package/external/node-gyp/gyp/gyp.bat +0 -5
  87. package/external/node-gyp/gyp/gyp_main.py +0 -45
  88. package/external/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  89. package/external/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  90. package/external/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  91. package/external/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  92. package/external/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  93. package/external/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  94. package/external/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  95. package/external/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  96. package/external/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  97. package/external/node-gyp/gyp/pylib/gyp/common.py +0 -709
  98. package/external/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  99. package/external/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  100. package/external/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  101. package/external/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  102. package/external/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  103. package/external/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  104. package/external/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  105. package/external/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  106. package/external/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  107. package/external/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  108. package/external/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  109. package/external/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  110. package/external/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  111. package/external/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  112. package/external/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  113. package/external/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  114. package/external/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  115. package/external/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  116. package/external/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  117. package/external/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  118. package/external/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  119. package/external/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  120. package/external/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  121. package/external/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  122. package/external/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  123. package/external/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  124. package/external/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  125. package/external/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  126. package/external/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  127. package/external/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  128. package/external/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  129. package/external/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  130. package/external/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  131. package/external/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  132. package/external/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  133. package/external/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  134. package/external/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  135. package/external/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  136. package/external/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  137. package/external/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  138. package/external/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  139. package/external/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  140. package/external/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  141. package/external/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  142. package/external/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  143. package/external/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  144. package/external/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  145. package/external/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  146. package/external/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  147. package/external/node-gyp/gyp/pylib/packaging/version.py +0 -563
  148. package/external/node-gyp/gyp/pyproject.toml +0 -115
  149. package/external/node-gyp/gyp/release-please-config.json +0 -11
  150. package/external/node-gyp/gyp/test_gyp.py +0 -261
  151. package/external/node-gyp/lib/Find-VisualStudio.cs +0 -250
  152. package/external/node-gyp/lib/build.js +0 -230
  153. package/external/node-gyp/lib/clean.js +0 -15
  154. package/external/node-gyp/lib/configure.js +0 -328
  155. package/external/node-gyp/lib/create-config-gypi.js +0 -153
  156. package/external/node-gyp/lib/download.js +0 -41
  157. package/external/node-gyp/lib/find-node-directory.js +0 -63
  158. package/external/node-gyp/lib/find-python.js +0 -310
  159. package/external/node-gyp/lib/find-visualstudio.js +0 -600
  160. package/external/node-gyp/lib/install.js +0 -415
  161. package/external/node-gyp/lib/list.js +0 -26
  162. package/external/node-gyp/lib/log.js +0 -168
  163. package/external/node-gyp/lib/node-gyp.js +0 -188
  164. package/external/node-gyp/lib/process-release.js +0 -148
  165. package/external/node-gyp/lib/rebuild.js +0 -12
  166. package/external/node-gyp/lib/remove.js +0 -43
  167. package/external/node-gyp/lib/util.js +0 -81
  168. package/external/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  169. package/external/node-gyp/package.json +0 -52
  170. package/external/node-gyp/release-please-config.json +0 -40
  171. package/external/node-gyp/src/win_delay_load_hook.cc +0 -41
@@ -1,89 +0,0 @@
1
- # Copyright (c) 2011 Google Inc. All rights reserved.
2
- # Use of this source code is governed by a BSD-style license that can be
3
- # found in the LICENSE file.
4
-
5
- """gypd output module
6
-
7
- This module produces gyp input as its output. Output files are given the
8
- .gypd extension to avoid overwriting the .gyp files that they are generated
9
- from. Internal references to .gyp files (such as those found in
10
- "dependencies" sections) are not adjusted to point to .gypd files instead;
11
- unlike other paths, which are relative to the .gyp or .gypd file, such paths
12
- are relative to the directory from which gyp was run to create the .gypd file.
13
-
14
- This generator module is intended to be a sample and a debugging aid, hence
15
- the "d" for "debug" in .gypd. It is useful to inspect the results of the
16
- various merges, expansions, and conditional evaluations performed by gyp
17
- and to see a representation of what would be fed to a generator module.
18
-
19
- It's not advisable to rename .gypd files produced by this module to .gyp,
20
- because they will have all merges, expansions, and evaluations already
21
- performed and the relevant constructs not present in the output; paths to
22
- dependencies may be wrong; and various sections that do not belong in .gyp
23
- files such as such as "included_files" and "*_excluded" will be present.
24
- Output will also be stripped of comments. This is not intended to be a
25
- general-purpose gyp pretty-printer; for that, you probably just want to
26
- run "pprint.pprint(eval(open('source.gyp').read()))", which will still strip
27
- comments but won't do all of the other things done to this module's output.
28
-
29
- The specific formatting of the output generated by this module is subject
30
- to change.
31
- """
32
-
33
-
34
- import pprint
35
-
36
- import gyp.common
37
-
38
- # These variables should just be spit back out as variable references.
39
- _generator_identity_variables = [
40
- "CONFIGURATION_NAME",
41
- "EXECUTABLE_PREFIX",
42
- "EXECUTABLE_SUFFIX",
43
- "INTERMEDIATE_DIR",
44
- "LIB_DIR",
45
- "PRODUCT_DIR",
46
- "RULE_INPUT_ROOT",
47
- "RULE_INPUT_DIRNAME",
48
- "RULE_INPUT_EXT",
49
- "RULE_INPUT_NAME",
50
- "RULE_INPUT_PATH",
51
- "SHARED_INTERMEDIATE_DIR",
52
- "SHARED_LIB_DIR",
53
- "SHARED_LIB_PREFIX",
54
- "SHARED_LIB_SUFFIX",
55
- "STATIC_LIB_PREFIX",
56
- "STATIC_LIB_SUFFIX",
57
- ]
58
-
59
- # gypd doesn't define a default value for OS like many other generator
60
- # modules. Specify "-D OS=whatever" on the command line to provide a value.
61
- generator_default_variables = {}
62
-
63
- # gypd supports multiple toolsets
64
- generator_supports_multiple_toolsets = True
65
-
66
- # TODO(mark): This always uses <, which isn't right. The input module should
67
- # notify the generator to tell it which phase it is operating in, and this
68
- # module should use < for the early phase and then switch to > for the late
69
- # phase. Bonus points for carrying @ back into the output too.
70
- for v in _generator_identity_variables:
71
- generator_default_variables[v] = "<(%s)" % v
72
-
73
-
74
- def GenerateOutput(target_list, target_dicts, data, params):
75
- output_files = {}
76
- for qualified_target in target_list:
77
- [input_file, target] = gyp.common.ParseQualifiedTarget(qualified_target)[0:2]
78
-
79
- if input_file[-4:] != ".gyp":
80
- continue
81
- input_file_stem = input_file[:-4]
82
- output_file = input_file_stem + params["options"].suffix + ".gypd"
83
-
84
- output_files[output_file] = output_files.get(output_file, input_file)
85
-
86
- for output_file, input_file in output_files.items():
87
- output = open(output_file, "w")
88
- pprint.pprint(data[input_file], output)
89
- output.close()
@@ -1,56 +0,0 @@
1
- # Copyright (c) 2011 Google Inc. All rights reserved.
2
- # Use of this source code is governed by a BSD-style license that can be
3
- # found in the LICENSE file.
4
-
5
- """gypsh output module
6
-
7
- gypsh is a GYP shell. It's not really a generator per se. All it does is
8
- fire up an interactive Python session with a few local variables set to the
9
- variables passed to the generator. Like gypd, it's intended as a debugging
10
- aid, to facilitate the exploration of .gyp structures after being processed
11
- by the input module.
12
-
13
- The expected usage is "gyp -f gypsh -D OS=desired_os".
14
- """
15
-
16
-
17
- import code
18
- import sys
19
-
20
- # All of this stuff about generator variables was lovingly ripped from gypd.py.
21
- # That module has a much better description of what's going on and why.
22
- _generator_identity_variables = [
23
- "EXECUTABLE_PREFIX",
24
- "EXECUTABLE_SUFFIX",
25
- "INTERMEDIATE_DIR",
26
- "PRODUCT_DIR",
27
- "RULE_INPUT_ROOT",
28
- "RULE_INPUT_DIRNAME",
29
- "RULE_INPUT_EXT",
30
- "RULE_INPUT_NAME",
31
- "RULE_INPUT_PATH",
32
- "SHARED_INTERMEDIATE_DIR",
33
- ]
34
-
35
- generator_default_variables = {}
36
-
37
- for v in _generator_identity_variables:
38
- generator_default_variables[v] = "<(%s)" % v
39
-
40
-
41
- def GenerateOutput(target_list, target_dicts, data, params):
42
- locals = {
43
- "target_list": target_list,
44
- "target_dicts": target_dicts,
45
- "data": data,
46
- }
47
-
48
- # Use a banner that looks like the stock Python one and like what
49
- # code.interact uses by default, but tack on something to indicate what
50
- # locals are available, and identify gypsh.
51
- banner = (
52
- f"Python {sys.version} on {sys.platform}\nlocals.keys() = "
53
- f"{sorted(locals.keys())!r}\ngypsh"
54
- )
55
-
56
- code.interact(banner, local=locals)