Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dxos/debug

Package Overview
Dependencies
Maintainers
5
Versions
3079
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/debug - npm Package Compare versions

Comparing version 1.0.0-beta.16 to 1.0.0-beta.18

dist/es/console.js

4

babel.config.js

@@ -0,1 +1,5 @@

//
// Copyright 2019 Wireline, Inc.
//
module.exports = {

@@ -2,0 +6,0 @@ presets: [

20

dist/es/index.js

@@ -7,5 +7,5 @@ "use strict";

var _errors = require("./errors");
var _console = require("./console");
Object.keys(_errors).forEach(function (key) {
Object.keys(_console).forEach(function (key) {
if (key === "default" || key === "__esModule") return;

@@ -15,3 +15,3 @@ Object.defineProperty(exports, key, {

get: function get() {
return _errors[key];
return _console[key];
}

@@ -21,2 +21,14 @@ });

var _errorHandler = require("./error-handler");
Object.keys(_errorHandler).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _errorHandler[key];
}
});
});
var _logging = require("./logging");

@@ -45,2 +57,2 @@

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFJQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQ0E7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUNBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSIsInNvdXJjZXNDb250ZW50IjpbIi8vXG4vLyBDb3B5cmlnaHQgMjAxOSBXaXJlbGluZSwgSW5jLlxuLy9cblxuZXhwb3J0ICogZnJvbSAnLi9lcnJvcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9sb2dnaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vdXRpbCc7XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFJQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQ0E7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUNBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEiLCJzb3VyY2VzQ29udGVudCI6WyIvL1xuLy8gQ29weXJpZ2h0IDIwMTkgV2lyZWxpbmUsIEluYy5cbi8vXG5cbmV4cG9ydCAqIGZyb20gJy4vY29uc29sZSc7XG5leHBvcnQgKiBmcm9tICcuL2Vycm9yLWhhbmRsZXInO1xuZXhwb3J0ICogZnJvbSAnLi9sb2dnaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vdXRpbCc7XG4iXX0=

@@ -15,9 +15,6 @@ "use strict";

var _stacktracey = _interopRequireDefault(require("stacktracey"));
//
// Copyright 2020 Wireline, Inc.
//
// TODO(burdon): Node dep on fs.
_debug["default"].log = console.log.bind(console); // TODO(burdon): Utils to standardize error logging, exceptions, etc.
_debug["default"].log = console.log.bind(console);

@@ -74,7 +71,8 @@ var log = function log() {

_error("".concat(_name, ": ").concat(message)); // TODO(burdon): With sources?
_error("".concat(_name, ": ").concat(message)); // TODO(burdon): source-map support?
// https://www.npmjs.com/package/stacktracey
// https://www.npmjs.com/package/source-map-support
console.error(new _stacktracey["default"](err).pretty);
console.error(err);
} else {

@@ -90,2 +88,2 @@ for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dnaW5nLmpzIl0sIm5hbWVzIjpbImRlYnVnIiwibG9nIiwiY29uc29sZSIsImJpbmQiLCJhcmdzIiwibWFwIiwiYXJnIiwidG9TdHJpbmciLCJqb2luIiwibG9nRXJyb3IiLCJzdHIiLCJtZXNzYWdlIiwicmVwbGFjZSIsIkVycm9yIiwiU3RyaW5nIiwiSlNPTiIsInN0cmluZ2lmeSIsImVycm9yIiwibG9ncyIsIm5hbWUiLCJlcnIiLCJTdGFja1RyYWNleSIsInByZXR0eSIsInJlc3QiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUlBOztBQUdBOztBQVBBO0FBQ0E7QUFDQTtBQUlBO0FBR0FBLGtCQUFNQyxHQUFOLEdBQVlDLE9BQU8sQ0FBQ0QsR0FBUixDQUFZRSxJQUFaLENBQWlCRCxPQUFqQixDQUFaLEMsQ0FFQTs7QUFFTyxJQUFNRCxHQUFHLEdBQUcsU0FBTkEsR0FBTSxHQUFhO0FBQUEsb0NBQVRHLElBQVM7QUFBVEEsSUFBQUEsSUFBUztBQUFBOztBQUM5QkYsRUFBQUEsT0FBTyxDQUFDRCxHQUFSLENBQVlHLElBQUksQ0FBQ0MsR0FBTCxDQUFTLFVBQUFDLEdBQUc7QUFBQSxXQUFJQSxHQUFHLENBQUNDLFFBQUosRUFBSjtBQUFBLEdBQVosRUFBZ0NDLElBQWhDLENBQXFDLEdBQXJDLENBQVo7QUFDRCxDQUZNOzs7O0FBSUEsSUFBTUMsUUFBUSxHQUFHLFNBQVhBLFFBQVcsQ0FBQUMsR0FBRyxFQUFJO0FBQzdCLE1BQUksT0FBT0Es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Bsb2csXG5cbiAgICBlcnJvcjogKGVyciwgLi4ucmVzdCkgPT4ge1xuICAgICAgaWYgKGVyciBpbnN0YW5jZW9mIEVycm9yKSB7XG4gICAgICAgIGNvbnN0IHsgbmFtZSwgbWVzc2FnZSB9ID0gZXJyO1xuICAgICAgICBlcnJvcihgJHtuYW1lfTogJHttZXNzYWdlfWApO1xuXG4gICAgICAgIC8vIFRPRE8oYnVyZG9uKTogc291cmNlLW1hcCBzdXBwb3J0P1xuICAgICAgICAvLyBodHRwczovL3d3dy5ucG1qcy5jb20vcGFja2FnZS9zdGFja3RyYWNleVxuICAgICAgICAvLyBodHRwczovL3d3dy5ucG1qcy5jb20vcGFja2FnZS9zb3VyY2UtbWFwLXN1cHBvcnRcbiAgICAgICAgY29uc29sZS5lcnJvcihlcnIpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgZXJyb3IoZXJyLCAuLi5yZXN0KTtcbiAgICAgIH1cbiAgICB9XG4gIH07XG59XG4iXX0=
{
"name": "@dxos/debug",
"version": "1.0.0-beta.16",
"version": "1.0.0-beta.18",
"description": "Debug utilities",

@@ -18,4 +18,3 @@ "main": "dist/es/index.js",

"dependencies": {
"debug": "^4.1.1",
"stacktracey": "^1.2.122"
"debug": "^4.1.1"
},

@@ -29,9 +28,10 @@ "devDependencies": {

"@babel/preset-env": "^7.0.0",
"babel-jest": "^25.1.0",
"babel-loader": "^8.0.0",
"babel-plugin-add-module-exports": "^1.0.0"
"babel-plugin-add-module-exports": "^1.0.0",
"jest": "^25.1.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "45a8948ad22a908d6b5755db69ce959f248b1dc0"
}
}

@@ -5,4 +5,5 @@ //

export * from './errors';
export * from './console';
export * from './error-handler';
export * from './logging';
export * from './util';

@@ -7,9 +7,4 @@ //

// TODO(burdon): Node dep on fs.
import StackTracey from 'stacktracey';
debug.log = console.log.bind(console);
// TODO(burdon): Utils to standardize error logging, exceptions, etc.
export const log = (...args) => {

@@ -53,8 +48,8 @@ console.log(args.map(arg => arg.toString()).join(' '));

const { name, message } = err;
error(`${name}: ${message}`);
// TODO(burdon): With sources?
// TODO(burdon): source-map support?
// https://www.npmjs.com/package/stacktracey
console.error(new StackTracey(err).pretty);
// https://www.npmjs.com/package/source-map-support
console.error(err);
} else {

@@ -61,0 +56,0 @@ error(err, ...rest);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc