@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.
- package/bin/cli.js +10 -15
- package/dist/constants.d.ts +29 -4
- package/dist/constants.js +8 -2
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.js +7 -10
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/module-sync/cli.js +670 -446
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/edge.d.ts +1 -1
- package/dist/module-sync/index.d.ts +22 -22
- package/dist/module-sync/index.js +5 -4
- package/dist/module-sync/index.js.map +1 -1
- package/dist/module-sync/npm-paths.js +12 -23
- package/dist/module-sync/npm-paths.js.map +1 -1
- package/dist/module-sync/path-resolve.d.ts +1 -2
- package/dist/module-sync/reify.d.ts +8 -8
- package/dist/module-sync/settings.d.ts +1 -1
- package/dist/module-sync/shadow-bin.js +5 -10
- package/dist/module-sync/shadow-bin.js.map +1 -1
- package/dist/require/cli.js +670 -446
- package/dist/require/cli.js.map +1 -1
- package/package.json +5 -5
- package/dist/module-sync/debug.d.ts +0 -3
- package/dist/module-sync/npm.d.ts +0 -26
- package/dist/module-sync/npm.js +0 -113
- package/dist/module-sync/npm.js.map +0 -1
- package/dist/require/npm.js +0 -3
|
@@ -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
|
|
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
|
-
|
|
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.
|
|
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=
|
|
1870
|
+
//# debugId=30e57097-6100-437d-9b6d-904604eeaa8d
|
|
1870
1871
|
//# sourceMappingURL=index.js.map
|