@types/babylon
Advanced tools
Comparing version 6.7.8-alpha to 6.7.9-alpha
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
3431
0
+ Added@types/babel-types@6.7.9-alpha(transitive)
- Removed@types/babel-types@7.0.16(transitive)