@chevrotain/utils
Advanced tools
Comparing version 10.2.0 to 10.3.0
@@ -7,3 +7,3 @@ "use strict"; | ||
if (console && console.error) { | ||
console.error(`Error: ${msg}`); | ||
console.error("Error: ".concat(msg)); | ||
} | ||
@@ -16,3 +16,3 @@ } | ||
// TODO: modify docs accordingly | ||
console.warn(`Warning: ${msg}`); | ||
console.warn("Warning: ".concat(msg)); | ||
} | ||
@@ -19,0 +19,0 @@ } |
@@ -5,6 +5,6 @@ "use strict"; | ||
function timer(func) { | ||
const start = new Date().getTime(); | ||
const val = func(); | ||
const end = new Date().getTime(); | ||
const total = end - start; | ||
var start = new Date().getTime(); | ||
var val = func(); | ||
var end = new Date().getTime(); | ||
var total = end - start; | ||
return { time: total, value: val }; | ||
@@ -11,0 +11,0 @@ } |
@@ -9,3 +9,3 @@ "use strict"; | ||
FakeConstructor.prototype = toBecomeFast; | ||
const fakeInstance = new FakeConstructor(); | ||
var fakeInstance = new FakeConstructor(); | ||
function fakeAccess() { | ||
@@ -12,0 +12,0 @@ return typeof fakeInstance.bar; |
{ | ||
"name": "@chevrotain/utils", | ||
"version": "10.2.0", | ||
"version": "10.3.0", | ||
"description": "common utilities", | ||
@@ -41,3 +41,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "f9c92d8ec45c9236abb53091380682d4b32f8207" | ||
"gitHead": "5ca7d276f475839c815a2686f38e2814371935c9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19000