@socketsecurity/cli-with-sentry 0.14.66 → 0.14.68

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 (97) hide show
  1. package/dist/blessed/lib/alias.js +521 -0
  2. package/dist/blessed/lib/blessed.js +34 -0
  3. package/dist/blessed/lib/colors.js +492 -0
  4. package/dist/blessed/lib/events.js +197 -0
  5. package/dist/blessed/lib/gpmclient.js +247 -0
  6. package/dist/blessed/lib/helpers.js +172 -0
  7. package/dist/blessed/lib/keys.js +514 -0
  8. package/dist/blessed/lib/program.js +4532 -0
  9. package/dist/blessed/lib/tput.js +3113 -0
  10. package/dist/blessed/lib/unicode.js +914 -0
  11. package/dist/blessed/lib/widget.js +62 -0
  12. package/dist/blessed/lib/widgets/ansiimage.js +175 -0
  13. package/dist/blessed/lib/widgets/bigtext.js +172 -0
  14. package/dist/blessed/lib/widgets/box.js +36 -0
  15. package/dist/blessed/lib/widgets/button.js +64 -0
  16. package/dist/blessed/lib/widgets/checkbox.js +97 -0
  17. package/dist/blessed/lib/widgets/element.js +2873 -0
  18. package/dist/blessed/lib/widgets/filemanager.js +225 -0
  19. package/dist/blessed/lib/widgets/form.js +303 -0
  20. package/dist/blessed/lib/widgets/image.js +73 -0
  21. package/dist/blessed/lib/widgets/input.js +36 -0
  22. package/dist/blessed/lib/widgets/layout.js +251 -0
  23. package/dist/blessed/lib/widgets/line.js +61 -0
  24. package/dist/blessed/lib/widgets/list.js +654 -0
  25. package/dist/blessed/lib/widgets/listbar.js +454 -0
  26. package/dist/blessed/lib/widgets/listtable.js +267 -0
  27. package/dist/blessed/lib/widgets/loading.js +90 -0
  28. package/dist/blessed/lib/widgets/log.js +84 -0
  29. package/dist/blessed/lib/widgets/message.js +147 -0
  30. package/dist/blessed/lib/widgets/node.js +316 -0
  31. package/dist/blessed/lib/widgets/overlayimage.js +796 -0
  32. package/dist/blessed/lib/widgets/progressbar.js +168 -0
  33. package/dist/blessed/lib/widgets/prompt.js +129 -0
  34. package/dist/blessed/lib/widgets/question.js +131 -0
  35. package/dist/blessed/lib/widgets/radiobutton.js +64 -0
  36. package/dist/blessed/lib/widgets/radioset.js +38 -0
  37. package/dist/blessed/lib/widgets/screen.js +2489 -0
  38. package/dist/blessed/lib/widgets/scrollablebox.js +417 -0
  39. package/dist/blessed/lib/widgets/scrollabletext.js +37 -0
  40. package/dist/blessed/lib/widgets/table.js +385 -0
  41. package/dist/blessed/lib/widgets/terminal.js +454 -0
  42. package/dist/blessed/lib/widgets/text.js +37 -0
  43. package/dist/blessed/lib/widgets/textarea.js +378 -0
  44. package/dist/blessed/lib/widgets/textbox.js +81 -0
  45. package/dist/blessed/lib/widgets/video.js +132 -0
  46. package/dist/blessed/usr/fonts/AUTHORS +1 -0
  47. package/dist/blessed/usr/fonts/LICENSE +94 -0
  48. package/dist/blessed/usr/fonts/README +340 -0
  49. package/dist/blessed/usr/fonts/ter-u14b.json +17826 -0
  50. package/dist/blessed/usr/fonts/ter-u14n.json +17826 -0
  51. package/dist/blessed/usr/linux +0 -0
  52. package/dist/blessed/usr/windows-ansi +0 -0
  53. package/dist/blessed/usr/xterm +0 -0
  54. package/dist/blessed/usr/xterm-256color +0 -0
  55. package/dist/blessed/usr/xterm.termcap +243 -0
  56. package/dist/blessed/usr/xterm.terminfo +1977 -0
  57. package/dist/blessed/vendor/tng.js +1878 -0
  58. package/dist/constants.d.ts +271 -205
  59. package/dist/constants.js +273 -221
  60. package/dist/constants.js.map +1 -1
  61. package/dist/instrument-with-sentry.d.ts +1 -1
  62. package/dist/instrument-with-sentry.js +27 -24
  63. package/dist/instrument-with-sentry.js.map +1 -1
  64. package/dist/module-sync/artifact.d.ts +60 -26
  65. package/dist/module-sync/cli.d.ts +1 -1
  66. package/dist/module-sync/cli.js +6991 -4413
  67. package/dist/module-sync/cli.js.map +1 -1
  68. package/dist/module-sync/cmd.d.ts +4 -4
  69. package/dist/module-sync/config.d.ts +32 -0
  70. package/dist/module-sync/edge.d.ts +73 -60
  71. package/dist/module-sync/errors.d.ts +26 -11
  72. package/dist/module-sync/fs.d.ts +61 -0
  73. package/dist/module-sync/index.d.ts +31 -20
  74. package/dist/module-sync/node.d.ts +118 -83
  75. package/dist/module-sync/override-set.d.ts +39 -33
  76. package/dist/module-sync/package-environment.d.ts +83 -52
  77. package/dist/module-sync/path-resolve.d.ts +14 -9
  78. package/dist/module-sync/sdk.d.ts +9 -5
  79. package/dist/module-sync/shadow-bin.d.ts +5 -2
  80. package/dist/module-sync/shadow-bin.js +82 -66
  81. package/dist/module-sync/shadow-bin.js.map +1 -1
  82. package/dist/module-sync/shadow-npm-inject.d.ts +1 -1
  83. package/dist/module-sync/shadow-npm-inject.js +1209 -1006
  84. package/dist/module-sync/shadow-npm-inject.js.map +1 -1
  85. package/dist/module-sync/shadow-npm-paths.d.ts +28 -14
  86. package/dist/module-sync/shadow-npm-paths.js +286 -209
  87. package/dist/module-sync/shadow-npm-paths.js.map +1 -1
  88. package/dist/module-sync/socket-package-alert.d.ts +95 -39
  89. package/dist/module-sync/types.d.ts +75 -47
  90. package/dist/module-sync/vendor.js +11181 -0
  91. package/dist/{require → module-sync}/vendor.js.map +1 -1
  92. package/dist/require/cli.d.ts +1 -1
  93. package/dist/require/cli.js +6991 -4411
  94. package/dist/require/cli.js.map +1 -1
  95. package/dist/require/vendor.js +2 -9145
  96. package/package.json +49 -41
  97. package/dist/module-sync/settings.d.ts +0 -15
