@babel/generator
Advanced tools
+2
-3
@@ -102,2 +102,3 @@ import * as t from '@babel/types'; | ||
| * - "with-legacy" : `import { a } from "b" with type: "json";` | ||
| * @deprecated Removed in Babel 8. | ||
| */ | ||
@@ -119,6 +120,4 @@ importAttributesKeyword?: "with" | "assert" | "with-legacy"; | ||
| */ | ||
| declare function generate(ast: t.Node, opts?: GeneratorOptions, code?: string | { | ||
| [filename: string]: string; | ||
| }): GeneratorResult; | ||
| declare function generate(ast: t.Node, opts?: GeneratorOptions, code?: string | Record<string, string>): GeneratorResult; | ||
| export { type GeneratorOptions, type GeneratorResult, generate as default, generate }; |
+6
-6
| { | ||
| "name": "@babel/generator", | ||
| "version": "8.0.0-beta.3", | ||
| "version": "8.0.0-beta.4", | ||
| "description": "Turns an AST into code.", | ||
@@ -22,4 +22,4 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
| "dependencies": { | ||
| "@babel/parser": "^8.0.0-beta.3", | ||
| "@babel/types": "^8.0.0-beta.3", | ||
| "@babel/parser": "^8.0.0-beta.4", | ||
| "@babel/types": "^8.0.0-beta.4", | ||
| "@jridgewell/gen-mapping": "^0.3.12", | ||
@@ -31,5 +31,5 @@ "@jridgewell/trace-mapping": "^0.3.28", | ||
| "devDependencies": { | ||
| "@babel/core": "^8.0.0-beta.3", | ||
| "@babel/helper-fixtures": "^8.0.0-beta.3", | ||
| "@babel/plugin-transform-typescript": "^8.0.0-beta.3", | ||
| "@babel/core": "^8.0.0-beta.4", | ||
| "@babel/helper-fixtures": "^8.0.0-beta.4", | ||
| "@babel/plugin-transform-typescript": "^8.0.0-beta.4", | ||
| "@jridgewell/sourcemap-codec": "^1.5.3", | ||
@@ -36,0 +36,0 @@ "charcodes": "^0.2.0" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
537979
-2.53%4958
-1.24%Updated
Updated