npm / @babel/types / 8.0.6

@babel/types 8.0.6

Source
https://github.com/babel/babel
Artifact scanned
types-8.0.6.tgz (npm tarball · 122.0 KB · SHA-256 f9520efb5fda…)
Compared with
types-8.0.5.tgz (0 signals introduced since)
Files
5 scanned, 2 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 37 info
Scan time
5.9 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-23 16:51

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.93 A very long generated TypeScript union type alias listing AST node types.
    Reasoning

    A 5630-character line of union type aliases in a generated TypeScript declaration file is typical of Babel's type generation. Long lines in declaration files are a formatting issue, not obfuscation or malicious intent.

  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.93 A long generated union type of Babel AST node names.
    Reasoning

    The line is a generated union of Babel AST node type names in a declaration file. Length alone, with no encoding or hidden content, does not indicate malice.

  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.93 A long generated union of AST node type names in a declaration file.
    Reasoning

    This is a long generated type-annotation union of AST node names within a declaration file. It matches standard Babel type generation and shows no obfuscation.

  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.93 A very long generated re-export statement for Babel constants and types.
    Reasoning

    This is a single long generated export statement re-exporting Babel type constants and builders. The raw long-line signal is a formatting artifact of generated code.

  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.88 Babel's numeric literal validator checks the call stack for 'regenerator' to choose between throwing and warning.
    Reasoning

    This is Babel's @babel/types numericLiteral validator. It checks the stack for 'regenerator' to decide whether to throw or merely warn, which is a known compatibility shim for regenerator-transformed code. It inspects the stack for a benign library-compatibility reason, not to detect a sandbox or analyzer, and does not hide behavior or run anything dangerous.

  37. info warn → info by review long-line lib/index.js:10675: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.93 A long generated ES export list of Babel type and constant names.
    Reasoning

    A 25094-character generated export list of Babel type and constant names in the bundled library. It is a formatting artifact, consistent with the rest of the package.

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.6.tgz https://registry.npmjs.org/@babel/types/-/types-8.0.6.tgz
printf '%s  %s\n' f9520efb5fdaeec5d1ada1dfa1372166bc4682d5f157096a24fbe6a3ca31677e types-8.0.6.tgz | shasum -a 256 -c -
mkdir pkg && tar -xzf types-8.0.6.tgz -C pkg --strip-components 1
disclude scan --untrusted --severity info pkg