@socketsecurity/cli-with-sentry 1.0.57 → 1.0.59

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/vendor.js CHANGED
@@ -35507,7 +35507,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
35507
35507
  var dist$e = {};
35508
35508
 
35509
35509
  var name$2 = "@socketsecurity/sdk";
35510
- var version$5 = "1.4.54";
35510
+ var version$5 = "1.4.55";
35511
35511
  var license = "MIT";
35512
35512
  var description = "SDK for the Socket API client";
35513
35513
  var author = {
@@ -35590,21 +35590,21 @@ var scripts = {
35590
35590
  "update:deps": "npx --yes npm-check-updates"
35591
35591
  };
35592
35592
  var dependencies = {
35593
- "@socketsecurity/registry": "1.0.230"
35593
+ "@socketsecurity/registry": "1.0.237"
35594
35594
  };
35595
35595
  var devDependencies = {
35596
35596
  "@biomejs/biome": "2.1.1",
35597
- "@dotenvx/dotenvx": "1.47.5",
35597
+ "@dotenvx/dotenvx": "1.47.6",
35598
35598
  "@eslint/compat": "1.3.1",
35599
35599
  "@eslint/js": "9.31.0",
35600
- "@types/node": "24.0.13",
35601
- "@typescript-eslint/parser": "8.36.0",
35600
+ "@types/node": "24.0.14",
35601
+ "@typescript-eslint/parser": "8.37.0",
35602
35602
  "@vitest/coverage-v8": "3.2.4",
35603
35603
  "del-cli": "6.0.0",
35604
35604
  eslint: "9.31.0",
35605
35605
  "eslint-import-resolver-typescript": "4.4.4",
35606
35606
  "eslint-plugin-import-x": "4.16.1",
35607
- "eslint-plugin-jsdoc": "51.3.4",
35607
+ "eslint-plugin-jsdoc": "51.4.0",
35608
35608
  "eslint-plugin-n": "17.21.0",
35609
35609
  "eslint-plugin-sort-destructure-keys": "2.0.0",
35610
35610
  "eslint-plugin-unicorn": "56.0.1",
@@ -35619,7 +35619,7 @@ var devDependencies = {
35619
35619
  oxlint: "1.6.0",
35620
35620
  "type-coverage": "2.29.7",
35621
35621
  typescript: "~5.8.3",
35622
- "typescript-eslint": "8.36.0",
35622
+ "typescript-eslint": "8.37.0",
35623
35623
  vitest: "3.2.4"
35624
35624
  };
35625
35625
  var overrides = {
@@ -172547,5 +172547,5 @@ exports.terminalLinkExports = terminalLinkExports;
172547
172547
  exports.updater = updater$1;
172548
172548
  exports.yargsParser = yargsParser;
172549
172549
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
172550
- //# debugId=49175a13-2fbc-45ec-a696-5df9b44f83af
172550
+ //# debugId=311c548c-d137-4ddc-a2b3-027eb18b629e
172551
172551
  //# sourceMappingURL=vendor.js.map
@@ -58,6 +58,13 @@ function customLog() {
58
58
  ])
59
59
  }
60
60
 
61
+ /*@__NO_SIDE_EFFECTS__*/
62
+ function extractOptions(namespaces) {
63
+ return namespaces !== null && typeof namespaces === 'object'
64
+ ? { __proto__: null, ...namespaces }
65
+ : { __proto__: null, namespaces }
66
+ }
67
+
61
68
  /*@__NO_SIDE_EFFECTS__*/
62
69
  function isEnabled(namespaces) {
63
70
  if (typeof namespaces !== 'string' || !namespaces || namespaces === '*') {
@@ -86,21 +93,31 @@ function isEnabled(namespaces) {
86
93
  }
87
94
 
88
95
  /*@__NO_SIDE_EFFECTS__*/
89
- function debugDir(namespaces, obj, options) {
96
+ function debugDir(namespacesOrOpts, obj, inspectOpts) {
97
+ const options = extractOptions(namespacesOrOpts)
98
+ const { namespaces } = options
90
99
  if (!isEnabled(namespaces)) {
91
100
  return
92
101
  }
93
- if (options === undefined) {
102
+ if (inspectOpts === undefined) {
94
103
  const debugJs = getDebugJs()
95
- options = debugJs.inspectOpts
104
+ inspectOpts = debugJs.inspectOpts
96
105
  }
106
+ const { spinner = /*@__PURE__*/ require('./constants/spinner') } = options
107
+ const { isSpinning: wasSpinning } = spinner
108
+ spinner.stop()
97
109
  const { logger } = /*@__PURE__*/ require('./logger')
98
- logger.dir(obj, options)
110
+ logger.dir(obj, inspectOpts)
111
+ if (wasSpinning) {
112
+ spinner.start()
113
+ }
99
114
  }
100
115
 
101
116
  let pointingTriangle
102
117
  /*@__NO_SIDE_EFFECTS__*/
103
- function debugFn(namespaces, ...args) {
118
+ function debugFn(namespacesOrOpts, ...args) {
119
+ const options = extractOptions(namespacesOrOpts)
120
+ const { namespaces } = options
104
121
  if (!isEnabled(namespaces)) {
105
122
  return
106
123
  }
@@ -153,16 +170,30 @@ function debugFn(namespaces, ...args) {
153
170
  ...args.slice(1)
154
171
  ]
155
172
  : args
173
+ const { spinner = /*@__PURE__*/ require('./constants/spinner') } = options
174
+ const { isSpinning: wasSpinning } = spinner
175
+ spinner.stop()
156
176
  const { logger } = /*@__PURE__*/ require('./logger')
157
177
  ReflectApply(logger.info, logger, logArgs)
178
+ if (wasSpinning) {
179
+ spinner.start()
180
+ }
158
181
  }
159
182
 
160
183
  /*@__NO_SIDE_EFFECTS__*/
161
- function debugLog(namespaces, ...args) {
184
+ function debugLog(namespacesOrOpts, ...args) {
185
+ const options = extractOptions(namespacesOrOpts)
186
+ const { namespaces } = options
162
187
  if (!isEnabled(namespaces)) {
163
188
  return
164
189
  }
190
+ const { spinner = /*@__PURE__*/ require('./constants/spinner') } = options
191
+ const { isSpinning: wasSpinning } = spinner
192
+ spinner.stop()
165
193
  ReflectApply(customLog, undefined, args)
194
+ if (wasSpinning) {
195
+ spinner.start()
196
+ }
166
197
  }
167
198
 
168
199
  /*@__NO_SIDE_EFFECTS__*/
@@ -38,16 +38,17 @@ function Spinner(options) {
38
38
  extras = args
39
39
  text = ''
40
40
  }
41
+ const trimmed = text.trimStart()
41
42
  const { isSpinning: wasSpinning } = this
42
- super[methodName](text)
43
+ super[methodName](trimmed)
43
44
  const {
44
45
  incLogCallCountSymbol,
45
46
  lastWasBlankSymbol,
46
47
  logger
47
48
  } = /*@__PURE__*/ require('./logger')
48
49
  if (methodName === 'stop') {
49
- if (wasSpinning && text) {
50
- logger[lastWasBlankSymbol](isBlankString(text))
50
+ if (wasSpinning && trimmed) {
51
+ logger[lastWasBlankSymbol](isBlankString(trimmed))
51
52
  logger[incLogCallCountSymbol]()
52
53
  }
53
54
  } else {
@@ -62,14 +63,23 @@ function Spinner(options) {
62
63
  }
63
64
 
64
65
  #applyAndKeepSpinning(methodName, args) {
65
- const { isSpinning } = this
66
+ const { isSpinning: wasSpinning } = this
66
67
  this.#apply(methodName, args)
67
- if (isSpinning) {
68
+ if (wasSpinning) {
68
69
  this.start()
69
70
  }
70
71
  return this
71
72
  }
72
73
 
74
+ get text() {
75
+ return super.text
76
+ }
77
+
78
+ set text(value) {
79
+ const trimmed = typeof value === 'string' ? value.trimStart() : ''
80
+ super.text = trimmed
81
+ }
82
+
73
83
  debug(...args) {
74
84
  const { isDebug } = /*@__PURE__*/ require('./debug')
75
85
  if (isDebug()) {
@@ -115,15 +125,17 @@ function Spinner(options) {
115
125
  }
116
126
 
117
127
  setText(text) {
118
- this.text = text ?? ''
128
+ const trimmed = typeof text === 'string' ? text.trimStart() : ''
129
+ this.text = trimmed
119
130
  return this
120
131
  }
121
132
 
122
133
  start(...args) {
123
134
  const text = args.at(0)
135
+ const trimmed = typeof text === 'string' ? text.trimStart() : ''
124
136
  // We clear this.text on start when `text` is falsy because yocto-spinner
125
137
  // would not clear it otherwise.
126
- if (typeof text !== 'string' || !text) {
138
+ if (typeof text !== 'string' || !trimmed) {
127
139
  this.setText('')
128
140
  }
129
141
  return this.#apply('start', args)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
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",
@@ -86,7 +86,7 @@
86
86
  "@babel/runtime": "7.27.6",
87
87
  "@biomejs/biome": "2.1.1",
88
88
  "@coana-tech/cli": "14.10.3",
89
- "@cyclonedx/cdxgen": "11.4.3",
89
+ "@cyclonedx/cdxgen": "11.4.4",
90
90
  "@dotenvx/dotenvx": "1.47.6",
91
91
  "@eslint/compat": "1.3.1",
92
92
  "@eslint/js": "9.31.0",
@@ -112,14 +112,14 @@
112
112
  "@socketregistry/is-interactive": "1.0.6",
113
113
  "@socketregistry/packageurl-js": "1.0.8",
114
114
  "@socketsecurity/config": "3.0.1",
115
- "@socketsecurity/registry": "1.0.234",
116
- "@socketsecurity/sdk": "1.4.54",
115
+ "@socketsecurity/registry": "1.0.238",
116
+ "@socketsecurity/sdk": "1.4.55",
117
117
  "@types/blessed": "0.1.25",
118
118
  "@types/cmd-shim": "5.0.2",
119
119
  "@types/js-yaml": "4.0.9",
120
120
  "@types/micromatch": "4.0.9",
121
121
  "@types/mock-fs": "4.13.4",
122
- "@types/node": "24.0.13",
122
+ "@types/node": "24.0.14",
123
123
  "@types/npmcli__arborist": "6.3.1",
124
124
  "@types/npmcli__config": "6.0.3",
125
125
  "@types/proc-log": "3.0.4",
@@ -127,7 +127,7 @@
127
127
  "@types/which": "3.0.4",
128
128
  "@types/yargs-parser": "21.0.3",
129
129
  "@typescript-eslint/parser": "8.37.0",
130
- "@typescript/native-preview": "7.0.0-dev.20250712.1",
130
+ "@typescript/native-preview": "7.0.0-dev.20250715.1",
131
131
  "@vitest/coverage-v8": "3.2.4",
132
132
  "blessed": "0.1.81",
133
133
  "blessed-contrib": "4.11.0",
@@ -162,7 +162,7 @@
162
162
  "pony-cause": "2.1.11",
163
163
  "registry-auth-token": "5.1.0",
164
164
  "registry-url": "7.2.0",
165
- "rollup": "4.45.0",
165
+ "rollup": "4.45.1",
166
166
  "semver": "7.7.2",
167
167
  "synp": "1.9.14",
168
168
  "terminal-link": "2.1.1",
@@ -239,6 +239,6 @@
239
239
  "strict": true
240
240
  },
241
241
  "dependencies": {
242
- "@sentry/node": "9.38.0"
242
+ "@sentry/node": "9.39.0"
243
243
  }
244
244
  }