New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/babylon

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/babylon - npm Package Compare versions

Comparing version 6.16.5 to 6.16.6

12

babylon/index.d.ts

@@ -19,3 +19,3 @@ // Type definitions for babylon 6.16

*/
allowImportExportEverywhere?: boolean;
allowImportExportEverywhere?: boolean | undefined;

@@ -25,5 +25,5 @@ /**

*/
allowReturnOutsideFunction?: boolean;
allowReturnOutsideFunction?: boolean | undefined;
allowSuperOutsideMethod?: boolean;
allowSuperOutsideMethod?: boolean | undefined;

@@ -33,3 +33,3 @@ /**

*/
sourceType?: 'script' | 'module';
sourceType?: 'script' | 'module' | undefined;

@@ -40,3 +40,3 @@ /**

*/
sourceFilename?: string;
sourceFilename?: string | undefined;

@@ -46,3 +46,3 @@ /**

*/
plugins?: PluginName[];
plugins?: PluginName[] | undefined;
}

@@ -49,0 +49,0 @@

{
"name": "@types/babylon",
"version": "6.16.5",
"version": "6.16.6",
"description": "TypeScript definitions for babylon",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon",
"license": "MIT",

@@ -19,6 +20,7 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/babylon"
},

@@ -29,4 +31,4 @@ "scripts": {},

},
"typesPublisherContentHash": "d6861e06508c0c54a6a46d7b72e96db7907de3621ac44aab8a3e647b8431cddd",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "294fc5f5bb76f2c3e69836bdab4091018fc8b4a3cecc40f5927bbb5dc3aafcbc",
"typeScriptVersion": "3.6"
}

@@ -5,13 +5,76 @@ # Installation

# Summary
This package contains type definitions for babylon ( https://github.com/babel/babylon ).
This package contains type definitions for babylon (https://github.com/babel/babylon).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon/index.d.ts)
````ts
// Type definitions for babylon 6.16
// Project: https://github.com/babel/babylon, https://babeljs.io
// Definitions by: Troy Gerwien <https://github.com/yortus>
// Marvin Hagemeister <https://github.com/marvinhagemeister>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
Additional Details
* Last updated: Wed, 13 Feb 2019 16:16:46 GMT
* Dependencies: @types/babel-types
import { File, Expression } from 'babel-types';
export function parse(code: string, opts?: BabylonOptions): File;
export function parseExpression(input: string, options?: BabylonOptions): Expression;
export interface BabylonOptions {
/**
* By default, import and export declarations can only appear at a program's top level.
* Setting this option to true allows them anywhere where a statement is allowed.
*/
allowImportExportEverywhere?: boolean | undefined;
/**
* By default, a return statement at the top level raises an error. Set this to true to accept such code.
*/
allowReturnOutsideFunction?: boolean | undefined;
allowSuperOutsideMethod?: boolean | undefined;
/**
* Indicate the mode the code should be parsed in. Can be either "script" or "module".
*/
sourceType?: 'script' | 'module' | undefined;
/**
* Correlate output AST nodes with their source filename. Useful when
* generating code and source maps from the ASTs of multiple input files.
*/
sourceFilename?: string | undefined;
/**
* Array containing the plugins that you want to enable.
*/
plugins?: PluginName[] | undefined;
}
export type PluginName =
'estree' |
'jsx' |
'flow' |
'typescript' |
'classConstructorCall' |
'doExpressions' |
'objectRestSpread' |
'decorators' |
'classProperties' |
'exportExtensions' |
'asyncGenerators' |
'functionBind' |
'functionSent' |
'dynamicImport';
````
### Additional Details
* Last updated: Tue, 06 Jul 2021 18:05:41 GMT
* Dependencies: [@types/babel-types](https://npmjs.com/package/@types/babel-types)
* Global values: none
# Credits
These definitions were written by Troy Gerwien <https://github.com/yortus>, Marvin Hagemeister <https://github.com/marvinhagemeister>.
These definitions were written by [Troy Gerwien](https://github.com/yortus), and [Marvin Hagemeister](https://github.com/marvinhagemeister).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc