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

@scalecube/utils

Package Overview
Dependencies
Maintainers
7
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalecube/utils - npm Package Compare versions

Comparing version 0.0.2-snapshot.1564392337.5 to 0.0.2-snapshot.1564563590.1

11

es/index.js

@@ -143,3 +143,3 @@ var assert = function (predicate, msg) {

if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
console.warn("Don't use this on webworkers, only on the main thread");
console.error("Don't use this on webworkers, only on the main thread");
}

@@ -202,3 +202,4 @@ else {

};
var saveToLogs = function (identifier, msg, extra, debug) {
var saveToLogs = function (identifier, msg, extra, debug, type) {
if (type === void 0) { type = 'log'; }
if (!colorsMap[identifier]) {

@@ -210,7 +211,7 @@ colorsMap[identifier] = getRandomColor();

var logColor = "color:" + colorsMap[identifier];
extra && console.log("%c******** address: " + identifier + "********", logColor);
console.log(msg);
extra && console[type]("%c******** address: " + identifier + "********", logColor);
console[type](msg);
extra &&
Object.keys(extra).forEach(function (key) {
console.log(key + ": " + JSON.stringify(extra[key], null, 2));
console[type](key + ": " + JSON.stringify(extra[key], null, 2));
});

@@ -217,0 +218,0 @@ }

export declare const saveToLogs: (identifier: string, msg: string, extra: {
[key: string]: any;
}, debug?: boolean | undefined) => void;
}, debug?: boolean | undefined, type?: "log" | "warn") => void;

@@ -147,3 +147,3 @@ 'use strict';

if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
console.warn("Don't use this on webworkers, only on the main thread");
console.error("Don't use this on webworkers, only on the main thread");
}

@@ -206,3 +206,4 @@ else {

};
var saveToLogs = function (identifier, msg, extra, debug) {
var saveToLogs = function (identifier, msg, extra, debug, type) {
if (type === void 0) { type = 'log'; }
if (!colorsMap[identifier]) {

@@ -214,7 +215,7 @@ colorsMap[identifier] = getRandomColor();

var logColor = "color:" + colorsMap[identifier];
extra && console.log("%c******** address: " + identifier + "********", logColor);
console.log(msg);
extra && console[type]("%c******** address: " + identifier + "********", logColor);
console[type](msg);
extra &&
Object.keys(extra).forEach(function (key) {
console.log(key + ": " + JSON.stringify(extra[key], null, 2));
console[type](key + ": " + JSON.stringify(extra[key], null, 2));
});

@@ -221,0 +222,0 @@ }

export declare const saveToLogs: (identifier: string, msg: string, extra: {
[key: string]: any;
}, debug?: boolean | undefined) => void;
}, debug?: boolean | undefined, type?: "log" | "warn") => void;
{
"name": "@scalecube/utils",
"version": "0.0.2-snapshot.1564392337.5+ecae863",
"version": "0.0.2-snapshot.1564563590.1+12a37ca",
"private": false,

@@ -38,5 +38,5 @@ "main": "lib/index.js",

"dependencies": {
"@scalecube/api": "^0.0.2-alpha.8"
"@scalecube/api": "^0.0.2-alpha.9"
},
"gitHead": "ecae863d396824245632a0addb2c087511b223fd"
"gitHead": "12a37cac94326fff47b03060f1fc7905ad5a7bee"
}
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