smipper 25.0.0 → 27.0.0

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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -168,7 +168,9 @@ function load(path) {
168
168
  case 0: return [4 /*yield*/, got.get(path, { timeout: 10000 })];
169
169
  case 1:
170
170
  response = _a.sent();
171
- console.log(response.headers);
171
+ if (verbose) {
172
+ console.error(response.headers);
173
+ }
172
174
  return [2 /*return*/, response.body || ""];
173
175
  }
174
176
  });
@@ -185,7 +187,7 @@ function loadUri(path) {
185
187
  }
186
188
  return new Promise(function (resolve, reject) {
187
189
  if (verbose) {
188
- console.log("loading", path);
190
+ console.error("loading", path);
189
191
  }
190
192
  if (!(path in sourceMaps)) {
191
193
  sourceMaps[path] = {
@@ -264,7 +266,7 @@ function loadUri(path) {
264
266
  }
265
267
  function processFrame(functionName, url, line, column) {
266
268
  if (verbose) {
267
- console.log("got frame", functionName, url, line, column);
269
+ console.error("got frame", functionName, url, line, column);
268
270
  }
269
271
  if (functionName.endsWith("@")) {
270
272
  functionName = functionName.substring(0, functionName.length - 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smipper",
3
- "version": "25.0.0",
3
+ "version": "27.0.0",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "bin": {