acorn-hammerhead
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -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 ============================ | ||
// ============================================================================= | ||
// ============================================================================= |
{ | ||
"name": "acorn-hammerhead", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
213691
4813