@socketsecurity/cli 0.14.90 → 0.14.92
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/dist/blessed/lib/widgets/node.js +1 -2
- package/dist/blessed/lib/widgets/screen.js +5 -7
- package/dist/constants.d.ts +7 -0
- package/dist/constants.js +17 -3
- package/dist/constants.js.map +1 -1
- package/dist/module-sync/cli.js +235 -203
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/fs.d.ts +61 -0
- package/dist/module-sync/shadow-npm-inject.js +7 -4
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/module-sync/types.d.ts +1 -0
- package/dist/require/cli.js +235 -203
- package/dist/require/cli.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Remap } from '@socketsecurity/registry/lib/objects'
|
|
3
|
+
import { Abortable } from 'node:events'
|
|
4
|
+
import {
|
|
5
|
+
ObjectEncodingOptions,
|
|
6
|
+
OpenMode,
|
|
7
|
+
PathLike,
|
|
8
|
+
PathOrFileDescriptor
|
|
9
|
+
} from 'node:fs'
|
|
10
|
+
import { FileHandle } from 'node:fs/promises'
|
|
11
|
+
type FindUpOptions = {
|
|
12
|
+
cwd?: string | undefined
|
|
13
|
+
signal?: AbortSignal | undefined
|
|
14
|
+
}
|
|
15
|
+
declare function findUp(
|
|
16
|
+
name: string | string[],
|
|
17
|
+
{ cwd, signal }: FindUpOptions
|
|
18
|
+
): Promise<string | undefined>
|
|
19
|
+
type ReadFileOptions = Remap<
|
|
20
|
+
ObjectEncodingOptions &
|
|
21
|
+
Abortable & {
|
|
22
|
+
flag?: OpenMode | undefined
|
|
23
|
+
}
|
|
24
|
+
>
|
|
25
|
+
declare function readFileBinary(
|
|
26
|
+
filepath: PathLike | FileHandle,
|
|
27
|
+
options?: ReadFileOptions | undefined
|
|
28
|
+
): Promise<Buffer>
|
|
29
|
+
declare function readFileUtf8(
|
|
30
|
+
filepath: PathLike | FileHandle,
|
|
31
|
+
options?: ReadFileOptions | undefined
|
|
32
|
+
): Promise<string>
|
|
33
|
+
declare function safeReadFile(
|
|
34
|
+
filepath: PathLike | FileHandle,
|
|
35
|
+
options?:
|
|
36
|
+
| 'utf8'
|
|
37
|
+
| 'utf-8'
|
|
38
|
+
| {
|
|
39
|
+
encoding: 'utf8' | 'utf-8'
|
|
40
|
+
}
|
|
41
|
+
| undefined
|
|
42
|
+
): Promise<string | undefined>
|
|
43
|
+
declare function safeReadFileSync(
|
|
44
|
+
filepath: PathOrFileDescriptor,
|
|
45
|
+
options?:
|
|
46
|
+
| 'utf8'
|
|
47
|
+
| 'utf-8'
|
|
48
|
+
| {
|
|
49
|
+
encoding: 'utf8' | 'utf-8'
|
|
50
|
+
}
|
|
51
|
+
| undefined
|
|
52
|
+
): string | undefined
|
|
53
|
+
export {
|
|
54
|
+
FindUpOptions,
|
|
55
|
+
findUp,
|
|
56
|
+
ReadFileOptions,
|
|
57
|
+
readFileBinary,
|
|
58
|
+
readFileUtf8,
|
|
59
|
+
safeReadFile,
|
|
60
|
+
safeReadFileSync
|
|
61
|
+
}
|
|
@@ -406,7 +406,7 @@ async function setupSdk(
|
|
|
406
406
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
|
|
407
407
|
name: 'socket',
|
|
408
408
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
409
|
-
version: '0.14.
|
|
409
|
+
version: '0.14.92',
|
|
410
410
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
|
|
411
411
|
homepage: 'https://github.com/SocketDev/socket-cli'
|
|
412
412
|
})
|
|
@@ -1730,8 +1730,11 @@ function logAlertsMap(alertsMap, options) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
|
|
1732
1732
|
function assignDefaultFixOptions(options) {
|
|
1733
|
+
if (options.autoPilot === undefined) {
|
|
1734
|
+
options.autoPilot = false
|
|
1735
|
+
}
|
|
1733
1736
|
if (options.autoMerge === undefined) {
|
|
1734
|
-
options.autoMerge =
|
|
1737
|
+
options.autoMerge = !!options.autoPilot
|
|
1735
1738
|
}
|
|
1736
1739
|
if (options.cwd === undefined) {
|
|
1737
1740
|
options.cwd = process.cwd()
|
|
@@ -1740,7 +1743,7 @@ function assignDefaultFixOptions(options) {
|
|
|
1740
1743
|
options.rangeStyle = 'preserve'
|
|
1741
1744
|
}
|
|
1742
1745
|
if (options.test === undefined) {
|
|
1743
|
-
options.test = !!options.testScript
|
|
1746
|
+
options.test = !!options.autoPilot || !!options.testScript
|
|
1744
1747
|
}
|
|
1745
1748
|
if (options.testScript === undefined) {
|
|
1746
1749
|
options.testScript = 'test'
|
|
@@ -2321,5 +2324,5 @@ exports.supportedConfigKeys = supportedConfigKeys
|
|
|
2321
2324
|
exports.updateConfigValue = updateConfigValue
|
|
2322
2325
|
exports.updateNode = updateNode
|
|
2323
2326
|
exports.updatePackageJsonFromNode = updatePackageJsonFromNode
|
|
2324
|
-
//# debugId=
|
|
2327
|
+
//# debugId=fef12596-0900-46db-b83e-ee2eb7471c7e
|
|
2325
2328
|
//# sourceMappingURL=shadow-npm-inject.js.map
|