@@ -1 +1 @@
1
- export {};
1
+ export {}
@@ -1,57 +1,60 @@
1
- 'use strict';
1
+ 'use strict'
2
2
 
3
3
  function _socketInterop(e) {
4
4
  let c = 0
5
5
  for (const k in e ?? {}) {
6
6
  c = c === 0 && k === 'default' ? 1 : 0
7
- if (!c && k !== '__esModule') break
7
+ if (!c && k !== '__esModule') {
8
+ break
9
+ }
8
10
  }
9
11
  return c ? e.default : e
10
12
  }
11
13
 
12
- var logger = require('@socketsecurity/registry/lib/logger');
14
+ const logger = require('@socketsecurity/registry/lib/logger')
13
15
 
14
16
  // This should ONLY be included in the special Sentry build!
15
17
  // Otherwise the Sentry dependency won't even be present in the manifest.
16
18
 
17
-
18
19
  // Require constants with require(relConstantsPath) instead of require('./constants')
19
20
  // so Rollup doesn't generate a constants2.js chunk.
20
- const relConstantsPath = './constants';
21
+ const relConstantsPath = './constants'
21
22
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']".
22
23
  {
23
- const Sentry = _socketInterop(require('@sentry/node'));
24
+ const Sentry = _socketInterop(require('@sentry/node'))
24
25
  Sentry.init({
25
26
  onFatalError(error) {
26
27
  // Defer module loads until after Sentry.init is called.
27
28
  if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {
28
- logger.logger.fail('[DEBUG] [Sentry onFatalError]:', error);
29
+ logger.logger.fail('[DEBUG] [Sentry onFatalError]:', error)
29
30
  }
30
31
  },
31
32
  dsn: 'https://66736701db8e4ffac046bd09fa6aaced@o555220.ingest.us.sentry.io/4508846967619585',
32
33
  enabled: true,
33
34
  integrations: []
34
- });
35
- Sentry.setTag('environment',
36
- // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']".
37
- 'pub' );
38
- Sentry.setTag('version',
39
- // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
40
- "0.14.66:3dec148:3a36e9f3:pub");
41
- const constants = require(relConstantsPath);
35
+ })
36
+ Sentry.setTag(
37
+ 'environment',
38
+ // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']".
39
+ 'pub'
40
+ )
41
+ Sentry.setTag(
42
+ 'version',
43
+ // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
44
+ '0.14.68:23c5456:b5e74c63:pub'
45
+ )
46
+ const constants = require(relConstantsPath)
42
47
  if (constants.ENV.SOCKET_CLI_DEBUG) {
43
- Sentry.setTag('debugging', true);
44
- logger.logger.log('[DEBUG] Set up Sentry.');
48
+ Sentry.setTag('debugging', true)
49
+ logger.logger.log('[DEBUG] Set up Sentry.')
45
50
  } else {
46
- Sentry.setTag('debugging', false);
51
+ Sentry.setTag('debugging', false)
47
52
  }
