Socket
Socket
Sign inDemoInstall

@types/escodegen

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/escodegen - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

escodegen/LICENSE

62

escodegen/index.d.ts

@@ -10,45 +10,45 @@ // Type definitions for escodegen

*/
indent?: IndentOptions;
indent?: IndentOptions | undefined;
/**
* New line string. Default is '\n'.
*/
newline?: string;
newline?: string | undefined;
/**
* White space string. Default is standard ' ' (\x20).
*/
space?: string;
space?: string | undefined;
/**
* Enforce JSON format of numeric and string literals. This option takes precedence over option.format.hexadecimal and option.format.quotes. Default is false.
*/
json?: boolean;
json?: boolean | undefined;
/**
* Try to generate shorter numeric literals than toString() (9.8.1). Default is false.
*/
renumber?: boolean;
renumber?: boolean | undefined;
/**
* Generate hexadecimal a numeric literal if it is shorter than its equivalents. Requires option.format.renumber. Default is false.
*/
hexadecimal?: boolean;
hexadecimal?: boolean | undefined;
/**
* Delimiter to use for string literals. Accepted values are: 'single', 'double', and 'auto'. When 'auto' is specified, escodegen selects a delimiter that results in a shorter literal. Default is 'single'.
*/
quotes?: string;
quotes?: string | undefined;
/**
* Escape as few characters in string literals as necessary. Default is false.
*/
escapeless?: boolean;
escapeless?: boolean | undefined;
/**
* Do not include superfluous whitespace characters and line terminators. Default is false.
*/
compact?: boolean;
compact?: boolean | undefined;
/**
* Preserve parentheses in new expressions that have no arguments. Default is true.
*/
parentheses?: boolean;
parentheses?: boolean | undefined;
/**
* Preserve semicolons at the end of blocks and programs. Default is true.
*/
semicolons?: boolean;
safeConcatenation?: boolean;
preserveBlankLines?: boolean;
semicolons?: boolean | undefined;
safeConcatenation?: boolean | undefined;
preserveBlankLines?: boolean | undefined;
}

@@ -60,11 +60,11 @@

*/
style?: string;
style?: string | undefined;
/**
* Base indent level. Default is 0.
*/
base?: number;
base?: number | undefined;
/**
* Adjust the indentation of multiline comments to keep asterisks vertically aligned. Default is false.
*/
adjustMultilineComment?: boolean;
adjustMultilineComment?: boolean | undefined;
}

@@ -76,11 +76,11 @@

*/
starlessGenerator?: boolean;
starlessGenerator?: boolean | undefined;
/**
* Default: false
*/
parenthesizedComprehensionBlock?: boolean;
parenthesizedComprehensionBlock?: boolean | undefined;
/**
* Default: false
*/
comprehensionExpressionStartsWithAssignment?: boolean;
comprehensionExpressionStartsWithAssignment?: boolean | undefined;
}

@@ -92,12 +92,12 @@

*/
format?: FormatOptions;
moz?: MozillaOptions;
format?: FormatOptions | undefined;
moz?: MozillaOptions | undefined;
/**
* Mozilla Parser API compatible parse function, e.g., the parse function exported by esprima. If it is provided, generator tries to use the 'raw' representation. See esprima raw information. Default is null.
*/
parse?: Function;
parse?: Function | undefined;
/**
* If comments are attached to AST, escodegen is going to emit comments to output code. Default is false.
*/
comment?: boolean;
comment?: boolean | undefined;
/**

@@ -107,12 +107,12 @@ * sourceMap is the source maps's source filename, that's a name that will show up in the browser debugger for the generated source (if source-maps is enabled).

*/
sourceMap?: string;
sourceMap?: string | undefined;
/**
* . If sourceMapWithCode is true generator returns output hash, where output.map is a source-map representation, which can be serialized as output.map.toString(). output.code is a string with generated JS code (note that it's not going to have //@ sourceMappingURL comment in it).
*/
sourceMapWithCode?: boolean;
sourceMapWithCode?: boolean | undefined;
/**
* Optionally option.sourceContent string can be passed (which represents original source of the file, for example it could be a source of coffeescript from which JS is being generated), if provided generated source map will have original source embedded in it.
*/
sourceContent?: string;
sourceCode?: string;
sourceContent?: string | undefined;
sourceCode?: string | undefined;
/**

@@ -122,11 +122,11 @@ * Optionally option.sourceMapRoot can be provided, in which case option.sourceMap will be treated as relative to it. For more information about source map itself, see source map library document, V3 draft and HTML5Rocks introduction. Default is undefined

*/
sourceMapRoot?: string;
sourceMapRoot?: string | undefined;
/**
* Recognize DirectiveStatement and distinguish it from ExpressionStatement. Default: false
*/
directive?: boolean;
directive?: boolean | undefined;
/**
* If file is provided, it will be used as file property of generated source map.
*/
file?: string;
file?: string | undefined;
/**

@@ -140,3 +140,3 @@ * Providing verbatim code generation option to Expression nodes.

*/
verbatim?: string;
verbatim?: string | undefined;
}

@@ -143,0 +143,0 @@

{
"name": "@types/escodegen",
"version": "0.0.6",
"version": "0.0.7",
"description": "TypeScript definitions for escodegen",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escodegen",
"license": "MIT",
"author": "Simon de Lang <https://github.com/simondel>",
"contributors": [
{
"name": "Simon de Lang",
"url": "https://github.com/simondel",
"githubUsername": "simondel"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/escodegen"
},
"scripts": {},
"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "cf570b54f275e79234277bc498aee95b974e39190fdfa6bd9d43a48a667bd089"
"typesPublisherContentHash": "552075dc5a9e84d6a9f09b84fb56aa65ca5618de45c7a008105815755c990d53",
"typeScriptVersion": "3.6"
}

@@ -8,12 +8,10 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/escodegen
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escodegen.
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:24 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
### Additional Details
* Last updated: Tue, 06 Jul 2021 19:03:39 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by Simon de Lang <https://github.com/simondel>.
These definitions were written by [Simon de Lang](https://github.com/simondel).
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