@socketsecurity/cli-with-sentry 1.1.26 → 1.1.28
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/CHANGELOG.md +10 -0
- package/dist/cli.js +84 -36
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/coana-fix.d.mts +1 -0
- package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +1 -4
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/types.d.mts +4 -3
- package/dist/types/commands/fix/types.d.mts.map +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/cmd-fix.mts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAG9C,eAAO,MAAM,QAAQ,QAAQ,CAAA;AAQ7B,eAAO,MAAM,MAAM;;;;CAIlB,CAAA;
|
|
1
|
+
{"version":3,"file":"cmd-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/cmd-fix.mts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,uCAAuC,CAAA;AAG9C,eAAO,MAAM,QAAQ,QAAQ,CAAA;AAQ7B,eAAO,MAAM,MAAM;;;;CAIlB,CAAA;AAuJD,iBAAe,GAAG,CAChB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC,CA8Kf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coana-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/coana-fix.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coana-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/coana-fix.mts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,wBAAsB,QAAQ,CAC5B,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,OAAO,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAibtD"}
|
|
@@ -4,17 +4,14 @@ import type { Remap } from '@socketsecurity/registry/lib/objects';
|
|
|
4
4
|
export type HandleFixConfig = Remap<FixConfig & {
|
|
5
5
|
applyFixes: boolean;
|
|
6
6
|
ghsas: string[];
|
|
7
|
-
glob: string;
|
|
8
7
|
orgSlug: string;
|
|
9
8
|
outputKind: OutputKind;
|
|
10
9
|
unknownFlags: string[];
|
|
11
|
-
outputFile: string;
|
|
12
|
-
minimumReleaseAge: string;
|
|
13
10
|
}>;
|
|
14
11
|
/**
|
|
15
12
|
* Converts mixed CVE/GHSA/PURL IDs to GHSA IDs only.
|
|
16
13
|
* Filters out invalid IDs and logs conversion results.
|
|
17
14
|
*/
|
|
18
15
|
export declare function convertIdsToGhsas(ids: string[]): Promise<string[]>;
|
|
19
|
-
export declare function handleFix({ applyFixes, autopilot, cwd, disableMajorUpdates, ghsas,
|
|
16
|
+
export declare function handleFix({ applyFixes, autopilot, cwd, disableMajorUpdates, exclude, ghsas, include, limit, minSatisfying, minimumReleaseAge, orgSlug, outputFile, outputKind, prCheck, rangeStyle, showAffectedDirectDependencies, spinner, unknownFlags }: HandleFixConfig): Promise<void>;
|
|
20
17
|
//# sourceMappingURL=handle-fix.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/handle-fix.mts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AAKjE,MAAM,MAAM,eAAe,GAAG,KAAK,CACjC,SAAS,GAAG;IACV,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,
|
|
1
|
+
{"version":3,"file":"handle-fix.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/handle-fix.mts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AAKjE,MAAM,MAAM,eAAe,GAAG,KAAK,CACjC,SAAS,GAAG;IACV,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB,CACF,CAAA;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAiExE;AAED,wBAAsB,SAAS,CAAC,EAC9B,UAAU,EACV,SAAS,EACT,GAAG,EACH,mBAAmB,EACnB,OAAO,EACP,KAAK,EACL,OAAO,EACP,KAAK,EACL,aAAa,EACb,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,UAAU,EACV,OAAO,EACP,UAAU,EACV,8BAA8B,EAC9B,OAAO,EACP,YAAY,EACb,EAAE,eAAe,iBA4CjB"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import type { RangeStyle } from '../../utils/semver.mts';
|
|
2
2
|
import type { Spinner } from '@socketsecurity/registry/lib/spinner';
|
|
3
3
|
export type FixConfig = {
|
|
4
|
-
autopilot: boolean;
|
|
5
4
|
applyFixes: boolean;
|
|
5
|
+
autopilot: boolean;
|
|
6
6
|
cwd: string;
|
|
7
7
|
disableMajorUpdates: boolean;
|
|
8
|
+
exclude: string[];
|
|
8
9
|
ghsas: string[];
|
|
9
|
-
|
|
10
|
+
include: string[];
|
|
10
11
|
limit: number;
|
|
11
12
|
minimumReleaseAge: string;
|
|
12
13
|
minSatisfying: boolean;
|
|
13
14
|
orgSlug: string;
|
|
15
|
+
outputFile: string;
|
|
14
16
|
prCheck: boolean;
|
|
15
17
|
rangeStyle: RangeStyle;
|
|
16
18
|
showAffectedDirectDependencies: boolean;
|
|
17
19
|
spinner: Spinner | undefined;
|
|
18
20
|
unknownFlags: string[];
|
|
19
|
-
outputFile: string;
|
|
20
21
|
};
|
|
21
22
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/types.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAEnE,MAAM,MAAM,SAAS,GAAG;IACtB,
|
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/types.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAEnE,MAAM,MAAM,SAAS,GAAG;IACtB,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,mBAAmB,EAAE,OAAO,CAAA;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,OAAO,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,8BAA8B,EAAE,OAAO,CAAA;IACvC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli-with-sentry",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.28",
|
|
4
4
|
"description": "CLI for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
|
|
5
5
|
"homepage": "https://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT AND OFL-1.1",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"prepare": "dotenvx -q run -f .env.local -- husky",
|
|
74
74
|
"bs": "dotenvx -q run -f .env.local -- pnpm build:dist:src; pnpm exec socket --",
|
|
75
75
|
"s": "dotenvx -q run -f .env.local -- pnpm exec socket --",
|
|
76
|
+
"e2e-tests": "dotenvx -q run -f .env.test -- vitest run --config vitest.e2e.config.mts",
|
|
76
77
|
"test": "run-s check test:*",
|
|
77
78
|
"test:prepare": "dotenvx -q run -f .env.test -- pnpm build && del-cli 'test/**/node_modules'",
|
|
78
79
|
"test:unit": "dotenvx -q run -f .env.test -- vitest run",
|
|
@@ -290,6 +291,6 @@
|
|
|
290
291
|
"strict": true
|
|
291
292
|
},
|
|
292
293
|
"dependencies": {
|
|
293
|
-
"@sentry/node": "10.
|
|
294
|
+
"@sentry/node": "10.25.0"
|
|
294
295
|
}
|
|
295
296
|
}
|