48
53
  const {
49
54
  kInternalsSymbol,
50
- [kInternalsSymbol]: {
51
- setSentry
52
- }
53
- } = constants;
54
- setSentry(Sentry);
55
+ [kInternalsSymbol]: { setSentry }
56
+ } = constants
57
+ setSentry(Sentry)
55
58
  }
56
- //# debugId=4c7fa64b-7efc-4697-9c60-cd8e3691ed37
59
+ //# debugId=e8b55e94-3ad1-4d93-be06-b8ed34997bb0
57
60
  //# sourceMappingURL=instrument-with-sentry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"instrument-with-sentry.js","sources":["../../src/instrument-with-sentry.ts"],"sourcesContent":["// This should ONLY be included in the special Sentry build!\n// Otherwise the Sentry dependency won't even be present in the manifest.\n\nimport { logger } from '@socketsecurity/registry/lib/logger'\n\n// Require constants with require(relConstantsPath) instead of require('./constants')\n// so Rollup doesn't generate a constants2.js chunk.\nconst relConstantsPath = './constants'\n// The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']\".\nif (process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']) {\n const Sentry = require('@sentry/node')\n Sentry.init({\n onFatalError(error: Error) {\n // Defer module loads until after Sentry.init is called.\n if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.fail('[DEBUG] [Sentry onFatalError]:', error)\n }\n },\n dsn: 'https://66736701db8e4ffac046bd09fa6aaced@o555220.ingest.us.sentry.io/4508846967619585',\n enabled: true,\n integrations: []\n })\n Sentry.setTag(\n 'environment',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\".\n process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\n ? 'pub'\n : process.env['NODE_ENV']\n )\n Sentry.setTag(\n 'version',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION_HASH']\".\n process.env['INLINED_SOCKET_CLI_VERSION_HASH']\n )\n const constants = require(relConstantsPath)\n if (constants.ENV.SOCKET_CLI_DEBUG) {\n Sentry.setTag('debugging', true)\n logger.log('[DEBUG] Set up Sentry.')\n } else {\n Sentry.setTag('debugging', false)\n }\n const {\n kInternalsSymbol,\n [kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: { setSentry }\n } = constants\n setSentry(Sentry)\n} else if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.log('[DEBUG] Sentry disabled explicitly.')\n}\n"],"names":["logger","dsn","enabled","integrations","process","Sentry","setSentry"],"mappings":";;;;;;;;;;;;;AAAA;AACA;;;AAIA;AACA;AACA;AACA;AACoD;AAClD;;;AAGI;;AAEEA;AACF;;AAEFC;AACAC;AACAC;AACF;;AAGE;AACAC;;AAMA;AACAA;AAEF;AACA;AACEC;AACAL;AACF;AACEK;AACF;;;AAGE;AAA+DC;AAAU;AAC3E;;AAEF","debugId":"4c7fa64b-7efc-4697-9c60-cd8e3691ed37"}
