npm / @babel/types / 8.0.8

@babel/types 8.0.8

Source
https://github.com/babel/babel
Artifact scanned
types-8.0.8.tgz (npm tarball · 122.0 KB · SHA-256 91fabe10400d…)
Compared with
types-8.0.6.tgz (0 signals introduced since)
Files
5 scanned, 2 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 37 info
Scan time
6.6 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 6 of 6 warn and critical signals; 6 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-10-24 17:12

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review long-line lib/index-legacy.d.ts:45:1

    line length 5630 characters (raw pass, confidence 0.65)

    export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | BigIntLiteralTypeAnnotation | Binary | BinaryExpression | BindExpression | Block | BlockPa
    likely benign LLM, confidence 0.97 A 5630-character union type alias in a Babel type declaration file.
    Reasoning

    This is a generated TypeScript declaration file for @babel/types, where a single union type alias is written on one line. Long lines in .d.ts files are a formatting artifact with no executable content.

  2. line length 1629 characters (raw pass, confidence 0.50)

    export type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStat
  3. line length 865 characters (raw pass, confidence 0.50)

    export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | Sequen
  4. line length 958 characters (raw pass, confidence 0.50)

    export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableD
  5. line length 593 characters (raw pass, confidence 0.50)

    export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | Declar
  6. line length 1459 characters (raw pass, confidence 0.50)

    export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExp
  7. line length 681 characters (raw pass, confidence 0.50)

    export type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | N
  8. line length 1364 characters (raw pass, confidence 0.50)

    export type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSN
  9. line length 690 characters (raw pass, confidence 0.50)

    export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference
  10. info warn → info by review long-line lib/index.d.ts:373:1

    line length 4947 characters (raw pass, confidence 0.65)

    type Node = AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | BigIntLiteralTypeAnnotation | BinaryExpression | BindExpression | BlockStatement | BooleanLiteral | BooleanL
    likely benign LLM, confidence 0.97 A 4947-character union type of AST node names in Babel's type declarations.
    Reasoning

    This is a generated Babel type declaration containing a long union of AST node type names. It is declarative typing only and does not execute anything.

  11. info long-line lib/index.d.ts:1882:1

    line length 1622 characters (raw pass, confidence 0.50)

    type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement |
  12. info long-line lib/index.d.ts:1883:1

    line length 858 characters (raw pass, confidence 0.50)

    type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpre
  13. info long-line lib/index.d.ts:1888:1

    line length 951 characters (raw pass, confidence 0.50)

    type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclarat
  14. info long-line lib/index.d.ts:1900:1

    line length 586 characters (raw pass, confidence 0.50)

    type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariab
  15. info long-line lib/index.d.ts:1918:1

    line length 1452 characters (raw pass, confidence 0.50)

    type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDecl
  16. info long-line lib/index.d.ts:1919:1

    line length 674 characters (raw pass, confidence 0.50)

    type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | Nullable
  17. info long-line lib/index.d.ts:1928:1

    line length 1357 characters (raw pass, confidence 0.50)

    type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyw
  18. info long-line lib/index.d.ts:1930:1

    line length 683 characters (raw pass, confidence 0.50)

    type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTy
  19. info long-line lib/index.d.ts:2019:1

    line length 1237 characters (raw pass, confidence 0.50)

        ConditionalExpression: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression
  20. info long-line lib/index.d.ts:2036:1

    line length 1228 characters (raw pass, confidence 0.50)

        DoExpression: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | Declar
  21. info long-line lib/index.d.ts:2039:1

    line length 530 characters (raw pass, confidence 0.50)

        EmptyTypeAnnotation: ArrayTypeAnnotation | DeclareExportDeclaration | DeclareOpaqueType | DeclareTypeAlias | FunctionTypeAnnotation | FunctionTypeParam | IndexedAccessType | IntersectionTypeAnnotation | NullableTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty
  22. info long-line lib/index.d.ts:2049:1

    line length 531 characters (raw pass, confidence 0.50)

        ExistsTypeAnnotation: ArrayTypeAnnotation | DeclareExportDeclaration | DeclareOpaqueType | DeclareTypeAlias | FunctionTypeAnnotation | FunctionTypeParam | IndexedAccessType | IntersectionTypeAnnotation | NullableTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypePropert
  23. info long-line lib/index.d.ts:2062:1

    line length 1234 characters (raw pass, confidence 0.50)

        FunctionExpression: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | 
  24. info warn → info by review long-line lib/index.d.ts:2066:1

    line length 2542 characters (raw pass, confidence 0.65)

        Identifier: ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | BreakStatement | CallExpression | CatchClause | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPr
    likely benign LLM, confidence 0.97 A 2542-character union of Babel AST identifier types in a declaration file.
    Reasoning

    A long union of node type names inside a generated Babel declaration file. Type-level only; long lines here are typical of codegen output.

  25. info long-line lib/index.d.ts:2072:1

    line length 1232 characters (raw pass, confidence 0.50)

        ImportExpression: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | De
  26. info long-line lib/index.d.ts:2085:1

    line length 1268 characters (raw pass, confidence 0.50)

        JSXElement: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | Declared
  27. info long-line lib/index.d.ts:2088:1

    line length 1269 characters (raw pass, confidence 0.50)

        JSXFragment: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | Declare
  28. info long-line lib/index.d.ts:2139:1

    line length 1587 characters (raw pass, confidence 0.50)

        StringLiteral: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | Decla
  29. info long-line lib/index.d.ts:2148:1

    line length 1259 characters (raw pass, confidence 0.50)

        TSAsExpression: ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalEx
  30. info long-line lib/index.d.ts:2169:1

    line length 1241 characters (raw pass, confidence 0.50)

        TSInstantiationExpression: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpres
  31. info long-line lib/index.d.ts:2183:1

    line length 1264 characters (raw pass, confidence 0.50)

        TSNonNullExpression: ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | Conditio
  32. info long-line lib/index.d.ts:2193:1

    line length 1266 characters (raw pass, confidence 0.50)

        TSSatisfiesExpression: ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | Condit
  33. info long-line lib/index.d.ts:2201:1

    line length 1260 characters (raw pass, confidence 0.50)

        TSTypeAssertion: ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalE
  34. info long-line lib/index.d.ts:2241:1

    line length 1231 characters (raw pass, confidence 0.50)

        YieldExpression: ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BindExpression | CallExpression | ClassAccessorProperty | ClassDeclaration | ClassExpression | ClassMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | Dec
  35. info warn → info by review long-line lib/index.d.ts:3644:1

    line length 28227 characters (raw pass, confidence 0.65)

    export { ACCESSOR_TYPES, ALIAS_KEYS, ASSIGNMENT_OPERATORS, type Accessor, type Aliases, type AnyTypeAnnotation, type ArgumentPlaceholder, type ArrayExpression, type ArrayPattern, type ArrayTypeAnnotation, type ArrowFunctionExpression, type AssignmentExpression, type AssignmentPattern, type AwaitExpression, BINARY_OPERA
    likely benign LLM, confidence 0.97 A 28227-character export statement re-exporting Babel constants and types.
    Reasoning

    A generated re-export list of Babel type and constant names in a declaration file. Long export lines are normal for the generated barrel output of @babel/types.

  36. info warn → info by review error-stack-inspection lib/index.js:2877:16

    `includes` called on `new Error().stack` — string-matching the call stack is the structural shape of sandbox/analyzer detection (ast pass, confidence 0.85)

              const error = new Error("NumericLiterals must be non-negative finite numbers. " + `You can use t.valueToNode(${val}) instead.`);
              if (!new Error().stack.includes("regenerator")) {
                throw error;
              }
    likely benign LLM, confidence 0.80 Babel's numeric literal validator checks whether the call stack includes 'regenerator' before throwing a non-negative-number error.
    Reasoning

    This is the NumericLiteral validator in @babel/types. It inspects the stack only to decide whether to throw an error for a regenerator-generated literal, which is a compatibility exception rather than a sandbox or analyzer check. It does not run code or alter behaviour outside the error path, so it looks like a legitimate workaround, though the stack-string match is an unusual pattern.

  37. info warn → info by review long-line lib/index.js:10676:1

    line length 25094 characters (raw pass, confidence 0.65)

    export { ACCESSOR_TYPES, ALIAS_KEYS, ASSIGNMENT_OPERATORS, AnyTypeAnnotation, ArgumentPlaceholder, ArrayExpression, ArrayPattern, ArrayTypeAnnotation, ArrowFunctionExpression, AssignmentExpression, AssignmentPattern, AwaitExpression, BINARY_OPERATORS, BINARY_TYPES, BLOCKPARENT_TYPES, BLOCK_TYPES, BOOLEAN_BINARY_OPERATO
    likely benign LLM, confidence 0.97 A 25094-character export statement in the bundled @babel/types index.
    Reasoning

    A generated re-export statement of Babel constants and builder names in the bundled JavaScript. Long lines of this kind are a bundler/codegen artifact with no obfuscation or malicious behaviour.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o types-8.0.8.tgz https://registry.npmjs.org/@babel/types/-/types-8.0.8.tgz
printf '%s  %s\n' 91fabe10400dccc4a9d8de16fa44c7513ddc9e055672905d10b0402c8c29f568 types-8.0.8.tgz | shasum -a 256 -c -
mkdir pkg && tar -xzf types-8.0.8.tgz -C pkg --strip-components 1
disclude scan --untrusted --severity info pkg