@babel/helper-plugin-utils
Advanced tools
Comparing version 8.0.0-alpha.6 to 8.0.0-alpha.7
@@ -22,3 +22,3 @@ const apiPolyfills = { | ||
proto = Object.getPrototypeOf(api); | ||
if (proto && (!has(proto, "version") || !has(proto, "transform") || !has(proto, "template") || !has(proto, "types"))) { | ||
if (proto && (!Object.hasOwn(proto, "version") || !Object.hasOwn(proto, "transform") || !Object.hasOwn(proto, "template") || !Object.hasOwn(proto, "types"))) { | ||
proto = null; | ||
@@ -29,5 +29,2 @@ } | ||
} | ||
function has(obj, key) { | ||
return Object.prototype.hasOwnProperty.call(obj, key); | ||
} | ||
function throwVersionError(range, version) { | ||
@@ -34,0 +31,0 @@ if (typeof range === "number") { |
{ | ||
"name": "@babel/helper-plugin-utils", | ||
"version": "8.0.0-alpha.6", | ||
"version": "8.0.0-alpha.7", | ||
"description": "General utilities for plugins to use", | ||
@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)", |
Sorry, the diff of this file is not supported yet
11382
59