1
+ {"version":3,"file":"instrument-with-sentry.js","sources":["../../src/instrument-with-sentry.ts"],"sourcesContent":["// This should ONLY be included in the special Sentry build!\n// Otherwise the Sentry dependency won't even be present in the manifest.\n\nimport { logger } from '@socketsecurity/registry/lib/logger'\n\n// Require constants with require(relConstantsPath) instead of require('./constants')\n// so Rollup doesn't generate a constants2.js chunk.\nconst relConstantsPath = './constants'\n// The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']\".\nif (process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']) {\n const Sentry = require('@sentry/node')\n Sentry.init({\n onFatalError(error: Error) {\n // Defer module loads until after Sentry.init is called.\n if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.fail('[DEBUG] [Sentry onFatalError]:', error)\n }\n },\n dsn: 'https://66736701db8e4ffac046bd09fa6aaced@o555220.ingest.us.sentry.io/4508846967619585',\n enabled: true,\n integrations: []\n })\n Sentry.setTag(\n 'environment',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\".\n process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\n ? 'pub'\n : // The NODE_ENV convention is used by apps to define the runtime environment.\n // https://nodejs.org/en/learn/getting-started/nodejs-the-difference-between-development-and-production\n process.env['NODE_ENV']\n )\n Sentry.setTag(\n 'version',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION_HASH']\".\n process.env['INLINED_SOCKET_CLI_VERSION_HASH']\n )\n const constants = require(relConstantsPath)\n if (constants.ENV.SOCKET_CLI_DEBUG) {\n Sentry.setTag('debugging', true)\n logger.log('[DEBUG] Set up Sentry.')\n } else {\n Sentry.setTag('debugging', false)\n }\n const {\n kInternalsSymbol,\n [kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: { setSentry }\n } = constants\n setSentry(Sentry)\n} else if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.log('[DEBUG] Sentry disabled explicitly.')\n}\n"],"names":["logger","dsn","enabled","integrations","process","Sentry","setSentry"],"mappings":";;;;;;;;;;;;;AAAA;AACA;;;AAIA;AACA;AACA;AACA;AACoD;AAClD;;;AAGI;;AAEEA;AACF;;AAEFC;AACAC;AACAC;AACF;;AAGE;AACAC;;AAQA;AACAA;AAEF;AACA;AACEC;AACAL;AACF;AACEK;AACF;;;AAGE;AAA+DC;AAAU;AAC3E;;AAEF","debugId":"e8b55e94-3ad1-4d93-be06-b8ed34997bb0"}
@@ -1,27 +1,61 @@
1
- import { Remap } from '@socketsecurity/registry/lib/objects';
2
- import { components } from '@socketsecurity/sdk/types/api';
3
- type ArtifactAlertCve = Remap<Omit<CompactSocketArtifactAlert, 'type'> & {
4
- type: CveAlertType;
5
- }>;
6
- type ArtifactAlertCveFixable = Remap<Omit<CompactSocketArtifactAlert, 'props' | 'type'> & {
7
- type: CveAlertType;
1
+ import { Remap } from '@socketsecurity/registry/lib/objects'
2
+ import { components, operations } from '@socketsecurity/sdk/types/api'
3
+ type ALERT_TYPE = keyof NonNullable<
4
+ operations['getOrgSecurityPolicy']['responses']['200']['content']['application/json']['securityPolicyRules']
5
+ >
6
+ type CVE_ALERT_TYPE = 'cve' | 'mediumCVE' | 'mildCVE' | 'criticalCVE'
7
+ type ArtifactAlertCve = Remap<
8
+ Omit<CompactSocketArtifactAlert, 'type'> & {
9
+ type: CVE_ALERT_TYPE
10
+ }
11
+ >
12
+ type ArtifactAlertCveFixable = Remap<
13
+ Omit<CompactSocketArtifactAlert, 'props' | 'type'> & {
14
+ type: CVE_ALERT_TYPE
8
15
  props: {
9
- firstPatchedVersionIdentifier: string;
10
- vulnerableVersionRange: string;
11
- [key: string]: any;
12
- };
13
- }>;
14
- type ArtifactAlertUpgrade = Remap<Omit<CompactSocketArtifactAlert, 'type'> & {
15
- type: 'socketUpgradeAvailable';
16
- }>;
17
- type CveAlertType = 'cve' | 'mediumCVE' | 'mildCVE' | 'criticalCVE';
18
- type CompactSocketArtifactAlert = Remap<Omit<SocketArtifactAlert, 'action' | 'actionPolicyIndex' | 'category' | 'end' | 'file' | 'start'>>;
19
- type CompactSocketArtifact = Remap<Omit<SocketArtifact, 'alerts' | 'batchIndex' | 'size'> & {
20
- alerts: CompactSocketArtifactAlert[];
21
- }>;
22
- type SocketArtifact = components['schemas']['SocketArtifact'];
23
- type SocketArtifactAlert = Remap<Omit<components['schemas']['SocketAlert'], 'props'> & {
24
- props?: any | undefined;
25
- }>;
26
- declare function isArtifactAlertCve(alert: CompactSocketArtifactAlert): alert is ArtifactAlertCve;
27
- export { ArtifactAlertCve, ArtifactAlertCveFixable, ArtifactAlertUpgrade, CveAlertType, CompactSocketArtifactAlert, CompactSocketArtifact, SocketArtifact, SocketArtifactAlert, isArtifactAlertCve };
16
+ firstPatchedVersionIdentifier: string
17
+ vulnerableVersionRange: string
18
+ [key: string]: any
19
+ }
20
+ }
21
+ >
22
+ type ArtifactAlertUpgrade = Remap<
23
+ Omit<CompactSocketArtifactAlert, 'type'> & {
24
+ type: 'socketUpgradeAvailable'
25
+ }
26
+ >
27
+ type CompactSocketArtifactAlert = Remap<
28
+ Omit<SocketArtifactAlert, 'category' | 'end' | 'file' | 'start'>
29
+ >
30
+ type CompactSocketArtifact = Remap<
31
+ Omit<SocketArtifact, 'alerts' | 'batchIndex' | 'size'> & {
32
+ alerts: CompactSocketArtifactAlert[]
33
+ }
34
+ >
35
+ type SocketArtifact = Remap<
36
+ Omit<components['schemas']['SocketArtifact'], 'alerts'> & {
37
+ alerts?: SocketArtifactAlert[]
38
+ }
39
+ >
40
+ type SocketArtifactAlert = Remap<
41
+ Omit<components['schemas']['SocketAlert'], 'action' | 'props' | 'type'> & {
42
+ type: ALERT_TYPE
43
+ action?: 'error' | 'monitor' | 'warn' | 'ignore'
44
+ props?: any | undefined
45
+ }
46
+ >
47
+ declare function isArtifactAlertCve(
48
+ alert: CompactSocketArtifactAlert
49
+ ): alert is ArtifactAlertCve
50
+ export {
51
+ ALERT_TYPE,
52
+ CVE_ALERT_TYPE,
53
+ ArtifactAlertCve,
54
+ ArtifactAlertCveFixable,
55
+ ArtifactAlertUpgrade,
56
+ CompactSocketArtifactAlert,
57
+ CompactSocketArtifact,
58
+ SocketArtifact,
59
+ SocketArtifactAlert,
60
+ isArtifactAlertCve
61
+ }
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ export {}