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

@chevrotain/utils

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chevrotain/utils - npm Package Compare versions

Comparing version 10.1.2 to 10.2.0

4

lib/src/print.js

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

if (console && console.error) {
console.error("Error: ".concat(msg));
console.error(`Error: ${msg}`);
}

@@ -16,3 +16,3 @@ }

// TODO: modify docs accordingly
console.warn("Warning: ".concat(msg));
console.warn(`Warning: ${msg}`);
}

@@ -19,0 +19,0 @@ }

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

function timer(func) {
var start = new Date().getTime();
var val = func();
var end = new Date().getTime();
var total = end - start;
const start = new Date().getTime();
const val = func();
const end = new Date().getTime();
const total = end - start;
return { time: total, value: val };

@@ -11,0 +11,0 @@ }

@@ -9,3 +9,3 @@ "use strict";

FakeConstructor.prototype = toBecomeFast;
var fakeInstance = new FakeConstructor();
const fakeInstance = new FakeConstructor();
function fakeAccess() {

@@ -18,3 +18,6 @@ return typeof fakeInstance.bar;

fakeAccess();
return toBecomeFast;
// Always true condition to suppress the Firefox warning of unreachable
// code after a return statement.
if (1)
return toBecomeFast;
// Eval prevents optimization of this method (even though this is dead code)

@@ -21,0 +24,0 @@ /* istanbul ignore next */

{
"name": "@chevrotain/utils",
"version": "10.1.2",
"version": "10.2.0",
"description": "common utilities",

@@ -29,2 +29,3 @@ "keywords": [],

"---------- CI FLOWS --------": "",
"ci": "npm-run-all build test",
"build": "npm-run-all clean compile",

@@ -41,3 +42,3 @@ "test": "npm-run-all coverage",

},
"gitHead": "a9669e27213c0cac9ce59d890d331dc27f20190d"
"gitHead": "f9c92d8ec45c9236abb53091380682d4b32f8207"
}

@@ -18,3 +18,6 @@ // based on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216

return toBecomeFast
// Always true condition to suppress the Firefox warning of unreachable
// code after a return statement.
if (1) return toBecomeFast
// Eval prevents optimization of this method (even though this is dead code)

@@ -21,0 +24,0 @@ /* istanbul ignore next */

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

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