Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

automatic-semicolon-insertion

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

automatic-semicolon-insertion - npm Package Compare versions

Comparing version 2.0.6 to 3.0.0

build/cjs/index.d.ts

34

package.json
{
"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 @@ /*

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