@socketsecurity/cli-with-sentry 0.14.106 → 0.14.108
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/instrument-with-sentry.js +2 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/module-sync/cli.js +53 -25
- 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 +2 -2
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/require/cli.js +53 -25
- package/dist/require/cli.js.map +1 -1
- package/dist/require/shadow-npm-inject.js +2 -2
- package/dist/require/shadow-npm-inject.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -391,7 +391,7 @@ async function setupSdk(
|
|
|
391
391
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
|
|
392
392
|
name: '@socketsecurity/cli',
|
|
393
393
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
394
|
-
version: '0.14.
|
|
394
|
+
version: '0.14.108',
|
|
395
395
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
|
|
396
396
|
homepage: 'https://github.com/SocketDev/socket-cli'
|
|
397
397
|
})
|
|
@@ -2353,5 +2353,5 @@ exports.supportedConfigKeys = supportedConfigKeys
|
|
|
2353
2353
|
exports.updateConfigValue = updateConfigValue
|
|
2354
2354
|
exports.updateNode = updateNode
|
|
2355
2355
|
exports.updatePackageJsonFromNode = updatePackageJsonFromNode
|
|
2356
|
-
//# debugId=
|
|
2356
|
+
//# debugId=33537de6-ee87-4b3f-b39b-fa6fc96991ff
|
|
2357
2357
|
//# sourceMappingURL=shadow-npm-inject.js.map
|