automatic-semicolon-insertion
Advanced tools
Comparing version 2.0.6 to 3.0.0
{ | ||
"name": "automatic-semicolon-insertion", | ||
"version": "2.0.6", | ||
"version": "3.0.0", | ||
"type": "module", | ||
"description": "Insert missing semicolons, remove unneeded ones.", | ||
@@ -20,4 +21,11 @@ "keywords": [ | ||
"author": "Brian Donovan", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"main": "build/cjs/index.js", | ||
"types": "build/cjs/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./build/esm/index.js", | ||
"require": "./build/cjs/index.js", | ||
"types": "./build/esm/index.d.ts" | ||
} | ||
}, | ||
"files": [ | ||
@@ -27,3 +35,3 @@ "build" | ||
"scripts": { | ||
"build": "rm -rf build && tsc", | ||
"build": "rm -rf build && tsc && tsc -p tsconfig.esm.json", | ||
"test": "jest", | ||
@@ -34,13 +42,13 @@ "test:watch": "jest --watch", | ||
"dependencies": { | ||
"@babel/traverse": "^7.15.0", | ||
"@babel/types": "^7.15.0" | ||
"@babel/traverse": "^7.18.2", | ||
"@babel/types": "^7.18.4" | ||
}, | ||
"devDependencies": { | ||
"@codemod/parser": "^1.1.1", | ||
"@types/babel__traverse": "^7.14.2", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^12.6.8", | ||
"jest": "^27.0.6", | ||
"ts-jest": "^27.0.5", | ||
"typescript": "^4.3.5" | ||
"@codemod/parser": "^1.2.1", | ||
"@types/babel__traverse": "^7.17.1", | ||
"@types/jest": "^28.1.0", | ||
"@types/node": "^14.18.20", | ||
"jest": "^28.1.0", | ||
"ts-jest": "^28.0.4", | ||
"typescript": "^4.7.3" | ||
}, | ||
@@ -47,0 +55,0 @@ "publishConfig": { |
@@ -14,8 +14,8 @@ # automatic-semicolon-insertion | ||
```js | ||
import asi from "automatic-semicolon-insertion"; | ||
import { parse } from "@codemod/parser"; | ||
import * as asi from 'automatic-semicolon-insertion'; | ||
import { parse } from '@codemod/parser'; | ||
const source = "let a = class {}"; // should have a semicolon after it | ||
const source = 'let a = class {}'; // should have a semicolon after it | ||
console.log(asi(source, parse(source))); | ||
console.log(asi.process(source, parse(source))); | ||
@@ -22,0 +22,0 @@ /* |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14594
380
Yes
Updated@babel/traverse@^7.18.2
Updated@babel/types@^7.18.4