@socketsecurity/cli-with-sentry 1.0.108 → 1.0.109
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 +1 -0
- package/dist/constants.js +64 -46
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-bin.js +6 -5
- package/dist/shadow-npm-bin.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/constants.d.mts +1 -0
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts.map +1 -1
- package/dist/types/shadow/npm/install.d.mts.map +1 -1
- package/dist/types/shadow/npm/link.d.mts +1 -1
- package/dist/types/shadow/npm/link.d.mts.map +1 -1
- package/dist/types/utils/alerts-map.d.mts +1 -1
- package/dist/types/utils/alerts-map.d.mts.map +1 -1
- package/dist/types/utils/sdk.d.mts +1 -1
- package/dist/types/utils/sdk.d.mts.map +1 -1
- package/dist/utils.js +2 -2
- package/dist/utils.js.map +1 -1
- package/external/@socketsecurity/registry/lib/constants/env.js +3 -3
- package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +11 -3
- package/package.json +4 -4
|
@@ -25,9 +25,9 @@ module.exports = ObjectFreeze({
|
|
|
25
25
|
NODE_AUTH_TOKEN: envAsString(env.NODE_AUTH_TOKEN),
|
|
26
26
|
// NODE_ENV is a recognized convention, but not a built-in Node.js feature.
|
|
27
27
|
NODE_ENV:
|
|
28
|
-
envAsString(env.NODE_ENV).toLowerCase() === '
|
|
29
|
-
? '
|
|
30
|
-
: '
|
|
28
|
+
envAsString(env.NODE_ENV).toLowerCase() === 'production'
|
|
29
|
+
? 'production'
|
|
30
|
+
: 'development',
|
|
31
31
|
// A space-separated list of command-line options. `options...` are interpreted
|
|
32
32
|
// before command-line options, so command-line options will override or compound
|
|
33
33
|
// after anything in `options...`. Node.js will exit with an error if an option
|
|
@@ -5,15 +5,23 @@ const { freeze: ObjectFreeze } = Object
|
|
|
5
5
|
const WIN32 = require('./win32')
|
|
6
6
|
|
|
7
7
|
module.exports = ObjectFreeze(
|
|
8
|
+
// Harden Node security.
|
|
9
|
+
// https://nodejs.org/en/learn/getting-started/security-best-practices
|
|
8
10
|
WIN32
|
|
9
|
-
? [
|
|
11
|
+
? [
|
|
12
|
+
// https://nodejs.org/api/cli.html#--disallow-code-generation-from-strings
|
|
13
|
+
'--disallow-code-generation-from-strings'
|
|
14
|
+
]
|
|
10
15
|
: [
|
|
16
|
+
'--disallow-code-generation-from-strings',
|
|
11
17
|
// https://nodejs.org/api/cli.html#--disable-protomode
|
|
12
18
|
'--disable-proto',
|
|
13
19
|
'throw',
|
|
14
|
-
// https://nodejs.org/api/cli.html#--disallow-code-generation-from-strings
|
|
15
|
-
'--disallow-code-generation-from-strings',
|
|
16
20
|
// https://nodejs.org/api/cli.html#--frozen-intrinsics
|
|
21
|
+
// We have contributed the following patches to our dependencies to make
|
|
22
|
+
// Node's --frozen-intrinsics workable.
|
|
23
|
+
// √ https://github.com/SBoudrias/Inquirer.js/pull/1683
|
|
24
|
+
// √ https://github.com/pnpm/components/pull/23
|
|
17
25
|
'--frozen-intrinsics',
|
|
18
26
|
// https://nodejs.org/api/cli.html#--no-deprecation
|
|
19
27
|
'--no-deprecation'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli-with-sentry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.109",
|
|
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",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@socketregistry/is-interactive": "1.0.6",
|
|
114
114
|
"@socketregistry/packageurl-js": "1.0.9",
|
|
115
115
|
"@socketsecurity/config": "3.0.1",
|
|
116
|
-
"@socketsecurity/registry": "1.0.
|
|
116
|
+
"@socketsecurity/registry": "1.0.279",
|
|
117
117
|
"@socketsecurity/sdk": "1.4.83",
|
|
118
118
|
"@types/blessed": "0.1.25",
|
|
119
119
|
"@types/cmd-shim": "5.0.2",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"@types/npmcli__arborist": "6.3.1",
|
|
125
125
|
"@types/npmcli__config": "6.0.3",
|
|
126
126
|
"@types/proc-log": "3.0.4",
|
|
127
|
-
"@types/semver": "7.7.
|
|
127
|
+
"@types/semver": "7.7.1",
|
|
128
128
|
"@types/which": "3.0.4",
|
|
129
129
|
"@types/yargs-parser": "21.0.3",
|
|
130
130
|
"@typescript-eslint/parser": "8.42.0",
|
|
@@ -241,6 +241,6 @@
|
|
|
241
241
|
"strict": true
|
|
242
242
|
},
|
|
243
243
|
"dependencies": {
|
|
244
|
-
"@sentry/node": "10.
|
|
244
|
+
"@sentry/node": "10.9.0"
|
|
245
245
|
}
|
|
246
246
|
}
|