@socketsecurity/cli-with-sentry 0.14.51 → 0.14.53

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.
@@ -24,7 +24,7 @@ type EdgeOptions = {
24
24
  from: SafeNode;
25
25
  accept?: string | undefined;
26
26
  overrides?: SafeOverrideSet | undefined;
27
- to?: SafeNode;
27
+ to?: SafeNode | undefined;
28
28
  };
29
29
  type ErrorStatus = DependencyProblem | 'OK';
30
30
  type Explanation = {
@@ -50,15 +50,15 @@ declare class SafeOverrideSet extends OverrideSet {
50
50
  }
51
51
  declare const depValid: (child: SafeNode, requested: string, accept: string | undefined, requester: SafeNode) => boolean;
52
52
  declare function getSocketDevAlertUrl(alertType: string): string;
53
- declare function getSocketDevPackageOverviewUrl(eco: string, name: string, version?: string): string;
53
+ declare function getSocketDevPackageOverviewUrl(eco: string, name: string, version?: string | undefined): string;
54
54
  declare class ColorOrMarkdown {
55
55
  useMarkdown: boolean;
56
56
  constructor(useMarkdown: boolean);
57
57
  bold(text: string): string;
58
58
  header(text: string, level?: number): string;
59
59
  hyperlink(text: string, url: string | undefined, { fallback, fallbackToUrl }?: {
60
- fallback?: boolean;
61
- fallbackToUrl?: boolean;
60
+ fallback?: boolean | undefined;
61
+ fallbackToUrl?: boolean | undefined;
62
62
  }): string;
63
63
  indent(...args: Parameters<typeof indentString>): ReturnType<typeof indentString>;
64
64
  italic(text: string): string;
@@ -103,23 +103,23 @@ type SocketArtifactAlert = {
103
103
  type: string;
104
104
  severity: string;
105
105
  category: string;
106
- action?: string;
107
- actionPolicyIndex?: number;
108
- file?: string;
109
- props?: any;
110
- start?: number;
111
- end?: number;
106
+ action?: string | undefined;
107
+ actionPolicyIndex?: number | undefined;
108
+ file?: string | undefined;
109
+ props?: any | undefined;
110
+ start?: number | undefined;
111
+ end?: number | undefined;
112
112
  };
113
113
  type SocketArtifact = {
114
114
  type: string;
115
115
  name: string;
116
- namespace?: string;
117
- version?: string;
118
- subpath?: string;
119
- release?: string;
120
- id?: string;
116
+ namespace?: string | undefined;
117
+ version?: string | undefined;
118
+ subpath?: string | undefined;
119
+ release?: string | undefined;
120
+ id?: string | undefined;
121
121
  author?: string[];
122
- license?: string;
122
+ license?: string | undefined;
123
123
  licenseDetails?: {
124
124
  spdxDisj: string;
125
125
  provenance: string;
@@ -144,8 +144,8 @@ type SocketArtifact = {
144
144
  overall: number;
145
145
  };
146
146
  alerts?: SocketArtifactAlert[];
147
- size?: number;
148
- batchIndex?: number;
147
+ size?: number | undefined;
148
+ batchIndex?: number | undefined;
149
149
  };
150
150
  declare function batchScan(pkgIds: string[], concurrencyLimit?: number): AsyncGenerator<SocketArtifact>;
151
151
  declare function isArtifactAlertCveFixable(alert: SocketArtifactAlert): alert is ArtifactAlertCveFixable;
@@ -156,18 +156,18 @@ type PackageDetail = {
156
156
  existing?: SafeNode | undefined;
157
157
  };
158
158
  type GetPackagesToQueryFromDiffOptions = {
159
- includeUnchanged?: boolean;
160
- includeUnknownOrigin?: boolean;
159
+ includeUnchanged?: boolean | undefined;
160
+ includeUnknownOrigin?: boolean | undefined;
161
161
  };
162
- declare function getPackagesToQueryFromDiff(diff_: Diff | null, options?: GetPackagesToQueryFromDiffOptions): PackageDetail[];
162
+ declare function getPackagesToQueryFromDiff(diff_: Diff | null, options?: GetPackagesToQueryFromDiffOptions | undefined): PackageDetail[];
163
163
  declare function findUp(name: string | string[], { cwd }: {
164
164
  cwd: string;
165
165
  }): Promise<string | undefined>;
166
166
  type ReadFileOptions = ObjectEncodingOptions & Abortable & {
167
167
  flag?: OpenMode | undefined;
168
168
  };
169
- declare function readFileBinary(filepath: PathLike | FileHandle, options?: ReadFileOptions): Promise<Buffer>;
170
- declare function readFileUtf8(filepath: PathLike | FileHandle, options?: ReadFileOptions): Promise<string>;
169
+ declare function readFileBinary(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<Buffer>;
170
+ declare function readFileUtf8(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<string>;
171
171
  declare function safeReadFile(...args: Parameters<typeof fs.readFile>): ReturnType<typeof fs.readFile> | undefined;
172
172
  declare function safeReadFileSync(...args: Parameters<typeof fsReadFileSync>): ReturnType<typeof fsReadFileSync> | undefined;
173
173
  declare const Arborist: ArboristClass;
@@ -30,7 +30,7 @@ var registryConstants = require('@socketsecurity/registry/lib/constants');
30
30
  var strings = require('@socketsecurity/registry/lib/strings');
31
31
  var sdk = require('@socketsecurity/sdk');
32
32
  var promises = require('node:timers/promises');
33
- var npmPaths = require('./npm-paths.js');
33
+ var debug = require('@socketsecurity/registry/lib/debug');
34
34
  var fs = require('node:fs');
35
35
  var os = require('node:os');
36
36
  var config = require('@socketsecurity/config');
@@ -38,6 +38,7 @@ var logger = require('@socketsecurity/registry/lib/logger');
38
38
  var terminalLink = _socketInterop(require('terminal-link'));
39
39
  var colors = _socketInterop(require('yoctocolors-cjs'));
40
40
  var indentString = require('@socketregistry/indent-string/index.cjs');
41
+ var npmPaths = require('./npm-paths.js');
41
42
  var npa = _socketInterop(require('npm-package-arg'));
42
43
 
43
44
  const {
@@ -64,7 +65,7 @@ function captureExceptionSync(exception, hint) {
64
65
  if (!Sentry) {
65
66
  return '';
66
67
  }
67
- npmPaths.debugLog('captureException: Sending exception to Sentry.');
68
+ debug.debugLog('captureException: Sending exception to Sentry.');
68
69
  return Sentry.captureException(exception, hint);
69
70
  }
70
71
  function isErrnoException(value) {
@@ -1601,7 +1602,7 @@ async function getPackagesAlerts(arb, options) {
1601
1602
  remaining -= 1;
1602
1603
  if (spinner$1 && remaining > 0) {
1603
1604
  spinner$1.start();
1604
- spinner$1.text = getText();
1605
+ spinner$1.setText(getText());
1605
1606
  }
1606
1607
  };
1607
1608
  spinner$1?.start(getText());
@@ -1866,5 +1867,5 @@ exports.safeReadFile = safeReadFile;
1866
1867
  exports.setupSdk = setupSdk;
1867
1868
  exports.updateNode = updateNode;
1868
1869
  exports.updateSetting = updateSetting;
1869
- //# debugId=d413b96a-751b-43c9-8ce7-50c11ea5826
1870
+ //# debugId=30e57097-6100-437d-9b6d-904604eeaa8d
1870
1871
  //# sourceMappingURL=index.js.map