@babel/helper-plugin-utils
Advanced tools
Comparing version 7.22.5 to 7.24.0
@@ -36,4 +36,3 @@ "use strict"; | ||
} | ||
const declarePreset = declare; | ||
exports.declarePreset = declarePreset; | ||
const declarePreset = exports.declarePreset = declare; | ||
function copyApiObject(api) { | ||
@@ -43,3 +42,3 @@ let proto = null; | ||
proto = Object.getPrototypeOf(api); | ||
if (proto && (!has(proto, "version") || !has(proto, "transform") || !has(proto, "template") || !has(proto, "types"))) { | ||
if (proto && (!hasOwnProperty.call(proto, "version") || !hasOwnProperty.call(proto, "transform") || !hasOwnProperty.call(proto, "template") || !hasOwnProperty.call(proto, "types"))) { | ||
proto = null; | ||
@@ -50,5 +49,2 @@ } | ||
} | ||
function has(obj, key) { | ||
return Object.prototype.hasOwnProperty.call(obj, key); | ||
} | ||
function throwVersionError(range, version) { | ||
@@ -55,0 +51,0 @@ if (typeof range === "number") { |
{ | ||
"name": "@babel/helper-plugin-utils", | ||
"version": "7.22.5", | ||
"version": "7.24.0", | ||
"description": "General utilities for plugins to use", | ||
@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)", |
@@ -5,3 +5,3 @@ # @babel/helper-plugin-utils | ||
See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/en/babel-helper-plugin-utils) for more information. | ||
See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/babel-helper-plugin-utils) for more information. | ||
@@ -8,0 +8,0 @@ ## Install |
Sorry, the diff of this file is not supported yet
11682
76