repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/set.ts
packages/babel-helpers/src/helpers/set.ts
/* @minVersion 7.0.0-beta.0 */ import superPropBase from "./superPropBase.ts"; import defineProperty from "./defineProperty.ts"; function set( target: object, property: PropertyKey, value: any, receiver?: any, ): boolean { if (typeof Reflect !== "undefined" && Reflect.set) { // @ts-expect-error explicit...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/createForOfIteratorHelperLoose.ts
packages/babel-helpers/src/helpers/createForOfIteratorHelperLoose.ts
/* @minVersion 7.9.0 */ import unsupportedIterableToArray from "./unsupportedIterableToArray.ts"; import type { IteratorFunction } from "./createForOfIteratorHelper.ts"; export default function _createForOfIteratorHelperLoose<T>( o: T[] | Iterable<T> | ArrayLike<T>, allowArrayLike: boolean, ): () => IteratorResu...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/wrapNativeSuper.ts
packages/babel-helpers/src/helpers/wrapNativeSuper.ts
/* @minVersion 7.0.0-beta.0 */ // Based on https://github.com/WebReflection/babel-plugin-transform-builtin-classes import getPrototypeOf from "./getPrototypeOf.ts"; import setPrototypeOf from "./setPrototypeOf.ts"; import isNativeFunction from "./isNativeFunction.ts"; import construct from "./construct.ts"; export d...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/toSetter.ts
packages/babel-helpers/src/helpers/toSetter.ts
/* @minVersion 7.24.0 */ export default function _toSetter(fn: Function, args: any[], thisArg: any) { if (!args) args = []; var l = args.length++; return Object.defineProperty({}, "_", { set: function (v) { args[l] = v; fn.apply(thisArg, args); }, }); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/extends.ts
packages/babel-helpers/src/helpers/extends.ts
/* @minVersion 7.0.0-beta.0 */ type Intersection<R extends any[]> = R extends [infer H, ...infer S] ? H & Intersection<S> : unknown; export default function _extends<T extends object, U extends unknown[]>( target: T, ...sources: U ): T & Intersection<U>; export default function _extends() { // @ts-expect-er...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/defaults.ts
packages/babel-helpers/src/helpers/defaults.ts
/* @minVersion 7.0.0-beta.0 */ export default function _defaults<T extends object, S extends object>( obj: T, defaults: S, ): NonNullable<T & S> { for ( var keys: string[] = Object.getOwnPropertyNames(defaults), i = 0; i < keys.length; i++ ) { var key: string = keys[i], value: PropertyDes...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/objectWithoutProperties.ts
packages/babel-helpers/src/helpers/objectWithoutProperties.ts
/* @minVersion 7.0.0-beta.0 */ import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.ts"; export default function _objectWithoutProperties( source: null | undefined, excluded: PropertyKey[], ): Record<string, never>; export default function _objectWithoutProperties< T extends object, K exte...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/defineAccessor.ts
packages/babel-helpers/src/helpers/defineAccessor.ts
/* @minVersion 7.20.7 */ export default function _defineAccessor<Type extends "get" | "set">( type: Type, obj: any, key: string | symbol, fn: PropertyDescriptor[Type], ) { var desc: PropertyDescriptor = { configurable: true, enumerable: true }; desc[type] = fn; return Object.defineProperty(obj, key, desc...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/construct.ts
packages/babel-helpers/src/helpers/construct.ts
/* @minVersion 7.0.0-beta.0 */ import isNativeReflectConstruct from "./isNativeReflectConstruct.ts"; import setPrototypeOf from "./setPrototypeOf.ts"; export default function _construct( Parent: Function, args: any[], Class: Function, ): any { if (isNativeReflectConstruct()) { // Avoid issues with Class b...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/objectWithoutPropertiesLoose.ts
packages/babel-helpers/src/helpers/objectWithoutPropertiesLoose.ts
/* @minVersion 7.0.0-beta.0 */ export default function _objectWithoutPropertiesLoose< T extends object, K extends PropertyKey[], >( source: T | null | undefined, excluded: K, ): Pick<T, Exclude<keyof T, K[number]>>; export default function _objectWithoutPropertiesLoose< T extends object, K extends (keyof T...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classPrivateFieldInitSpec.ts
packages/babel-helpers/src/helpers/classPrivateFieldInitSpec.ts
/* @minVersion 7.14.1 */ import checkPrivateRedeclaration from "./checkPrivateRedeclaration.ts"; export default function _classPrivateFieldInitSpec( obj: object, privateMap: WeakMap<object, unknown>, value: unknown, ) { checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/applyDecoratedDescriptor.ts
packages/babel-helpers/src/helpers/applyDecoratedDescriptor.ts
/* @minVersion 7.0.0-beta.0 */ interface DescriptorWithInitializer extends PropertyDescriptor { initializer?: () => any; } declare const Object: Omit<typeof globalThis.Object, "keys"> & { keys<T>(o: T): (keyof T)[]; }; export default function _applyDecoratedDescriptor<T>( target: T, property: PropertyKey, ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/toPropertyKey.ts
packages/babel-helpers/src/helpers/toPropertyKey.ts
/* @minVersion 7.1.5 */ // https://tc39.es/ecma262/#sec-topropertykey import toPrimitive from "./toPrimitive.ts"; export default function toPropertyKey(arg: unknown) { var key = toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/arrayWithoutHoles.ts
packages/babel-helpers/src/helpers/arrayWithoutHoles.ts
/* @minVersion 7.0.0-beta.0 */ import arrayLikeToArray from "./arrayLikeToArray.ts"; export default function _arrayWithoutHoles<T>(arr: T[]) { if (Array.isArray(arr)) return arrayLikeToArray<T>(arr); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/getPrototypeOf.ts
packages/babel-helpers/src/helpers/getPrototypeOf.ts
/* @minVersion 7.0.0-beta.0 */ export default function _getPrototypeOf(o: object): any { // @ts-expect-error explicitly assign to function _getPrototypeOf = Object.setPrototypeOf ? // @ts-expect-error -- intentionally omitting the argument Object.getPrototypeOf.bind(/* undefined */) : function _getPr...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classCallCheck.ts
packages/babel-helpers/src/helpers/classCallCheck.ts
/* @minVersion 7.0.0-beta.0 */ export default function _classCallCheck<T extends object>( instance: unknown, Constructor: new (...args: any[]) => T, ): asserts instance is T { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/setFunctionName.ts
packages/babel-helpers/src/helpers/setFunctionName.ts
/* @minVersion 7.23.6 */ // https://tc39.es/ecma262/#sec-setfunctionname export default function setFunctionName<T extends Function>( fn: T, name: symbol | string, prefix?: string, ): T { if (typeof name === "symbol") { // Here `undefined` is possible, we check for it in the next line. name = name.desc...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/importDeferProxy.ts
packages/babel-helpers/src/helpers/importDeferProxy.ts
/* @minVersion 7.23.0 */ export default function _importDeferProxy<T extends object>( init: () => T, ): ProxyHandler<T> { var ns: T | null = null; var constValue = function <V extends boolean | null>(v: V) { return function (): V { return v; }; }; var proxy = function (run: Function) { re...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/createClass.ts
packages/babel-helpers/src/helpers/createClass.ts
/* @minVersion 7.0.0-beta.0 */ import toPropertyKey from "./toPropertyKey.ts"; interface Prop extends PropertyDescriptor { key: PropertyKey; } function _defineProperties(target: object, props: Prop[]): void { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = desc...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/tdz.ts
packages/babel-helpers/src/helpers/tdz.ts
/* @minVersion 7.5.5 */ export default function _tdzError(name: string): never { throw new ReferenceError(name + " is not defined - temporal dead zone"); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/regeneratorKeys.ts
packages/babel-helpers/src/helpers/regeneratorKeys.ts
/* @minVersion 7.27.0 */ /* @mangleFns */ export default function _regeneratorKeys(val: unknown) { var object = Object(val); var keys: string[] = []; var key: string; // eslint-disable-next-line guard-for-in for (var key in object) { keys.unshift(key); } // Rather than returning an object with a nex...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classPrivateSetter.ts
packages/babel-helpers/src/helpers/classPrivateSetter.ts
/* @minVersion 7.24.0 */ import assertClassBrand from "./assertClassBrand.ts"; export default function _classPrivateSetter( privateMap: WeakMap<any, any> | WeakSet<any>, setter: Function, receiver: any, value: any, ) { setter(assertClassBrand(privateMap, receiver), value); return value; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/readOnlyError.ts
packages/babel-helpers/src/helpers/readOnlyError.ts
/* @minVersion 7.0.0-beta.0 */ export default function _readOnlyError(name: string) { throw new TypeError('"' + name + '" is read-only'); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classPrivateFieldSet2.ts
packages/babel-helpers/src/helpers/classPrivateFieldSet2.ts
/* @minVersion 7.24.0 */ import assertClassBrand from "./assertClassBrand.ts"; export default function _classPrivateFieldSet2( privateMap: WeakMap<any, any>, receiver: any, value: any, ) { privateMap.set(assertClassBrand(privateMap, receiver), value); return value; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/interopRequireDefault.ts
packages/babel-helpers/src/helpers/interopRequireDefault.ts
/* @minVersion 7.0.0-beta.0 */ export default function _interopRequireDefault(obj: any) { return obj && obj.__esModule ? obj : { default: obj }; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/temporalUndefined.ts
packages/babel-helpers/src/helpers/temporalUndefined.ts
/* @minVersion 7.0.0-beta.0 */ // This function isn't mean to be called, but to be used as a reference. // We can't use a normal object because it isn't hoisted. export default function _temporalUndefined(this: never): void {}
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/slicedToArray.ts
packages/babel-helpers/src/helpers/slicedToArray.ts
/* @minVersion 7.0.0-beta.0 */ import arrayWithHoles from "./arrayWithHoles.ts"; import iterableToArrayLimit from "./iterableToArrayLimit.ts"; import unsupportedIterableToArray from "./unsupportedIterableToArray.ts"; // @ts-expect-error nonIterableRest is still being converted to TS. import nonIterableRest from "./non...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/inherits.ts
packages/babel-helpers/src/helpers/inherits.ts
/* @minVersion 7.0.0-beta.0 */ import setPrototypeOf from "./setPrototypeOf.ts"; export default function _inherits( subClass: Function, superClass: Function | null, ) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/superPropSet.ts
packages/babel-helpers/src/helpers/superPropSet.ts
/* @minVersion 7.25.0 */ import set from "./set.ts"; import getPrototypeOf from "./getPrototypeOf.ts"; export default function _superPropSet( classArg: any, property: string, value: any, receiver: any, isStrict: boolean, prototype?: 1, ) { return set( getPrototypeOf(prototype ? classArg.prototype : ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/taggedTemplateLiteralLoose.ts
packages/babel-helpers/src/helpers/taggedTemplateLiteralLoose.ts
/* @minVersion 7.0.0-beta.0 */ export default function _taggedTemplateLiteralLoose( strings: readonly string[], raw?: readonly string[], ): TemplateStringsArray { if (!raw) { raw = strings.slice(0); } // Loose: TemplateStringsArray['raw'] is readonly, so we have to cast it to any before assigning (stri...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/regeneratorAsyncIterator.ts
packages/babel-helpers/src/helpers/regeneratorAsyncIterator.ts
/* @minVersion 7.27.0 */ /* @mangleFns */ /* @internal */ import OverloadYield from "./OverloadYield.ts"; import define from "./regeneratorDefine.ts"; export default /* @no-mangle */ function AsyncIterator( this: any, generator: Generator, PromiseImpl: PromiseConstructor, ) { if (!this.next) { define(Asyn...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/objectSpread2.ts
packages/babel-helpers/src/helpers/objectSpread2.ts
/* @minVersion 7.5.0 */ import defineProperty from "./defineProperty.ts"; // This function is different to "Reflect.ownKeys". The enumerableOnly // filters on symbol properties only. Returned string properties are always // enumerable. It is good to use in objectSpread. function ownKeys( object: object, enumerab...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/checkPrivateRedeclaration.ts
packages/babel-helpers/src/helpers/checkPrivateRedeclaration.ts
/* @minVersion 7.14.1 */ export default function _checkPrivateRedeclaration( obj: object, privateCollection: WeakMap<object, unknown> | WeakSet<object>, ) { if (privateCollection.has(obj)) { throw new TypeError( "Cannot initialize the same private elements twice on an object", ); } }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/taggedTemplateLiteral.ts
packages/babel-helpers/src/helpers/taggedTemplateLiteral.ts
/* @minVersion 7.0.0-beta.0 */ export default function _taggedTemplateLiteral( strings: readonly string[], raw?: readonly string[], ): TemplateStringsArray { if (!raw) { raw = strings.slice(0); } return Object.freeze( Object.defineProperties<TemplateStringsArray>(strings as any, { raw: { value:...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/inheritsLoose.ts
packages/babel-helpers/src/helpers/inheritsLoose.ts
/* @minVersion 7.0.0-beta.0 */ import setPrototypeOf from "./setPrototypeOf.ts"; export default function _inheritsLoose( subClass: Function, superClass: Function, ) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; setPrototypeOf(subClass, superClass); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/initializerWarningHelper.ts
packages/babel-helpers/src/helpers/initializerWarningHelper.ts
/* @minVersion 7.0.0-beta.0 */ /* eslint-disable @typescript-eslint/no-unused-vars */ export default function _initializerWarningHelper( descriptor: PropertyDescriptor, context: DecoratorContext, ): never { throw new Error( "Decorating class property failed. Please ensure that " + "transform-class-prop...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/wrapAsyncGenerator.ts
packages/babel-helpers/src/helpers/wrapAsyncGenerator.ts
/* @minVersion 7.0.0-beta.0 */ import OverloadYield from "./OverloadYield.ts"; export default function _wrapAsyncGenerator(fn: GeneratorFunction) { return function (this: any) { // Use "arguments" here for better compatibility and smaller bundle size return new AsyncGenerator(fn.apply(this, arguments as any...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/superPropBase.ts
packages/babel-helpers/src/helpers/superPropBase.ts
/* @minVersion 7.0.0-beta.0 */ import getPrototypeOf from "./getPrototypeOf.ts"; export default function _superPropBase(object: object, property: PropertyKey) { // Yes, this throws if object is null to being with, that's on purpose. while (!Object.prototype.hasOwnProperty.call(object, property)) { object = ge...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/assertThisInitialized.ts
packages/babel-helpers/src/helpers/assertThisInitialized.ts
/* @minVersion 7.0.0-beta.0 */ export default function _assertThisInitialized<T>(self: T | undefined): T { if (self === void 0) { throw new ReferenceError( "this hasn't been initialised - super() hasn't been called", ); } return self; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/isNativeFunction.ts
packages/babel-helpers/src/helpers/isNativeFunction.ts
/* @minVersion 7.0.0-beta.0 */ export default function _isNativeFunction(fn: unknown): fn is Function { // Note: This function returns "true" for core-js functions. try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (_e) { // Firefox 31 throws when "toString" is applied to a...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/toConsumableArray.ts
packages/babel-helpers/src/helpers/toConsumableArray.ts
/* @minVersion 7.0.0-beta.0 */ import arrayWithoutHoles from "./arrayWithoutHoles.ts"; import iterableToArray from "./iterableToArray.ts"; import unsupportedIterableToArray from "./unsupportedIterableToArray.ts"; // @ts-expect-error nonIterableSpread is still being converted to TS. import nonIterableSpread from "./non...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/iterableToArray.ts
packages/babel-helpers/src/helpers/iterableToArray.ts
/* @minVersion 7.0.0-beta.0 */ export default function _iterableToArray<T>(iter: Iterable<T>) { if ( (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null) || (iter as any)["@@iterator"] != null ) { return Array.from(iter); } }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/typeof.ts
packages/babel-helpers/src/helpers/typeof.ts
/* @minVersion 7.0.0-beta.0 */ export default function _typeof( obj: unknown, ): | "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { // @ts-expect...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classPrivateMethodInitSpec.ts
packages/babel-helpers/src/helpers/classPrivateMethodInitSpec.ts
/* @minVersion 7.14.1 */ import checkPrivateRedeclaration from "./checkPrivateRedeclaration.ts"; export default function _classPrivateMethodInitSpec( obj: object, privateSet: WeakSet<object>, ) { checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/regeneratorAsyncGen.ts
packages/babel-helpers/src/helpers/regeneratorAsyncGen.ts
/* @minVersion 7.27.0 */ /* @mangleFns */ import regenerator from "./regenerator.ts"; import regeneratorAsyncIterator from "./regeneratorAsyncIterator.ts"; export default /* @no-mangle */ function _regeneratorAsyncGen( innerFn: Function, outerFn: Function, self: any, tryLocsList: any[], PromiseImpl: Promise...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/callSuper.ts
packages/babel-helpers/src/helpers/callSuper.ts
/* @minVersion 7.23.8 */ // This is duplicated to packages/babel-plugin-transform-classes/src/inline-callSuper-helpers.ts import getPrototypeOf from "./getPrototypeOf.ts"; import isNativeReflectConstruct from "./isNativeReflectConstruct.ts"; import possibleConstructorReturn from "./possibleConstructorReturn.ts"; exp...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/tsRewriteRelativeImportExtensions.ts
packages/babel-helpers/src/helpers/tsRewriteRelativeImportExtensions.ts
/* @minVersion 7.27.0 */ // https://github.com/microsoft/TypeScript/blob/71716a2868c87248af5020e33a84a2178d41a2d6/src/compiler/factory/emitHelpers.ts#L1451 export default function tsRewriteRelativeImportExtensions( path: unknown, preserveJsx?: boolean, ) { if (typeof path === "string" && /^\.\.?\//.test(path)) {...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/arrayWithHoles.ts
packages/babel-helpers/src/helpers/arrayWithHoles.ts
/* @minVersion 7.0.0-beta.0 */ export default function _arrayWithHoles<T>(arr: T[]) { if (Array.isArray(arr)) return arr; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/applyDecs2311.ts
packages/babel-helpers/src/helpers/applyDecs2311.ts
/* @minVersion 7.24.0 */ /* @mangleFns */ /* eslint-disable @typescript-eslint/no-unnecessary-type-assertion -- `typescript-eslint` complains when using `!` */ import checkInRHS from "./checkInRHS.ts"; import setFunctionName from "./setFunctionName.ts"; import toPropertyKey from "./toPropertyKey.ts"; const enum PROP...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/get.ts
packages/babel-helpers/src/helpers/get.ts
/* @minVersion 7.0.0-beta.0 */ import superPropBase from "./superPropBase.ts"; // https://tc39.es/ecma262/multipage/reflection.html#sec-reflect.get // // 28.1ak.5 Reflect.get ( target, propertyKey [ , receiver ] ) export default function _get<T extends object, P extends PropertyKey>( target: T, property: P, re...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/toArray.ts
packages/babel-helpers/src/helpers/toArray.ts
/* @minVersion 7.0.0-beta.0 */ import arrayWithHoles from "./arrayWithHoles.ts"; import iterableToArray from "./iterableToArray.ts"; import unsupportedIterableToArray from "./unsupportedIterableToArray.ts"; // @ts-expect-error nonIterableRest is still being converted to TS. import nonIterableRest from "./nonIterableRe...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/regeneratorDefine.ts
packages/babel-helpers/src/helpers/regeneratorDefine.ts
/* @minVersion 7.27.0 */ /* @mangleFns */ /* @internal */ // Also used to define Iterator Methods // Defining the .next, .throw, and .return methods of the Iterator interface in terms of a single ._invoke method. export default function regeneratorDefine( obj: any, key?: PropertyKey, value?: unknown, noFlags?:...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/temporalRef.ts
packages/babel-helpers/src/helpers/temporalRef.ts
/* @minVersion 7.0.0-beta.0 */ import undef from "./temporalUndefined.ts"; import err from "./tdz.ts"; export default function _temporalRef<T>(val: T, name: string) { return val === undef ? err(name) : val; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/awaitAsyncGenerator.ts
packages/babel-helpers/src/helpers/awaitAsyncGenerator.ts
/* @minVersion 7.0.0-beta.0 */ import OverloadYield from "./OverloadYield.ts"; export default function _awaitAsyncGenerator<T>(value: T) { return new OverloadYield<T>(value, /* kind: await */ 0); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/regenerator.ts
packages/babel-helpers/src/helpers/regenerator.ts
/* @minVersion 7.27.0 */ /* @mangleFns */ /* eslint-disable @typescript-eslint/no-use-before-define */ /* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */ import define from "./regeneratorDefine.ts"; const enum GenState { SuspendedStart, SuspendedYieldOrCompleted, Executing, } const enum Operato...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/asyncIterator.ts
packages/babel-helpers/src/helpers/asyncIterator.ts
/* @minVersion 7.15.9 */ type AsyncIteratorFn<T> = AsyncIterable<T>[typeof Symbol.asyncIterator]; type SyncIteratorFn<T> = Iterable<T>[typeof Symbol.iterator]; export default function _asyncIterator<T>( iterable: AsyncIterable<T> | Iterable<T>, ) { var method: AsyncIteratorFn<T> | SyncIteratorFn<T>, async: ty...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/asyncToGenerator.ts
packages/babel-helpers/src/helpers/asyncToGenerator.ts
/* @minVersion 7.0.0-beta.0 */ function asyncGeneratorStep<TYield, TReturn>( gen: Generator<TYield, TReturn, Awaited<TYield>>, resolve: (value: TReturn) => void, reject: (error: unknown) => void, _next: (value: Awaited<TYield> | undefined) => void, _throw: (err: unknown) => void, key: "next", arg: Awaite...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/iterableToArrayLimit.ts
packages/babel-helpers/src/helpers/iterableToArrayLimit.ts
/* @minVersion 7.0.0-beta.0 */ export default function _iterableToArrayLimit<T>(arr: Iterable<T>, i: number) { // this is an expanded form of \`for...of\` that properly supports abrupt completions of // iterators etc. var iterator: Iterator<T> = arr == null ? null : (typeof Symbol !== "undefined...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/interopRequireWildcard.ts
packages/babel-helpers/src/helpers/interopRequireWildcard.ts
/* @minVersion 7.14.0 */ export default function _interopRequireWildcard( obj: any, nodeInterop: boolean, ) { if (typeof WeakMap === "function") { var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); } // @ts-expect-error: assign to function return (_interopRequireWildcard ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/createForOfIteratorHelper.ts
packages/babel-helpers/src/helpers/createForOfIteratorHelper.ts
/* @minVersion 7.9.0 */ import unsupportedIterableToArray from "./unsupportedIterableToArray.ts"; export type IteratorFunction<T> = () => Iterator<T>; export interface ForOfIteratorHelper<T> { // s: start (create the iterator) s: () => void; // n: next n: () => IteratorResult<T, undefined>; // e: error (ca...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/setPrototypeOf.ts
packages/babel-helpers/src/helpers/setPrototypeOf.ts
/* @minVersion 7.0.0-beta.0 */ export default function _setPrototypeOf(o: object, p: object) { // @ts-expect-error - assigning to function _setPrototypeOf = Object.setPrototypeOf ? // @ts-expect-error - intentionally omitted argument Object.setPrototypeOf.bind(/* undefined */) : function _setPrototyp...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/unsupportedIterableToArray.ts
packages/babel-helpers/src/helpers/unsupportedIterableToArray.ts
/* @minVersion 7.9.0 */ import arrayLikeToArray from "./arrayLikeToArray.ts"; type NonArrayIterable<V, T extends Iterable<V> = Iterable<V>> = T extends any[] ? never : Iterable<V>; export default function _unsupportedIterableToArray<T>( o: RelativeIndexable<T> /* string | typedarray */ | ArrayLike<T> | Set<T>,...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classPrivateGetter.ts
packages/babel-helpers/src/helpers/classPrivateGetter.ts
/* @minVersion 7.24.0 */ import assertClassBrand from "./assertClassBrand.ts"; export default function _classPrivateGetter( privateMap: WeakMap<any, any> | WeakSet<any>, receiver: any, getter: Function, ) { return getter(assertClassBrand(privateMap, receiver)); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classPrivateFieldGet2.ts
packages/babel-helpers/src/helpers/classPrivateFieldGet2.ts
/* @minVersion 7.24.0 */ import assertClassBrand from "./assertClassBrand.ts"; export default function _classPrivateFieldGet2( privateMap: WeakMap<any, any>, receiver: any, ) { return privateMap.get(assertClassBrand(privateMap, receiver)); }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/identity.ts
packages/babel-helpers/src/helpers/identity.ts
/* @minVersion 7.17.0 */ export default function _identity<T>(x: T) { return x; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/maybeArrayLike.ts
packages/babel-helpers/src/helpers/maybeArrayLike.ts
/* @minVersion 7.9.0 */ import arrayLikeToArray from "./arrayLikeToArray.ts"; export default function _maybeArrayLike<T>( orElse: (arr: any, i: number) => T[] | undefined, arr: ArrayLike<T>, i: number, ) { if (arr && !Array.isArray(arr) && typeof arr.length === "number") { var len = arr.length; return...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/classStaticPrivateMethodGet.ts
packages/babel-helpers/src/helpers/classStaticPrivateMethodGet.ts
/* @minVersion 7.3.2 */ import assertClassBrand from "./assertClassBrand.ts"; export default function _classStaticPrivateMethodGet<T extends Function>( receiver: Function, classConstructor: Function, method: T, ) { assertClassBrand(classConstructor, receiver); return method; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/asyncGeneratorDelegate.ts
packages/babel-helpers/src/helpers/asyncGeneratorDelegate.ts
/* @minVersion 7.0.0-beta.0 */ import OverloadYield from "./OverloadYield.ts"; export default function _asyncGeneratorDelegate<T>(inner: Generator<T>) { var iter = {} as Generator<T>, // See the comment in AsyncGenerator to understand what this is. waiting = false; function pump( key: "next" | "throw...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/checkInRHS.ts
packages/babel-helpers/src/helpers/checkInRHS.ts
/* @minVersion 7.20.5 */ export default function _checkInRHS(value: unknown) { if (Object(value) !== value) { throw TypeError( "right-hand side of 'in' should be an object, got " + (value !== null ? typeof value : "null"), ); } return value; }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/superPropGet.ts
packages/babel-helpers/src/helpers/superPropGet.ts
/* @minVersion 7.25.0 */ import get from "./get.ts"; import getPrototypeOf from "./getPrototypeOf.ts"; const enum Flags { Prototype = 0b1, Call = 0b10, } export default function _superPropGet( classArg: any, property: string, receiver: any, flags?: number, ) { var result = get( getPrototypeOf( ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/regeneratorValues.ts
packages/babel-helpers/src/helpers/regeneratorValues.ts
/* @minVersion 7.18.0 */ /* @mangleFns */ export default function _regeneratorValues(iterable: any) { if (iterable != null) { var iteratorMethod = iterable[ (typeof Symbol === "function" && Symbol.iterator) || "@@iterator" ], i = 0; if (iteratorMethod) { return iterator...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/isNativeReflectConstruct.ts
packages/babel-helpers/src/helpers/isNativeReflectConstruct.ts
/* @minVersion 7.9.0 */ export default function _isNativeReflectConstruct() { // Since Reflect.construct can't be properly polyfilled, some // implementations (e.g. core-js@2) don't set the correct internal slots. // Those polyfills don't allow us to subclass built-ins, so we need to // use our fallback implem...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helpers/src/helpers/instanceof.ts
packages/babel-helpers/src/helpers/instanceof.ts
/* @minVersion 7.0.0-beta.0 */ export default function _instanceof(left: any, right: Function) { if ( right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance] ) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/plugins-compat-data.ts
packages/babel-preset-env/src/plugins-compat-data.ts
// https://github.com/import-js/eslint-plugin-import/issues/1810 // eslint-disable-next-line import/no-unresolved import originalPlugins from "@babel/compat-data/plugins" with { type: "json" }; // eslint-disable-next-line import/no-unresolved import originalPluginsBugfixes from "@babel/compat-data/plugin-bugfixes" with...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/available-plugins.ts
packages/babel-preset-env/src/available-plugins.ts
/* eslint sort-keys: "error" */ import transformAsyncGeneratorFunctions from "@babel/plugin-transform-async-generator-functions"; import transformAsyncToGenerator from "@babel/plugin-transform-async-to-generator"; import transformArrowFunctions from "@babel/plugin-transform-arrow-functions"; import transformBlockScope...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/types.d.ts
packages/babel-preset-env/src/types.d.ts
import type { ModulesOption, UseBuiltInsOption } from "./options.ts"; import type { NormalizedCorejsOption } from "./normalize-options.ts"; import type { Targets, InputTargets } from "@babel/helper-compilation-targets"; // Options // Use explicit modules to prevent typo errors. export type ModuleOption = (typeof Modul...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/normalize-options.ts
packages/babel-preset-env/src/normalize-options.ts
import semver, { type SemVer } from "semver"; import corejs3Polyfills from "core-js-compat/data.json" with { type: "json" }; import { plugins as pluginsList } from "./plugins-compat-data.ts"; import moduleTransformations from "./module-transformations.ts"; import { TopLevelOptions, ModulesOption, UseBuiltInsOptio...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/debug.ts
packages/babel-preset-env/src/debug.ts
import { getInclusionReasons, type Targets, type Target, } from "@babel/helper-compilation-targets"; // Outputs a message that shows which target(s) caused an item to be included: // transform-foo { "edge":"13", "firefox":"49", "ie":"10" } export const logPlugin = ( item: string, targetVersions: Targets, l...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/options.ts
packages/babel-preset-env/src/options.ts
export const TopLevelOptions = { configPath: "configPath", corejs: "corejs", debug: "debug", exclude: "exclude", forceAllTransforms: "forceAllTransforms", ignoreBrowserslistConfig: "ignoreBrowserslistConfig", include: "include", modules: "modules", shippedProposals: "shippedProposals", targets: "tar...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/shipped-proposals.ts
packages/babel-preset-env/src/shipped-proposals.ts
// TODO(Babel 8): Remove this file /* eslint sort-keys: "error" */ // These mappings represent the transform plugins that have been // shipped by browsers, and are enabled by the `shippedProposals` option. const proposalPlugins = new Set<string>([]); // proposal syntax plugins enabled by the `shippedProposals` option...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/filter-items.ts
packages/babel-preset-env/src/filter-items.ts
import semver from "semver"; import { minVersions } from "./available-plugins.ts"; export function addProposalSyntaxPlugins( items: Set<string>, proposalSyntaxPlugins: readonly string[], ) { proposalSyntaxPlugins.forEach(plugin => { items.add(plugin); }); } export function removeUnnecessaryItems( items: ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/module-transformations.ts
packages/babel-preset-env/src/module-transformations.ts
type AvailablePlugins = typeof import("./available-plugins").default; export default { amd: "transform-modules-amd", commonjs: "transform-modules-commonjs", cjs: "transform-modules-commonjs", systemjs: "transform-modules-systemjs", umd: "transform-modules-umd", } as Record<string, keyof AvailablePlugins>;
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/index.ts
packages/babel-preset-env/src/index.ts
import semver, { type SemVer } from "semver"; import { logPlugin } from "./debug.ts"; import { addProposalSyntaxPlugins, removeUnnecessaryItems, removeUnsupportedItems, } from "./filter-items.ts"; import moduleTransformations from "./module-transformations.ts"; import normalizeOptions from "./normalize-options.ts...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-env/src/targets-parser.ts
packages/babel-preset-env/src/targets-parser.ts
// TODO: Remove in Babel 8 export { default, isBrowsersQueryValid, } from "@babel/helper-compilation-targets";
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-regexp-features-plugin/src/util.ts
packages/babel-helper-create-regexp-features-plugin/src/util.ts
import type { types as t } from "@babel/core"; import { FEATURES, hasFeature } from "./features.ts"; import type { RegexpuOptions } from "regexpu-core"; export function generateRegexpuOptions( pattern: string, toTransform: number, ): RegexpuOptions { const feat = (name: keyof typeof FEATURES) => { return ha...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-regexp-features-plugin/src/index.ts
packages/babel-helper-create-regexp-features-plugin/src/index.ts
import rewritePattern from "regexpu-core"; import { types as t, type PluginObject, type NodePath } from "@babel/core"; import annotateAsPure from "@babel/helper-annotate-as-pure"; import semver from "semver"; import { featuresKey, FEATURES, enableFeature, runtimeKey, } from "./features.ts"; import { generat...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-create-regexp-features-plugin/src/features.ts
packages/babel-helper-create-regexp-features-plugin/src/features.ts
export const FEATURES = Object.freeze({ unicodeFlag: 1 << 0, dotAllFlag: 1 << 1, unicodePropertyEscape: 1 << 2, namedCaptureGroups: 1 << 3, // Not used, for backward compatibility with syntax-unicode-sets-regex unicodeSetsFlag_syntax: 1 << 4, unicodeSetsFlag: 1 << 5, duplicateNamedCaptureGroups: 1 << 6,...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-nullish-coalescing-operator/src/index.ts
packages/babel-plugin-transform-nullish-coalescing-operator/src/index.ts
import { declare } from "@babel/helper-plugin-utils"; import { types as t, template } from "@babel/core"; export interface Options { loose?: boolean; } export default declare((api, { loose = false }: Options) => { api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0-0")); const noDocumentAll = api.assumption(...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-optional-catch-binding/src/index.ts
packages/babel-plugin-transform-optional-catch-binding/src/index.ts
import { declare } from "@babel/helper-plugin-utils"; export default declare(api => { api.assertVersion(REQUIRED_VERSION("^7.0.0-0 || ^8.0.0-0")); return { name: "transform-optional-catch-binding", manipulateOptions: undefined, visitor: { CatchClause(path) { if (!path.node.param) { ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-proposal-export-default-from/src/index.ts
packages/babel-plugin-proposal-export-default-from/src/index.ts
import { declare } from "@babel/helper-plugin-utils"; import { types as t } from "@babel/core"; export default declare(api => { api.assertVersion(REQUIRED_VERSION(7)); return { name: "proposal-export-default-from", manipulateOptions: (_, parser) => parser.plugins.push("exportDefaultFrom"), visitor: {...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-property-mutators/src/define-map.ts
packages/babel-plugin-transform-property-mutators/src/define-map.ts
import { types as t } from "@babel/core"; type DefineMap = { _inherits: t.Node[]; _key: t.Expression; get?: t.Expression; set?: t.Expression; kind: "get" | "set"; }; export type MutatorMap = Record<string, DefineMap>; export function pushAccessor( mutatorMap: MutatorMap, node: t.ObjectMethod & { kind: ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-property-mutators/src/index.ts
packages/babel-plugin-transform-property-mutators/src/index.ts
import { declare } from "@babel/helper-plugin-utils"; import { type MutatorMap, pushAccessor, toDefineObject } from "./define-map.ts"; import { types as t } from "@babel/core"; export default declare(api => { api.assertVersion(REQUIRED_VERSION(7)); return { name: "transform-property-mutators", visitor: {...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-helper-remap-async-to-generator/src/index.ts
packages/babel-helper-remap-async-to-generator/src/index.ts
import type { NodePath } from "@babel/core"; import wrapFunction from "@babel/helper-wrap-function"; import annotateAsPure from "@babel/helper-annotate-as-pure"; import { types as t } from "@babel/core"; import { visitors } from "@babel/traverse"; const { callExpression, cloneNode, isIdentifier, isThisExpressio...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-object-set-prototype-of-to-assign/src/index.ts
packages/babel-plugin-transform-object-set-prototype-of-to-assign/src/index.ts
import { declare } from "@babel/helper-plugin-utils"; export default declare(api => { api.assertVersion(REQUIRED_VERSION(7)); return { name: "transform-object-set-prototype-of-to-assign", visitor: { CallExpression(path, file) { if (path.get("callee").matchesPattern("Object.setPrototypeOf"))...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-react/src/normalize-options.ts
packages/babel-preset-react/src/normalize-options.ts
import { OptionValidator, findSuggestion, } from "@babel/helper-validator-option"; const v = new OptionValidator("@babel/preset-react"); export default function normalizeOptions(options: any = {}) { if ("useSpread" in options) { throw new Error( '@babel/preset-react: Since Babel 8, an inline object wit...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-preset-react/src/index.ts
packages/babel-preset-react/src/index.ts
import { declarePreset } from "@babel/helper-plugin-utils"; import transformReactJSX from "@babel/plugin-transform-react-jsx"; import transformReactJSXDevelopment from "@babel/plugin-transform-react-jsx-development"; import transformReactDisplayName from "@babel/plugin-transform-react-display-name"; import transformRea...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-parameters/src/shadow-utils.ts
packages/babel-plugin-transform-parameters/src/shadow-utils.ts
import { types as t } from "@babel/core"; import type { NodePath, Scope, Visitor } from "@babel/core"; type State = { needsOuterBinding: boolean; scope: Scope; }; export const iifeVisitor: Visitor<State> = { "ReferencedIdentifier|BindingIdentifier"( path: NodePath<t.Identifier>, state, ) { const {...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-parameters/src/params.ts
packages/babel-plugin-transform-parameters/src/params.ts
import { template, types as t, type NodePath } from "@babel/core"; import { iifeVisitor, collectShadowedParamsNames, buildScopeIIFE, } from "./shadow-utils.ts"; const buildDefaultParam = template.statement(` let VARIABLE_NAME = arguments.length > ARGUMENT_KEY && arguments[ARGUMENT_KEY] !== undefined ? ...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-parameters/src/index.ts
packages/babel-plugin-transform-parameters/src/index.ts
import { declare } from "@babel/helper-plugin-utils"; import convertFunctionParams from "./params.ts"; import convertFunctionRest from "./rest.ts"; export { convertFunctionParams }; export interface Options { loose?: boolean; } export default declare((api, options: Options) => { api.assertVersion(REQUIRED_VERSION...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false
babel/babel
https://github.com/babel/babel/blob/30af57a25649635268e0a9ecdfae99bdd5dda5b4/packages/babel-plugin-transform-parameters/src/rest.ts
packages/babel-plugin-transform-parameters/src/rest.ts
import { template, types as t } from "@babel/core"; import type { NodePath, Visitor } from "@babel/core"; import { iifeVisitor, collectShadowedParamsNames, buildScopeIIFE, } from "./shadow-utils.ts"; const buildRest = template.statement(` for (var LEN = ARGUMENTS.length, ARRAY = new Array(ARRAY_LEN...
typescript
MIT
30af57a25649635268e0a9ecdfae99bdd5dda5b4
2026-01-04T15:46:08.418221Z
false