Unverified Commit 3d5e456a authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

chore: Update babel types and do some light cleanup of babel loader (#82486)

- Did my best to reduce the amount of stuff that's `any`-typed.
- Add comments for bare null or boolean arguments
- The loader was doing `.call(...)` to set `this` all over the place. Pass it as an explicit argument instead.
parent b8b653bb
...@@ -188,11 +188,11 @@ ...@@ -188,11 +188,11 @@
"@taskr/clear": "1.1.0", "@taskr/clear": "1.1.0",
"@taskr/esnext": "1.1.0", "@taskr/esnext": "1.1.0",
"@types/amphtml-validator": "1.0.0", "@types/amphtml-validator": "1.0.0",
"@types/babel__code-frame": "7.0.2", "@types/babel__code-frame": "7.0.6",
"@types/babel__core": "7.1.12", "@types/babel__core": "7.20.5",
"@types/babel__generator": "7.6.2", "@types/babel__generator": "7.27.0",
"@types/babel__template": "7.4.0", "@types/babel__template": "7.4.4",
"@types/babel__traverse": "7.11.0", "@types/babel__traverse": "7.20.7",
"@types/bytes": "3.1.1", "@types/bytes": "3.1.1",
"@types/ci-info": "2.0.0", "@types/ci-info": "2.0.0",
"@types/compression": "0.0.36", "@types/compression": "0.0.36",
......
...@@ -2,14 +2,31 @@ import { readFileSync } from 'fs' ...@@ -2,14 +2,31 @@ import { readFileSync } from 'fs'
import JSON5 from 'next/dist/compiled/json5' import JSON5 from 'next/dist/compiled/json5'
import { createConfigItem, loadOptions } from 'next/dist/compiled/babel/core' import { createConfigItem, loadOptions } from 'next/dist/compiled/babel/core'
import loadConfig from 'next/dist/compiled/babel/core-lib-config' import loadFullConfig from 'next/dist/compiled/babel/core-lib-config'
import type { NextBabelLoaderOptions, NextJsLoaderContext } from './types' import type { NextBabelLoaderOptions, NextJsLoaderContext } from './types'
import { consumeIterator } from './util' import {
consumeIterator,
type SourceMap,
type BabelLoaderTransformOptions,
} from './util'
import * as Log from '../../output/log' import * as Log from '../../output/log'
import jsx from 'next/dist/compiled/babel/plugin-syntax-jsx' import jsx from 'next/dist/compiled/babel/plugin-syntax-jsx'
import { isReactCompilerRequired } from '../../swc' import { isReactCompilerRequired } from '../../swc'
/**
* An internal (non-exported) type used by babel.
*/
export type ResolvedBabelConfig = {
options: BabelLoaderTransformOptions
passes: BabelPluginPasses
externalDependencies: ReadonlyArray<string>
}
export type BabelPlugin = unknown
export type BabelPluginPassList = ReadonlyArray<BabelPlugin>
export type BabelPluginPasses = ReadonlyArray<BabelPluginPassList>
const nextDistPath = const nextDistPath =
/(next[\\/]dist[\\/]shared[\\/]lib)|(next[\\/]dist[\\/]client)|(next[\\/]dist[\\/]pages)/ /(next[\\/]dist[\\/]shared[\\/]lib)|(next[\\/]dist[\\/]client)|(next[\\/]dist[\\/]pages)/
...@@ -275,13 +292,13 @@ function checkCustomBabelConfigDeprecation( ...@@ -275,13 +292,13 @@ function checkCustomBabelConfigDeprecation(
* This config should have no unresolved overrides, presets, etc. * This config should have no unresolved overrides, presets, etc.
*/ */
async function getFreshConfig( async function getFreshConfig(
this: NextJsLoaderContext, ctx: NextJsLoaderContext,
cacheCharacteristics: CharacteristicsGermaneToCaching, cacheCharacteristics: CharacteristicsGermaneToCaching,
loaderOptions: NextBabelLoaderOptions, loaderOptions: NextBabelLoaderOptions,
target: string, target: string,
filename: string, filename: string,
inputSourceMap?: object | null inputSourceMap?: SourceMap
) { ): Promise<ResolvedBabelConfig | null> {
const hasReactCompiler = await (async () => { const hasReactCompiler = await (async () => {
if ( if (
loaderOptions.reactCompilerPlugins && loaderOptions.reactCompilerPlugins &&
...@@ -314,18 +331,18 @@ async function getFreshConfig( ...@@ -314,18 +331,18 @@ async function getFreshConfig(
let { isServer, pagesDir, srcDir, development } = loaderOptions let { isServer, pagesDir, srcDir, development } = loaderOptions
let options = { let options: BabelLoaderTransformOptions = {
babelrc: false, babelrc: false,
cloneInputAst: false, cloneInputAst: false,
filename, filename,
inputSourceMap: inputSourceMap || undefined, inputSourceMap,
// Ensure that Webpack will get a full absolute path in the sourcemap // Ensure that Webpack will get a full absolute path in the sourcemap
// so that it can properly map the module back to its internal cached // so that it can properly map the module back to its internal cached
// modules. // modules.
sourceFileName: filename, sourceFileName: filename,
sourceMaps: this.sourceMap, sourceMaps: ctx.sourceMap,
} as any }
const baseCaller = { const baseCaller = {
name: 'next-babel-turbo-loader', name: 'next-babel-turbo-loader',
...@@ -334,7 +351,7 @@ async function getFreshConfig( ...@@ -334,7 +351,7 @@ async function getFreshConfig(
// Provide plugins with insight into webpack target. // Provide plugins with insight into webpack target.
// https://github.com/babel/babel-loader/issues/787 // https://github.com/babel/babel-loader/issues/787
target: target, target,
// Webpack 5 supports TLA behind a flag. We enable it by default // Webpack 5 supports TLA behind a flag. We enable it by default
// for Babel, and then webpack will throw an error if the experimental // for Babel, and then webpack will throw an error if the experimental
...@@ -374,7 +391,7 @@ async function getFreshConfig( ...@@ -374,7 +391,7 @@ async function getFreshConfig(
// but allow users to override if they want. // but allow users to override if they want.
options.sourceMaps = options.sourceMaps =
loaderOptions.sourceMaps === undefined loaderOptions.sourceMaps === undefined
? this.sourceMap ? ctx.sourceMap
: loaderOptions.sourceMaps : loaderOptions.sourceMaps
options.plugins = [ options.plugins = [
...@@ -424,12 +441,12 @@ async function getFreshConfig( ...@@ -424,12 +441,12 @@ async function getFreshConfig(
if (!(reason instanceof Error)) { if (!(reason instanceof Error)) {
reason = new Error(reason) reason = new Error(reason)
} }
this.emitWarning(reason) ctx.emitWarning(reason)
}, },
}) })
const loadedOptions = loadOptions(options) const loadedOptions = loadOptions(options)
const config = consumeIterator(loadConfig(loadedOptions)) const config = consumeIterator(loadFullConfig(loadedOptions))
return config return config
} }
...@@ -453,12 +470,11 @@ function getCacheKey(cacheCharacteristics: CharacteristicsGermaneToCaching) { ...@@ -453,12 +470,11 @@ function getCacheKey(cacheCharacteristics: CharacteristicsGermaneToCaching) {
return fileNameOrExt + flags return fileNameOrExt + flags
} }
type BabelConfig = any const configCache: Map<any, ResolvedBabelConfig | null> = new Map()
const configCache: Map<any, BabelConfig> = new Map()
const configFiles: Set<string> = new Set() const configFiles: Set<string> = new Set()
export default async function getConfig( export default async function getConfig(
this: NextJsLoaderContext, ctx: NextJsLoaderContext,
{ {
source, source,
target, target,
...@@ -470,9 +486,9 @@ export default async function getConfig( ...@@ -470,9 +486,9 @@ export default async function getConfig(
loaderOptions: NextBabelLoaderOptions loaderOptions: NextBabelLoaderOptions
target: string target: string
filename: string filename: string
inputSourceMap?: object | null inputSourceMap?: SourceMap | undefined
} }
): Promise<BabelConfig> { ): Promise<ResolvedBabelConfig | null> {
const cacheCharacteristics = getCacheCharacteristics( const cacheCharacteristics = getCacheCharacteristics(
loaderOptions, loaderOptions,
source, source,
...@@ -482,7 +498,7 @@ export default async function getConfig( ...@@ -482,7 +498,7 @@ export default async function getConfig(
if (loaderOptions.transformMode === 'default' && loaderOptions.configFile) { if (loaderOptions.transformMode === 'default' && loaderOptions.configFile) {
// Ensures webpack invalidates the cache for this loader when the config file changes // Ensures webpack invalidates the cache for this loader when the config file changes
this.addDependency(loaderOptions.configFile) ctx.addDependency(loaderOptions.configFile)
} }
const cacheKey = getCacheKey(cacheCharacteristics) const cacheKey = getCacheKey(cacheCharacteristics)
...@@ -515,8 +531,8 @@ export default async function getConfig( ...@@ -515,8 +531,8 @@ export default async function getConfig(
) )
} }
const freshConfig = await getFreshConfig.call( const freshConfig = await getFreshConfig(
this, ctx,
cacheCharacteristics, cacheCharacteristics,
loaderOptions, loaderOptions,
target, target,
......
import type { Span } from '../../../trace' import type { Span } from '../../../trace'
import transform from './transform' import transform from './transform'
import type { NextJsLoaderContext } from './types' import type { NextJsLoaderContext } from './types'
import type { SourceMap } from './util'
import type { webpack } from 'next/dist/compiled/webpack/webpack'
async function nextBabelLoader( async function nextBabelLoader(
this: NextJsLoaderContext, ctx: NextJsLoaderContext,
parentTrace: Span, parentTrace: Span,
inputSource: string, inputSource: string,
inputSourceMap: object | null | undefined inputSourceMap: SourceMap | null | undefined
) { ): Promise<[string, SourceMap | null | undefined]> {
const filename = this.resourcePath const filename = ctx.resourcePath
// Ensure `.d.ts` are not processed. // Ensure `.d.ts` are not processed.
if (filename.endsWith('.d.ts')) { if (filename.endsWith('.d.ts')) {
return [inputSource, inputSourceMap] return [inputSource, inputSourceMap]
} }
const target = this.target const target = ctx.target
const loaderOptions: any = parentTrace const loaderOptions: any = parentTrace
.traceChild('get-options') .traceChild('get-options')
// @ts-ignore TODO: remove ignore once webpack 5 types are used // @ts-ignore TODO: remove ignore once webpack 5 types are used
.traceFn(() => this.getOptions()) .traceFn(() => ctx.getOptions())
if (loaderOptions.exclude && loaderOptions.exclude(filename)) { if (loaderOptions.exclude && loaderOptions.exclude(filename)) {
return [inputSource, inputSourceMap] return [inputSource, inputSourceMap]
...@@ -29,8 +31,8 @@ async function nextBabelLoader( ...@@ -29,8 +31,8 @@ async function nextBabelLoader(
const { code: transformedSource, map: outputSourceMap } = const { code: transformedSource, map: outputSourceMap } =
await loaderSpanInner.traceAsyncFn( await loaderSpanInner.traceAsyncFn(
async () => async () =>
await transform.call( await transform(
this, ctx,
inputSource, inputSource,
inputSourceMap, inputSourceMap,
loaderOptions, loaderOptions,
...@@ -43,25 +45,38 @@ async function nextBabelLoader( ...@@ -43,25 +45,38 @@ async function nextBabelLoader(
return [transformedSource, outputSourceMap] return [transformedSource, outputSourceMap]
} }
const nextBabelLoaderOuter = function nextBabelLoaderOuter( function nextBabelLoaderOuter(
this: NextJsLoaderContext, this: NextJsLoaderContext,
inputSource: string, inputSource: string,
inputSourceMap: object | null | undefined // webpack's source map format is compatible with babel, but the type signature doesn't match
inputSourceMap?: any
) { ) {
const callback = this.async() const callback = this.async()
const loaderSpan = this.currentTraceSpan.traceChild('next-babel-turbo-loader') const loaderSpan = this.currentTraceSpan.traceChild('next-babel-turbo-loader')
loaderSpan loaderSpan
.traceAsyncFn(() => .traceAsyncFn(() =>
nextBabelLoader.call(this, loaderSpan, inputSource, inputSourceMap) nextBabelLoader(this, loaderSpan, inputSource, inputSourceMap)
) )
.then( .then(
([transformedSource, outputSourceMap]: any) => ([transformedSource, outputSourceMap]) =>
callback?.(null, transformedSource, outputSourceMap || inputSourceMap), callback?.(
/* err */ null,
transformedSource,
outputSourceMap ?? inputSourceMap
),
(err) => { (err) => {
callback?.(err) callback?.(err)
} }
) )
} }
// check this type matches `webpack.LoaderDefinitionFunction`, but be careful
// not to publicly rely on the webpack type since the generated typescript
// declarations will be wrong.
const _nextBabelLoaderOuter: webpack.LoaderDefinitionFunction<
{},
NextJsLoaderContext
> = nextBabelLoaderOuter
export default nextBabelLoaderOuter export default nextBabelLoaderOuter
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
*/ */
import traverse from 'next/dist/compiled/babel/traverse' import traverse from 'next/dist/compiled/babel/traverse'
import generate from 'next/dist/compiled/babel/generator' import generate, {
type GeneratorResult,
} from 'next/dist/compiled/babel/generator'
import normalizeFile from 'next/dist/compiled/babel/core-lib-normalize-file' import normalizeFile from 'next/dist/compiled/babel/core-lib-normalize-file'
import normalizeOpts from 'next/dist/compiled/babel/core-lib-normalize-opts' import normalizeOpts from 'next/dist/compiled/babel/core-lib-normalize-opts'
import loadBlockHoistPlugin from 'next/dist/compiled/babel/core-lib-block-hoist-plugin' import loadBlockHoistPlugin from 'next/dist/compiled/babel/core-lib-block-hoist-plugin'
...@@ -13,6 +15,7 @@ import getConfig from './get-config' ...@@ -13,6 +15,7 @@ import getConfig from './get-config'
import { consumeIterator } from './util' import { consumeIterator } from './util'
import type { Span } from '../../../trace' import type { Span } from '../../../trace'
import type { NextJsLoaderContext } from './types' import type { NextJsLoaderContext } from './types'
import type { SourceMap } from './util'
function getTraversalParams(file: any, pluginPairs: any[]) { function getTraversalParams(file: any, pluginPairs: any[]) {
const passPairs = [] const passPairs = []
...@@ -70,24 +73,25 @@ function transformAst(file: any, babelConfig: any, parentSpan: Span) { ...@@ -70,24 +73,25 @@ function transformAst(file: any, babelConfig: any, parentSpan: Span) {
} }
export default async function transform( export default async function transform(
this: NextJsLoaderContext, ctx: NextJsLoaderContext,
source: string, source: string,
inputSourceMap: object | null | undefined, inputSourceMap: SourceMap | null | undefined,
loaderOptions: any, loaderOptions: any,
filename: string, filename: string,
target: string, target: string,
parentSpan: Span parentSpan: Span
) { ): Promise<GeneratorResult> {
const getConfigSpan = parentSpan.traceChild('babel-turbo-get-config') const getConfigSpan = parentSpan.traceChild('babel-turbo-get-config')
const babelConfig = await getConfig.call(this, {
const babelConfig = await getConfig(ctx, {
source, source,
loaderOptions, loaderOptions,
inputSourceMap, inputSourceMap: inputSourceMap ?? undefined,
target, target,
filename, filename,
}) })
if (!babelConfig) { if (!babelConfig) {
return { code: source, map: inputSourceMap } return { code: source, map: inputSourceMap ?? null }
} }
getConfigSpan.stop() getConfigSpan.stop()
......
...@@ -30,7 +30,7 @@ export type NextBabelLoaderOptionDefaultPresets = NextBabelLoaderBaseOptions & { ...@@ -30,7 +30,7 @@ export type NextBabelLoaderOptionDefaultPresets = NextBabelLoaderBaseOptions & {
transformMode: 'default' transformMode: 'default'
hasJsxRuntime: boolean hasJsxRuntime: boolean
hasReactRefresh: boolean hasReactRefresh: boolean
sourceMaps?: any[] sourceMaps?: boolean | 'inline' | 'both' | null | undefined
overrides: any overrides: any
configFile: string | undefined configFile: string | undefined
} }
......
import type { TransformOptions } from 'next/dist/compiled/babel/core'
export function consumeIterator(iter: Iterator<any>) { export function consumeIterator(iter: Iterator<any>) {
while (true) { while (true) {
const { value, done } = iter.next() const { value, done } = iter.next()
...@@ -6,3 +8,19 @@ export function consumeIterator(iter: Iterator<any>) { ...@@ -6,3 +8,19 @@ export function consumeIterator(iter: Iterator<any>) {
} }
} }
} }
/**
* Source map standard format as to revision 3.
*
* `TransformOptions` uses this type, but doesn't export it separately
*/
export type SourceMap = NonNullable<TransformOptions['inputSourceMap']>
/**
* An extension of the normal babel configuration, with extra `babel-loader`-specific fields that transforms can read.
*
* See: https://github.com/babel/babel-loader/blob/main/src/injectCaller.js
*/
export type BabelLoaderTransformOptions = TransformOptions & {
target?: string
}
...@@ -70,12 +70,7 @@ export default function ({ ...@@ -70,12 +70,7 @@ export default function ({
;[newPath] = path.unshiftContainer('body', mapping) ;[newPath] = path.unshiftContainer('body', mapping)
} }
for (const declar of newPath.get('declarations')) { path.scope.registerDeclaration(newPath)
path.scope.registerBinding(
newPath.node.kind,
declar as NodePath<BabelTypes.Node>
)
}
} }
if (!existingBinding) { if (!existingBinding) {
......
...@@ -62,7 +62,7 @@ export default function ({ ...@@ -62,7 +62,7 @@ export default function ({
let callExpression = refPath.parentPath let callExpression = refPath.parentPath
if ( if (
callExpression.isMemberExpression() && callExpression?.isMemberExpression() &&
callExpression.node.computed === false callExpression.node.computed === false
) { ) {
const property = callExpression.get('property') const property = callExpression.get('property')
...@@ -74,14 +74,11 @@ export default function ({ ...@@ -74,14 +74,11 @@ export default function ({
} }
} }
if (!callExpression.isCallExpression()) return if (!callExpression?.isCallExpression()) return
const callExpression_ = let args = callExpression.get('arguments')
callExpression as NodePath<BabelTypes.CallExpression>
let args = callExpression_.get('arguments')
if (args.length > 2) { if (args.length > 2) {
throw callExpression_.buildCodeFrameError( throw callExpression.buildCodeFrameError(
'next/dynamic only accepts 2 arguments' 'next/dynamic only accepts 2 arguments'
) )
} }
...@@ -97,10 +94,10 @@ export default function ({ ...@@ -97,10 +94,10 @@ export default function ({
options = args[0] options = args[0]
} else { } else {
if (!args[1]) { if (!args[1]) {
callExpression_.node.arguments.push(t.objectExpression([])) callExpression.node.arguments.push(t.objectExpression([]))
} }
// This is needed as the code is modified above // This is needed as the code is modified above
args = callExpression_.get('arguments') args = callExpression.get('arguments')
loader = args[0] loader = args[0]
options = args[1] options = args[1]
} }
......
...@@ -814,23 +814,21 @@ function bindingToApi( ...@@ -814,23 +814,21 @@ function bindingToApi(
if (reactCompilerOptions) { if (reactCompilerOptions) {
const ruleKeys = ['*.ts', '*.js', '*.jsx', '*.tsx'] const ruleKeys = ['*.ts', '*.js', '*.jsx', '*.tsx']
if ( if (
Object.keys(nextConfig?.turbopack?.rules ?? []).some((key) => Object.keys(nextConfig?.turbopack?.rules ?? {}).some((key) =>
ruleKeys.includes(key) ruleKeys.includes(key)
) )
) { ) {
Log.warn( Log.warn(
`The React Compiler cannot be enabled automatically because 'turbopack.rules' contains a rule for '*.ts', '*.js', '*.jsx', and '*.tsx'. Remove this rule, or add 'babel-loader' and 'babel-plugin-react-compiler' to the Turbopack configuration manually.` "The React Compiler cannot be enabled automatically because 'turbopack.rules' contains " +
"a rule for '*.ts', '*.js', '*.jsx', and '*.tsx'. Remove this rule, or add " +
"'babel-loader' and 'babel-plugin-react-compiler' to the Turbopack configuration " +
'manually.'
) )
} else { } else {
if (!nextConfig.turbopack) { nextConfig.turbopack ??= {}
nextConfig.turbopack = {} nextConfig.turbopack.rules ??= {}
}
if (!nextConfig.turbopack.rules) {
nextConfig.turbopack.rules = {}
}
for (const key of ['*.ts', '*.js', '*.jsx', '*.tsx']) { for (const key of ruleKeys) {
nextConfig.turbopack.rules[key] = { nextConfig.turbopack.rules[key] = {
browser: { browser: {
foreign: false, foreign: false,
...@@ -839,8 +837,8 @@ function bindingToApi( ...@@ -839,8 +837,8 @@ function bindingToApi(
originalNextConfig.experimental.reactCompiler, originalNextConfig.experimental.reactCompiler,
projectPath, projectPath,
nextConfig.dev, nextConfig.dev,
false, /* isServer */ false,
undefined /* reactCompilerExclude */ undefined
), ),
], ],
}, },
......
...@@ -1115,20 +1115,20 @@ importers: ...@@ -1115,20 +1115,20 @@ importers:
specifier: 1.0.0 specifier: 1.0.0
version: 1.0.0 version: 1.0.0
'@types/babel__code-frame': '@types/babel__code-frame':
specifier: 7.0.2 specifier: 7.0.6
version: 7.0.2 version: 7.0.6
'@types/babel__core': '@types/babel__core':
specifier: 7.1.12 specifier: 7.20.5
version: 7.1.12 version: 7.20.5
'@types/babel__generator': '@types/babel__generator':
specifier: 7.6.2 specifier: 7.27.0
version: 7.6.2 version: 7.27.0
'@types/babel__template': '@types/babel__template':
specifier: 7.4.0 specifier: 7.4.4
version: 7.4.0 version: 7.4.4
'@types/babel__traverse': '@types/babel__traverse':
specifier: 7.11.0 specifier: 7.20.7
version: 7.11.0 version: 7.20.7
'@types/bytes': '@types/bytes':
specifier: 3.1.1 specifier: 3.1.1
version: 3.1.1 version: 3.1.1
...@@ -5463,29 +5463,20 @@ packages: ...@@ -5463,29 +5463,20 @@ packages:
'@types/aws-lambda@8.10.119': '@types/aws-lambda@8.10.119':
resolution: {integrity: sha512-Vqm22aZrCvCd6I5g1SvpW151jfqwTzEZ7XJ3yZ6xaZG31nUEOEyzzVImjRcsN8Wi/QyPxId/x8GTtgIbsy8kEw==} resolution: {integrity: sha512-Vqm22aZrCvCd6I5g1SvpW151jfqwTzEZ7XJ3yZ6xaZG31nUEOEyzzVImjRcsN8Wi/QyPxId/x8GTtgIbsy8kEw==}
'@types/babel__code-frame@7.0.2': '@types/babel__code-frame@7.0.6':
resolution: {integrity: sha512-imO+jT/yjOKOAS5GQZ8SDtwiIloAGGr6OaZDKB0V5JVaSfGZLat5K5/ZRtyKW6R60XHV3RHYPTFfhYb+wDKyKg==} resolution: {integrity: sha512-Anitqkl3+KrzcW2k77lRlg/GfLZLWXBuNgbEcIOU6M92yw42vsd3xV/Z/yAHEj8m+KUjL6bWOVOFqX8PFPJ4LA==}
'@types/babel__core@7.1.12':
resolution: {integrity: sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==}
'@types/babel__core@7.20.5': '@types/babel__core@7.20.5':
resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
'@types/babel__generator@7.6.2': '@types/babel__generator@7.27.0':
resolution: {integrity: sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==} resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==}
'@types/babel__template@7.4.0': '@types/babel__template@7.4.4':
resolution: {integrity: sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==} resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==}
'@types/babel__traverse@7.11.0': '@types/babel__traverse@7.20.7':
resolution: {integrity: sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg==} resolution: {integrity: sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==}
'@types/babel__traverse@7.11.1':
resolution: {integrity: sha512-Vs0hm0vPahPMYi9tDjtP66llufgO3ST16WXaSTtDGEl9cewAl3AibmxWw6TINOqHPT9z0uABKAYjT9jNSg4npw==}
'@types/babel__traverse@7.20.6':
resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==}
'@types/body-parser@1.17.1': '@types/body-parser@1.17.1':
resolution: {integrity: sha512-RoX2EZjMiFMjZh9lmYrwgoP9RTpAjSHiJxdp4oidAQVO02T7HER3xj9UKue5534ULWeqVEkujhWcyvUce+d68w==} resolution: {integrity: sha512-RoX2EZjMiFMjZh9lmYrwgoP9RTpAjSHiJxdp4oidAQVO02T7HER3xj9UKue5534ULWeqVEkujhWcyvUce+d68w==}
...@@ -21394,42 +21385,26 @@ snapshots: ...@@ -21394,42 +21385,26 @@ snapshots:
'@types/aws-lambda@8.10.119': {} '@types/aws-lambda@8.10.119': {}
'@types/babel__code-frame@7.0.2': {} '@types/babel__code-frame@7.0.6': {}
'@types/babel__core@7.1.12':
dependencies:
'@babel/parser': 7.27.0
'@babel/types': 7.27.0
'@types/babel__generator': 7.6.2
'@types/babel__template': 7.4.0
'@types/babel__traverse': 7.11.1
'@types/babel__core@7.20.5': '@types/babel__core@7.20.5':
dependencies: dependencies:
'@babel/parser': 7.27.0 '@babel/parser': 7.27.0
'@babel/types': 7.27.0 '@babel/types': 7.27.0
'@types/babel__generator': 7.6.2 '@types/babel__generator': 7.27.0
'@types/babel__template': 7.4.0 '@types/babel__template': 7.4.4
'@types/babel__traverse': 7.11.0 '@types/babel__traverse': 7.20.7
'@types/babel__generator@7.6.2': '@types/babel__generator@7.27.0':
dependencies: dependencies:
'@babel/types': 7.27.0 '@babel/types': 7.27.0
'@types/babel__template@7.4.0': '@types/babel__template@7.4.4':
dependencies: dependencies:
'@babel/parser': 7.27.0 '@babel/parser': 7.27.0
'@babel/types': 7.27.0 '@babel/types': 7.27.0
'@types/babel__traverse@7.11.0': '@types/babel__traverse@7.20.7':
dependencies:
'@babel/types': 7.27.0
'@types/babel__traverse@7.11.1':
dependencies:
'@babel/types': 7.27.0
'@types/babel__traverse@7.20.6':
dependencies: dependencies:
'@babel/types': 7.27.0 '@babel/types': 7.27.0
...@@ -22883,7 +22858,7 @@ snapshots: ...@@ -22883,7 +22858,7 @@ snapshots:
'@babel/template': 7.27.0 '@babel/template': 7.27.0
'@babel/types': 7.27.0 '@babel/types': 7.27.0
'@types/babel__core': 7.20.5 '@types/babel__core': 7.20.5
'@types/babel__traverse': 7.11.0 '@types/babel__traverse': 7.20.7
babel-plugin-macros@3.0.1: babel-plugin-macros@3.0.1:
dependencies: dependencies:
...@@ -32378,7 +32353,7 @@ snapshots: ...@@ -32378,7 +32353,7 @@ snapshots:
'@babel/traverse': 7.27.0 '@babel/traverse': 7.27.0
'@babel/types': 7.27.0 '@babel/types': 7.27.0
'@types/babel__core': 7.20.5 '@types/babel__core': 7.20.5
'@types/babel__traverse': 7.20.6 '@types/babel__traverse': 7.20.7
'@types/doctrine': 0.0.9 '@types/doctrine': 0.0.9
'@types/resolve': 1.20.6 '@types/resolve': 1.20.6
doctrine: 3.0.0 doctrine: 3.0.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment