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

acorn-hammerhead

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-hammerhead - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

32

lib/index.js

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

const version = exports.version = "8.1.0"; // Acorn is a tiny, fast JavaScript parser written in JavaScript.
var _util = require("./util");
var utils = _interopRequireWildcard(_util);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
//

@@ -56,2 +62,3 @@ // Acorn was written by Marijn Haverbeke, Ingvar Stepanyan, and

const version = exports.version = "8.1.0";
exports.Parser = _state.Parser;

@@ -122,2 +129,23 @@ exports.defaultOptions = _options.defaultOptions;

return _state.Parser.tokenizer(input, options);
}
}
// =============================================================================
// =============================================================================
// ===================== TestCafe performance patch ============================
// =====================||||||||||||||||||||||||||||============================
// =====================vvvvvvvvvvvvvvvvvvvvvvvvvvvv============================
const storedWordsRegexp = utils.wordsRegexp;
const wordsRegexpCache = {};
utils.wordsRegexp = function (words) {
if (!wordsRegexpCache[words]) wordsRegexpCache[words] = storedWordsRegexp(words);
return wordsRegexpCache[words];
};
// =====================^^^^^^^^^^^^^^^^^^^^^^^^^^^^============================
// =====================||||||||||||||||||||||||||||============================
// ===================== TestCafe performance patch ============================
// =============================================================================
// =============================================================================

2

package.json
{
"name": "acorn-hammerhead",
"version": "0.4.0",
"version": "0.5.0",
"description": "",

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

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