@babel/helpers
Advanced tools
Comparing version 7.24.7 to 7.24.8
@@ -22,7 +22,7 @@ "use strict"; | ||
desc.value = desc.initializer ? desc.initializer.call(context) : void 0; | ||
desc.initializer = undefined; | ||
desc.initializer = void 0; | ||
} | ||
if (desc.initializer === void 0) { | ||
Object.defineProperty(target, property, desc); | ||
desc = null; | ||
return null; | ||
} | ||
@@ -29,0 +29,0 @@ return desc; |
@@ -51,3 +51,5 @@ "use strict"; | ||
var thr = this.s.return; | ||
if (thr === undefined) return Promise.reject(maybeError); | ||
if (thr === undefined) { | ||
return Promise.reject(maybeError); | ||
} | ||
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); | ||
@@ -54,0 +56,0 @@ } |
@@ -7,10 +7,10 @@ "use strict"; | ||
exports.default = _callSuper; | ||
var _getPrototypeOf = require("getPrototypeOf"); | ||
var _getPrototypeOf = require("./getPrototypeOf.js"); | ||
var _isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); | ||
var _possibleConstructorReturn = require("possibleConstructorReturn"); | ||
var _possibleConstructorReturn = require("./possibleConstructorReturn.js"); | ||
function _callSuper(_this, derived, args) { | ||
derived = _getPrototypeOf(derived); | ||
return _possibleConstructorReturn(_this, (0, _isNativeReflectConstruct.default)() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args)); | ||
derived = (0, _getPrototypeOf.default)(derived); | ||
return (0, _possibleConstructorReturn.default)(_this, (0, _isNativeReflectConstruct.default)() ? Reflect.construct(derived, args || [], (0, _getPrototypeOf.default)(_this).constructor) : derived.apply(_this, args)); | ||
} | ||
//# sourceMappingURL=callSuper.js.map |
@@ -7,7 +7,7 @@ "use strict"; | ||
exports.default = _createForOfIteratorHelper; | ||
var _unsupportedIterableToArray = require("unsupportedIterableToArray"); | ||
var _unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelper(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (!it) { | ||
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (Array.isArray(o) || (it = (0, _unsupportedIterableToArray.default)(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) o = it; | ||
@@ -19,5 +19,7 @@ var i = 0; | ||
n: function () { | ||
if (i >= o.length) return { | ||
done: true | ||
}; | ||
if (i >= o.length) { | ||
return { | ||
done: true | ||
}; | ||
} | ||
return { | ||
@@ -54,3 +56,5 @@ done: false, | ||
try { | ||
if (!normalCompletion && it.return != null) it.return(); | ||
if (!normalCompletion && it.return != null) { | ||
it.return(); | ||
} | ||
} finally { | ||
@@ -57,0 +61,0 @@ if (didErr) throw err; |
@@ -7,13 +7,15 @@ "use strict"; | ||
exports.default = _createForOfIteratorHelperLoose; | ||
var _unsupportedIterableToArray = require("unsupportedIterableToArray"); | ||
var _unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (it) return (it = it.call(o)).next.bind(it); | ||
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (Array.isArray(o) || (it = (0, _unsupportedIterableToArray.default)(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) o = it; | ||
var i = 0; | ||
return function () { | ||
if (i >= o.length) return { | ||
done: true | ||
}; | ||
if (i >= o.length) { | ||
return { | ||
done: true | ||
}; | ||
} | ||
return { | ||
@@ -20,0 +22,0 @@ done: false, |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.default = _inherits; | ||
var _setPrototypeOf = require("setPrototypeOf"); | ||
var _setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inherits(subClass, superClass) { | ||
@@ -23,5 +23,5 @@ if (typeof superClass !== "function" && superClass !== null) { | ||
}); | ||
if (superClass) _setPrototypeOf(subClass, superClass); | ||
if (superClass) (0, _setPrototypeOf.default)(subClass, superClass); | ||
} | ||
//# sourceMappingURL=inherits.js.map |
@@ -7,9 +7,9 @@ "use strict"; | ||
exports.default = _inheritsLoose; | ||
var _setPrototypeOf = require("setPrototypeOf"); | ||
var _setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
_setPrototypeOf(subClass, superClass); | ||
(0, _setPrototypeOf.default)(subClass, superClass); | ||
} | ||
//# sourceMappingURL=inheritsLoose.js.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
return Function.toString.call(fn).indexOf("[native code]") !== -1; | ||
} catch (e) { | ||
} catch (_e) { | ||
return typeof fn === "function"; | ||
@@ -13,0 +13,0 @@ } |
@@ -10,3 +10,3 @@ "use strict"; | ||
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
} catch (e) {} | ||
} catch (_) {} | ||
return (exports.default = _isNativeReflectConstruct = function () { | ||
@@ -13,0 +13,0 @@ return !!result; |
@@ -16,3 +16,3 @@ "use strict"; | ||
key = sourceSymbolKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (excluded.includes(key)) continue; | ||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
@@ -19,0 +19,0 @@ target[key] = source[key]; |
@@ -12,3 +12,3 @@ "use strict"; | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (excluded.includes(key)) continue; | ||
target[key] = source[key]; | ||
@@ -15,0 +15,0 @@ } |
@@ -7,10 +7,10 @@ "use strict"; | ||
exports.default = _wrapNativeSuper; | ||
var _getPrototypeOf = require("getPrototypeOf"); | ||
var _setPrototypeOf = require("setPrototypeOf"); | ||
var _isNativeFunction = require("isNativeFunction"); | ||
var _construct = require("construct"); | ||
var _getPrototypeOf = require("./getPrototypeOf.js"); | ||
var _setPrototypeOf = require("./setPrototypeOf.js"); | ||
var _isNativeFunction = require("./isNativeFunction.js"); | ||
var _construct = require("./construct.js"); | ||
function _wrapNativeSuper(Class) { | ||
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
exports.default = _wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (Class === null || !_isNativeFunction(Class)) return Class; | ||
if (Class === null || !(0, _isNativeFunction.default)(Class)) return Class; | ||
if (typeof Class !== "function") { | ||
@@ -24,3 +24,3 @@ throw new TypeError("Super expression must either be null or a function"); | ||
function Wrapper() { | ||
return _construct(Class, arguments, _getPrototypeOf(this).constructor); | ||
return (0, _construct.default)(Class, arguments, (0, _getPrototypeOf.default)(this).constructor); | ||
} | ||
@@ -35,3 +35,3 @@ Wrapper.prototype = Object.create(Class.prototype, { | ||
}); | ||
return _setPrototypeOf(Wrapper, Class); | ||
return (0, _setPrototypeOf.default)(Wrapper, Class); | ||
}; | ||
@@ -38,0 +38,0 @@ return _wrapNativeSuper(Class); |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.default = _wrapRegExp; | ||
var _setPrototypeOf = require("setPrototypeOf"); | ||
var _inherits = require("inherits"); | ||
var _setPrototypeOf = require("./setPrototypeOf.js"); | ||
var _inherits = require("./inherits.js"); | ||
function _wrapRegExp() { | ||
@@ -19,5 +19,5 @@ exports.default = _wrapRegExp = function (re, groups) { | ||
_groups.set(_this, groups || _groups.get(re)); | ||
return _setPrototypeOf(_this, BabelRegExp.prototype); | ||
return (0, _setPrototypeOf.default)(_this, BabelRegExp.prototype); | ||
} | ||
_inherits(BabelRegExp, RegExp); | ||
(0, _inherits.default)(BabelRegExp, RegExp); | ||
BabelRegExp.prototype.exec = function (str) { | ||
@@ -59,3 +59,5 @@ var result = _super.exec.call(this, str); | ||
var k = 0; | ||
while (result[i[k]] === undefined && k + 1 < i.length) k++; | ||
while (result[i[k]] === undefined && k + 1 < i.length) { | ||
k++; | ||
} | ||
groups[name] = result[i[k]]; | ||
@@ -62,0 +64,0 @@ } |
{ | ||
"name": "@babel/helpers", | ||
"version": "7.24.7", | ||
"version": "7.24.8", | ||
"description": "Collection of helper functions used by Babel transforms.", | ||
@@ -19,8 +19,8 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/template": "^7.24.7", | ||
"@babel/types": "^7.24.7" | ||
"@babel/types": "^7.24.8" | ||
}, | ||
"devDependencies": { | ||
"@babel/generator": "^7.24.7", | ||
"@babel/generator": "^7.24.8", | ||
"@babel/helper-plugin-test-runner": "^7.24.7", | ||
"@babel/parser": "^7.24.7", | ||
"@babel/parser": "^7.24.8", | ||
"regenerator-runtime": "^0.14.0" | ||
@@ -27,0 +27,0 @@ }, |
@@ -1,3 +0,1 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import fs from "fs"; | ||
@@ -4,0 +2,0 @@ import { createRequire } from "module"; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
867572
6868
Updated@babel/types@^7.24.8