@socketsecurity/cli-with-sentry 0.15.8 → 0.15.10

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.
@@ -42,6 +42,7 @@ declare namespace LoggerModule {
42
42
  indent(spaces?: number | undefined): Logger
43
43
  info: LoggerMethods['info']
44
44
  log: LoggerMethods['log']
45
+ logCallCount: number
45
46
  profile: LoggerMethods['profile']
46
47
  profileEnd: LoggerMethods['profileEnd']
47
48
  resetIndent(): Logger
@@ -80,6 +80,7 @@ class Logger {
80
80
  static LOG_SYMBOLS = LOG_SYMBOLS
81
81
 
82
82
  #indention = ''
83
+ #logCallCount = 0
83
84
 
84
85
  constructor(...args) {
85
86
  if (args.length) {
@@ -119,11 +120,13 @@ class Logger {
119
120
  if (typeof text === 'string') {
120
121
  extras = args.slice(1)
121
122
  console[methodName](`${this.#indention}${text}`)
123
+ this.#logCallCount += 1
122
124
  } else {
123
125
  extras = args
124
126
  }
125
127
  if (extras.length) {
126
128
  console[methodName](...extras)
129
+ this.#logCallCount += 1
127
130
  }
128
131
  return this
129
132
  }
@@ -140,12 +143,18 @@ class Logger {
140
143
  const methodName = symbolTypeToMethodName[symbolType]
141
144
  const console = privateConsole.get(this)
142
145
  console[methodName](`${this.#indention}${LOG_SYMBOLS[symbolType]} ${text}`)
146
+ this.#logCallCount += 1
143
147
  if (extras.length) {
144
148
  console[methodName](...extras)
149
+ this.#logCallCount += 1
145
150
  }
146
151
  return this
147
152
  }
148
153
 
154
+ get logCallCount() {
155
+ return this.#logCallCount
156
+ }
157
+
149
158
  dedent(spaces = 2) {
150
159
  this.#indention = this.#indention.slice(0, -spaces)
151
160
  return this
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/registry",
3
- "version": "1.0.182",
3
+ "version": "1.0.184",
4
4
  "license": "MIT",
5
5
  "description": "Socket.dev registry helpers methods and metadata",
6
6
  "keywords": [
@@ -645,7 +645,7 @@
645
645
  "oxlint": "0.16.11",
646
646
  "pacote": "21.0.0",
647
647
  "picomatch": "4.0.2",
648
- "rollup": "4.40.2",
648
+ "rollup": "4.41.0",
649
649
  "semver": "7.7.2",
650
650
  "signal-exit": "4.1.0",
651
651
  "spdx-correct": "3.2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "0.15.8",
3
+ "version": "0.15.10",
4
4
  "description": "CLI tool 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",
@@ -108,8 +108,8 @@
108
108
  "@socketregistry/is-interactive": "1.0.5",
109
109
  "@socketregistry/packageurl-js": "1.0.6",
110
110
  "@socketsecurity/config": "2.1.3",
111
- "@socketsecurity/registry": "1.0.182",
112
- "@socketsecurity/sdk": "1.4.35",
111
+ "@socketsecurity/registry": "1.0.184",
112
+ "@socketsecurity/sdk": "1.4.36",
113
113
  "@types/blessed": "0.1.25",
114
114
  "@types/cmd-shim": "5.0.2",
115
115
  "@types/js-yaml": "4.0.9",
@@ -132,8 +132,8 @@
132
132
  "del-cli": "6.0.0",
133
133
  "dev-null-cli": "2.0.0",
134
134
  "eslint": "9.27.0",
135
- "eslint-import-resolver-typescript": "4.3.4",
136
- "eslint-plugin-import-x": "4.12.1",
135
+ "eslint-import-resolver-typescript": "4.3.5",
136
+ "eslint-plugin-import-x": "4.12.2",
137
137
  "eslint-plugin-n": "17.18.0",
138
138
  "eslint-plugin-sort-destructure-keys": "2.0.0",
139
139
  "eslint-plugin-unicorn": "56.0.1",