acorn-import-assertions
Advanced tools
Comparing version 1.7.4 to 1.7.5
@@ -8,8 +8,10 @@ "use strict"; | ||
var _acorn2 = _interopRequireDefault(require("acorn")); | ||
var _acorn = _interopRequireWildcard(require("acorn")); | ||
var _charcodes = require("charcodes"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
const keyword = "assert"; | ||
@@ -26,3 +28,3 @@ const FUNC_STATEMENT = 1, | ||
// the package manager. | ||
const acorn = Parser.acorn || _acorn2.default; | ||
const acorn = Parser.acorn || _acorn; | ||
const { | ||
@@ -29,0 +31,0 @@ tokTypes: tt, |
{ | ||
"name": "acorn-import-assertions", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"description": "Support for import assertions in acorn", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
25946
651