Huge News!Announcing our $40M Series B led by Abstract Ventures.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.7.8-alpha to 6.7.9-alpha

65

index.d.ts

@@ -8,42 +8,41 @@ // Type definitions for babylon v6.7

declare module "babylon" {
import * as t from 'babel-types';
type Node = t.Node;
import * as t from 'babel-types';
type Node = t.Node;
export function parse(code: string, opts?: BabylonOptions): Node;
export function parse(code: string, opts?: BabylonOptions): Node;
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;
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;
/**
* By default, a return statement at the top level raises an error. Set this to true to accept such code.
*/
allowReturnOutsideFunction?: boolean;
/**
* By default, a return statement at the top level raises an error. Set this to true to accept such code.
*/
allowReturnOutsideFunction?: boolean;
allowSuperOutsideMethod?: boolean;
allowSuperOutsideMethod?: boolean;
/**
* Indicate the mode the code should be parsed in. Can be either "script" or "module".
*/
sourceType?: 'script' | 'module';
/**
* Indicate the mode the code should be parsed in. Can be either "script" or "module".
*/
sourceType?: 'script' | 'module';
/**
* Correlate output AST nodes with their source filename. Useful when
* generating code and source maps from the ASTs of multiple input files.
*/
sourceFilename?: string;
/**
* Correlate output AST nodes with their source filename. Useful when
* generating code and source maps from the ASTs of multiple input files.
*/
sourceFilename?: string;
/**
* Array containing the plugins that you want to enable.
*/
plugins?: PluginName[];
}
/**
* Array containing the plugins that you want to enable.
*/
plugins?: PluginName[];
}
export type PluginName = 'jsx' | 'flow' | 'asyncFunctions' | 'classConstructorCall' | 'doExpressions'
| 'trailingFunctionCommas' | 'objectRestSpread' | 'decorators' | 'classProperties' | 'exportExtensions'
| 'exponentiationOperator' | 'asyncGenerators' | 'functionBind' | 'functionSent';
}
export type PluginName = 'jsx' | 'flow' | 'asyncFunctions' | 'classConstructorCall' | 'doExpressions'
| 'trailingFunctionCommas' | 'objectRestSpread' | 'decorators' | 'classProperties' | 'exportExtensions'
| 'exponentiationOperator' | 'asyncGenerators' | 'functionBind' | 'functionSent';
{
"name": "@types/babylon",
"version": "6.7.8-alpha",
"version": "6.7.9-alpha",
"description": "TypeScript definitions for babylon v6.7",

@@ -8,7 +8,11 @@ "main": "",

"author": "Troy Gerwien <https://github.com/yortus>",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"license": "MIT",
"typings": "index.d.ts",
"dependencies": {
"@types/babel-types": "*"
"@types/babel-types": "6.7.9-alpha"
}
}

@@ -11,6 +11,6 @@ # Installation

Additional Details
* Last updated: Wed, 25 May 2016 04:19:59 GMT
* File structure: DeclareModule
* Last updated: Fri, 01 Jul 2016 22:02:52 GMT
* File structure: ProperModule
* Library Dependencies: babel-types
* Module Dependencies: none
* Module Dependencies: babel-types
* Global values: none

@@ -17,0 +17,0 @@

@@ -7,3 +7,5 @@ {

],
"moduleDependencies": [],
"moduleDependencies": [
"babel-types"
],
"libraryMajorVersion": "6",

@@ -16,3 +18,3 @@ "libraryMinorVersion": "7",

"sourceBranch": "types-2.0",
"kind": "DeclareModule",
"kind": "ProperModule",
"globals": [],

@@ -25,3 +27,3 @@ "declaredModules": [

],
"contentHash": "8206f1de8dd9bc3e2ffab683bc83f9629ab6c79ba268bf1aeab6ffdf7ac01d8c"
"contentHash": "5287b01cb7459e0de6068dc410f90b446e53295af892d25fcf421a23f24fa402"
}
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