🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

add-variable-declarations

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-variable-declarations - npm Package Compare versions

Comparing version

to
5.0.0

dist/index.d.ts

43

package.json
{
"name": "add-variable-declarations",
"version": "4.0.7",
"version": "5.0.0",
"description": "Add variable declarations for global assignments.",
"main": "src/index.js",
"types": "src/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"directories": {

@@ -11,8 +18,8 @@ "test": "test"

"scripts": {
"build": "tsc --project .",
"build": "tsup",
"test": "jest",
"prepare": "tsc --project ."
"prepublishOnly": "tsup"
},
"files": [
"src/**/*.{js,d.ts,js.map}"
"dist"
],

@@ -36,18 +43,18 @@ "repository": {

"devDependencies": {
"@types/babel__traverse": "^7.0.7",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.7",
"jest": "^24.9.0",
"jest-junit": "^8.0.0",
"ts-jest": "^24.1.0",
"typescript": "^3.6.3"
"@types/babel__traverse": "^7.18.3",
"@types/jest": "^29.2.3",
"@types/node": "^14.0.0",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"tsup": "^6.5.0",
"typescript": "^4.9.3"
},
"dependencies": {
"@babel/traverse": "^7.6.2",
"@babel/types": "^7.6.1",
"@codemod/parser": "^1.0.3",
"magic-string": "^0.25.3"
"@babel/traverse": "^7.20.5",
"@babel/types": "^7.20.5",
"@codemod/parser": "^1.2.1",
"magic-string": "^0.26.7"
},
"resolutions": {
"**/@babel/types": "7.6.1"
"**/@babel/types": "7.20.5"
},

@@ -54,0 +61,0 @@ "publishConfig": {

@@ -17,3 +17,3 @@ # add-variable-declarations

```js
import addVariableDeclarations from 'add-variable-declarations';
import { addVariableDeclarations } from 'add-variable-declarations';

@@ -67,2 +67,2 @@ const source = `

MIT
MIT