@socketsecurity/cli-with-sentry 0.14.66 → 0.14.68
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/alias.js +521 -0
- package/dist/blessed/lib/blessed.js +34 -0
- package/dist/blessed/lib/colors.js +492 -0
- package/dist/blessed/lib/events.js +197 -0
- package/dist/blessed/lib/gpmclient.js +247 -0
- package/dist/blessed/lib/helpers.js +172 -0
- package/dist/blessed/lib/keys.js +514 -0
- package/dist/blessed/lib/program.js +4532 -0
- package/dist/blessed/lib/tput.js +3113 -0
- package/dist/blessed/lib/unicode.js +914 -0
- package/dist/blessed/lib/widget.js +62 -0
- package/dist/blessed/lib/widgets/ansiimage.js +175 -0
- package/dist/blessed/lib/widgets/bigtext.js +172 -0
- package/dist/blessed/lib/widgets/box.js +36 -0
- package/dist/blessed/lib/widgets/button.js +64 -0
- package/dist/blessed/lib/widgets/checkbox.js +97 -0
- package/dist/blessed/lib/widgets/element.js +2873 -0
- package/dist/blessed/lib/widgets/filemanager.js +225 -0
- package/dist/blessed/lib/widgets/form.js +303 -0
- package/dist/blessed/lib/widgets/image.js +73 -0
- package/dist/blessed/lib/widgets/input.js +36 -0
- package/dist/blessed/lib/widgets/layout.js +251 -0
- package/dist/blessed/lib/widgets/line.js +61 -0
- package/dist/blessed/lib/widgets/list.js +654 -0
- package/dist/blessed/lib/widgets/listbar.js +454 -0
- package/dist/blessed/lib/widgets/listtable.js +267 -0
- package/dist/blessed/lib/widgets/loading.js +90 -0
- package/dist/blessed/lib/widgets/log.js +84 -0
- package/dist/blessed/lib/widgets/message.js +147 -0
- package/dist/blessed/lib/widgets/node.js +316 -0
- package/dist/blessed/lib/widgets/overlayimage.js +796 -0
- package/dist/blessed/lib/widgets/progressbar.js +168 -0
- package/dist/blessed/lib/widgets/prompt.js +129 -0
- package/dist/blessed/lib/widgets/question.js +131 -0
- package/dist/blessed/lib/widgets/radiobutton.js +64 -0
- package/dist/blessed/lib/widgets/radioset.js +38 -0
- package/dist/blessed/lib/widgets/screen.js +2489 -0
- package/dist/blessed/lib/widgets/scrollablebox.js +417 -0
- package/dist/blessed/lib/widgets/scrollabletext.js +37 -0
- package/dist/blessed/lib/widgets/table.js +385 -0
- package/dist/blessed/lib/widgets/terminal.js +454 -0
- package/dist/blessed/lib/widgets/text.js +37 -0
- package/dist/blessed/lib/widgets/textarea.js +378 -0
- package/dist/blessed/lib/widgets/textbox.js +81 -0
- package/dist/blessed/lib/widgets/video.js +132 -0
- package/dist/blessed/usr/fonts/AUTHORS +1 -0
- package/dist/blessed/usr/fonts/LICENSE +94 -0
- package/dist/blessed/usr/fonts/README +340 -0
- package/dist/blessed/usr/fonts/ter-u14b.json +17826 -0
- package/dist/blessed/usr/fonts/ter-u14n.json +17826 -0
- package/dist/blessed/usr/linux +0 -0
- package/dist/blessed/usr/windows-ansi +0 -0
- package/dist/blessed/usr/xterm +0 -0
- package/dist/blessed/usr/xterm-256color +0 -0
- package/dist/blessed/usr/xterm.termcap +243 -0
- package/dist/blessed/usr/xterm.terminfo +1977 -0
- package/dist/blessed/vendor/tng.js +1878 -0
- package/dist/constants.d.ts +271 -205
- package/dist/constants.js +273 -221
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.d.ts +1 -1
- package/dist/instrument-with-sentry.js +27 -24
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/module-sync/artifact.d.ts +60 -26
- package/dist/module-sync/cli.d.ts +1 -1
- package/dist/module-sync/cli.js +6991 -4413
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/cmd.d.ts +4 -4
- package/dist/module-sync/config.d.ts +32 -0
- package/dist/module-sync/edge.d.ts +73 -60
- package/dist/module-sync/errors.d.ts +26 -11
- package/dist/module-sync/fs.d.ts +61 -0
- package/dist/module-sync/index.d.ts +31 -20
- package/dist/module-sync/node.d.ts +118 -83
- package/dist/module-sync/override-set.d.ts +39 -33
- package/dist/module-sync/package-environment.d.ts +83 -52
- package/dist/module-sync/path-resolve.d.ts +14 -9
- package/dist/module-sync/sdk.d.ts +9 -5
- package/dist/module-sync/shadow-bin.d.ts +5 -2
- package/dist/module-sync/shadow-bin.js +82 -66
- package/dist/module-sync/shadow-bin.js.map +1 -1
- package/dist/module-sync/shadow-npm-inject.d.ts +1 -1
- package/dist/module-sync/shadow-npm-inject.js +1209 -1006
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/module-sync/shadow-npm-paths.d.ts +28 -14
- package/dist/module-sync/shadow-npm-paths.js +286 -209
- package/dist/module-sync/shadow-npm-paths.js.map +1 -1
- package/dist/module-sync/socket-package-alert.d.ts +95 -39
- package/dist/module-sync/types.d.ts +75 -47
- package/dist/module-sync/vendor.js +11181 -0
- package/dist/{require → module-sync}/vendor.js.map +1 -1
- package/dist/require/cli.d.ts +1 -1
- package/dist/require/cli.js +6991 -4411
- package/dist/require/cli.js.map +1 -1
- package/dist/require/vendor.js +2 -9145
- package/package.json +49 -41
- package/dist/module-sync/settings.d.ts +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
export {}
|
|
1
|
+
export {}
|
|
@@ -1,57 +1,60 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict'
|
|
2
2
|
|
|
3
3
|
function _socketInterop(e) {
|
|
4
4
|
let c = 0
|
|
5
5
|
for (const k in e ?? {}) {
|
|
6
6
|
c = c === 0 && k === 'default' ? 1 : 0
|
|
7
|
-
if (!c && k !== '__esModule')
|
|
7
|
+
if (!c && k !== '__esModule') {
|
|
8
|
+
break
|
|
9
|
+
}
|
|
8
10
|
}
|
|
9
11
|
return c ? e.default : e
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
const logger = require('@socketsecurity/registry/lib/logger')
|
|
13
15
|
|
|
14
16
|
// This should ONLY be included in the special Sentry build!
|
|
15
17
|
// Otherwise the Sentry dependency won't even be present in the manifest.
|
|
16
18
|
|
|
17
|
-
|
|
18
19
|
// Require constants with require(relConstantsPath) instead of require('./constants')
|
|
19
20
|
// so Rollup doesn't generate a constants2.js chunk.
|
|
20
|
-
const relConstantsPath = './constants'
|
|
21
|
+
const relConstantsPath = './constants'
|
|
21
22
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']".
|
|
22
23
|
{
|
|
23
|
-
const Sentry = _socketInterop(require('@sentry/node'))
|
|
24
|
+
const Sentry = _socketInterop(require('@sentry/node'))
|
|
24
25
|
Sentry.init({
|
|
25
26
|
onFatalError(error) {
|
|
26
27
|
// Defer module loads until after Sentry.init is called.
|
|
27
28
|
if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {
|
|
28
|
-
logger.logger.fail('[DEBUG] [Sentry onFatalError]:', error)
|
|
29
|
+
logger.logger.fail('[DEBUG] [Sentry onFatalError]:', error)
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
dsn: 'https://66736701db8e4ffac046bd09fa6aaced@o555220.ingest.us.sentry.io/4508846967619585',
|
|
32
33
|
enabled: true,
|
|
33
34
|
integrations: []
|
|
34
|
-
})
|
|
35
|
-
Sentry.setTag(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
})
|
|
36
|
+
Sentry.setTag(
|
|
37
|
+
'environment',
|
|
38
|
+
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']".
|
|
39
|
+
'pub'
|
|
40
|
+
)
|
|
41
|
+
Sentry.setTag(
|
|
42
|
+
'version',
|
|
43
|
+
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
|
|
44
|
+
'0.14.68:23c5456:b5e74c63:pub'
|
|
45
|
+
)
|
|
46
|
+
const constants = require(relConstantsPath)
|
|
42
47
|
if (constants.ENV.SOCKET_CLI_DEBUG) {
|
|
43
|
-
Sentry.setTag('debugging', true)
|
|
44
|
-
logger.logger.log('[DEBUG] Set up Sentry.')
|
|
48
|
+
Sentry.setTag('debugging', true)
|
|
49
|
+
logger.logger.log('[DEBUG] Set up Sentry.')
|
|
45
50
|
} else {
|
|
46
|
-
Sentry.setTag('debugging', false)
|
|
51
|
+
Sentry.setTag('debugging', false)
|
|
47
52
|
}
|
|
48
53
|
const {
|
|
49
54
|
kInternalsSymbol,
|
|
50
|
-
[kInternalsSymbol]: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} = constants;
|
|
54
|
-
setSentry(Sentry);
|
|
55
|
+
[kInternalsSymbol]: { setSentry }
|
|
56
|
+
} = constants
|
|
57
|
+
setSentry(Sentry)
|
|
55
58
|
}
|
|
56
|
-
//# debugId=
|
|
59
|
+
//# debugId=e8b55e94-3ad1-4d93-be06-b8ed34997bb0
|
|
57
60
|
//# sourceMappingURL=instrument-with-sentry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument-with-sentry.js","sources":["../../src/instrument-with-sentry.ts"],"sourcesContent":["// This should ONLY be included in the special Sentry build!\n// Otherwise the Sentry dependency won't even be present in the manifest.\n\nimport { logger } from '@socketsecurity/registry/lib/logger'\n\n// Require constants with require(relConstantsPath) instead of require('./constants')\n// so Rollup doesn't generate a constants2.js chunk.\nconst relConstantsPath = './constants'\n// The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']\".\nif (process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']) {\n const Sentry = require('@sentry/node')\n Sentry.init({\n onFatalError(error: Error) {\n // Defer module loads until after Sentry.init is called.\n if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.fail('[DEBUG] [Sentry onFatalError]:', error)\n }\n },\n dsn: 'https://66736701db8e4ffac046bd09fa6aaced@o555220.ingest.us.sentry.io/4508846967619585',\n enabled: true,\n integrations: []\n })\n Sentry.setTag(\n 'environment',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\".\n process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\n ? 'pub'\n : process.env['NODE_ENV']\n )\n Sentry.setTag(\n 'version',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION_HASH']\".\n process.env['INLINED_SOCKET_CLI_VERSION_HASH']\n )\n const constants = require(relConstantsPath)\n if (constants.ENV.SOCKET_CLI_DEBUG) {\n Sentry.setTag('debugging', true)\n logger.log('[DEBUG] Set up Sentry.')\n } else {\n Sentry.setTag('debugging', false)\n }\n const {\n kInternalsSymbol,\n [kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: { setSentry }\n } = constants\n setSentry(Sentry)\n} else if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.log('[DEBUG] Sentry disabled explicitly.')\n}\n"],"names":["logger","dsn","enabled","integrations","process","Sentry","setSentry"],"mappings":";;;;;;;;;;;;;AAAA;AACA;;;AAIA;AACA;AACA;AACA;AACoD;AAClD;;;AAGI;;AAEEA;AACF;;AAEFC;AACAC;AACAC;AACF;;AAGE;AACAC;;
|
|
1
|
+
{"version":3,"file":"instrument-with-sentry.js","sources":["../../src/instrument-with-sentry.ts"],"sourcesContent":["// This should ONLY be included in the special Sentry build!\n// Otherwise the Sentry dependency won't even be present in the manifest.\n\nimport { logger } from '@socketsecurity/registry/lib/logger'\n\n// Require constants with require(relConstantsPath) instead of require('./constants')\n// so Rollup doesn't generate a constants2.js chunk.\nconst relConstantsPath = './constants'\n// The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']\".\nif (process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']) {\n const Sentry = require('@sentry/node')\n Sentry.init({\n onFatalError(error: Error) {\n // Defer module loads until after Sentry.init is called.\n if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.fail('[DEBUG] [Sentry onFatalError]:', error)\n }\n },\n dsn: 'https://66736701db8e4ffac046bd09fa6aaced@o555220.ingest.us.sentry.io/4508846967619585',\n enabled: true,\n integrations: []\n })\n Sentry.setTag(\n 'environment',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\".\n process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']\n ? 'pub'\n : // The NODE_ENV convention is used by apps to define the runtime environment.\n // https://nodejs.org/en/learn/getting-started/nodejs-the-difference-between-development-and-production\n process.env['NODE_ENV']\n )\n Sentry.setTag(\n 'version',\n // The '@rollup/plugin-replace' will replace \"process.env['INLINED_SOCKET_CLI_VERSION_HASH']\".\n process.env['INLINED_SOCKET_CLI_VERSION_HASH']\n )\n const constants = require(relConstantsPath)\n if (constants.ENV.SOCKET_CLI_DEBUG) {\n Sentry.setTag('debugging', true)\n logger.log('[DEBUG] Set up Sentry.')\n } else {\n Sentry.setTag('debugging', false)\n }\n const {\n kInternalsSymbol,\n [kInternalsSymbol as unknown as 'Symbol(kInternalsSymbol)']: { setSentry }\n } = constants\n setSentry(Sentry)\n} else if (require(relConstantsPath).ENV.SOCKET_CLI_DEBUG) {\n logger.log('[DEBUG] Sentry disabled explicitly.')\n}\n"],"names":["logger","dsn","enabled","integrations","process","Sentry","setSentry"],"mappings":";;;;;;;;;;;;;AAAA;AACA;;;AAIA;AACA;AACA;AACA;AACoD;AAClD;;;AAGI;;AAEEA;AACF;;AAEFC;AACAC;AACAC;AACF;;AAGE;AACAC;;AAQA;AACAA;AAEF;AACA;AACEC;AACAL;AACF;AACEK;AACF;;;AAGE;AAA+DC;AAAU;AAC3E;;AAEF","debugId":"e8b55e94-3ad1-4d93-be06-b8ed34997bb0"}
|
|
@@ -1,27 +1,61 @@
|
|
|
1
|
-
import { Remap } from '@socketsecurity/registry/lib/objects'
|
|
2
|
-
import { components } from '@socketsecurity/sdk/types/api'
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
|
|
1
|
+
import { Remap } from '@socketsecurity/registry/lib/objects'
|
|
2
|
+
import { components, operations } from '@socketsecurity/sdk/types/api'
|
|
3
|
+
type ALERT_TYPE = keyof NonNullable<
|
|
4
|
+
operations['getOrgSecurityPolicy']['responses']['200']['content']['application/json']['securityPolicyRules']
|
|
5
|
+
>
|
|
6
|
+
type CVE_ALERT_TYPE = 'cve' | 'mediumCVE' | 'mildCVE' | 'criticalCVE'
|
|
7
|
+
type ArtifactAlertCve = Remap<
|
|
8
|
+
Omit<CompactSocketArtifactAlert, 'type'> & {
|
|
9
|
+
type: CVE_ALERT_TYPE
|
|
10
|
+
}
|
|
11
|
+
>
|
|
12
|
+
type ArtifactAlertCveFixable = Remap<
|
|
13
|
+
Omit<CompactSocketArtifactAlert, 'props' | 'type'> & {
|
|
14
|
+
type: CVE_ALERT_TYPE
|
|
8
15
|
props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
firstPatchedVersionIdentifier: string
|
|
17
|
+
vulnerableVersionRange: string
|
|
18
|
+
[key: string]: any
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
>
|
|
22
|
+
type ArtifactAlertUpgrade = Remap<
|
|
23
|
+
Omit<CompactSocketArtifactAlert, 'type'> & {
|
|
24
|
+
type: 'socketUpgradeAvailable'
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
type CompactSocketArtifactAlert = Remap<
|
|
28
|
+
Omit<SocketArtifactAlert, 'category' | 'end' | 'file' | 'start'>
|
|
29
|
+
>
|
|
30
|
+
type CompactSocketArtifact = Remap<
|
|
31
|
+
Omit<SocketArtifact, 'alerts' | 'batchIndex' | 'size'> & {
|
|
32
|
+
alerts: CompactSocketArtifactAlert[]
|
|
33
|
+
}
|
|
34
|
+
>
|
|
35
|
+
type SocketArtifact = Remap<
|
|
36
|
+
Omit<components['schemas']['SocketArtifact'], 'alerts'> & {
|
|
37
|
+
alerts?: SocketArtifactAlert[]
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
type SocketArtifactAlert = Remap<
|
|
41
|
+
Omit<components['schemas']['SocketAlert'], 'action' | 'props' | 'type'> & {
|
|
42
|
+
type: ALERT_TYPE
|
|
43
|
+
action?: 'error' | 'monitor' | 'warn' | 'ignore'
|
|
44
|
+
props?: any | undefined
|
|
45
|
+
}
|
|
46
|
+
>
|
|
47
|
+
declare function isArtifactAlertCve(
|
|
48
|
+
alert: CompactSocketArtifactAlert
|
|
49
|
+
): alert is ArtifactAlertCve
|
|
50
|
+
export {
|
|
51
|
+
ALERT_TYPE,
|
|
52
|
+
CVE_ALERT_TYPE,
|
|
53
|
+
ArtifactAlertCve,
|
|
54
|
+
ArtifactAlertCveFixable,
|
|
55
|
+
ArtifactAlertUpgrade,
|
|
56
|
+
CompactSocketArtifactAlert,
|
|
57
|
+
CompactSocketArtifact,
|
|
58
|
+
SocketArtifact,
|
|
59
|
+
SocketArtifactAlert,
|
|
60
|
+
isArtifactAlertCve
|
|
61
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export {}
|
|
2
|
+
export {}
|