add-variable-declarations
Advanced tools
Comparing version
{ | ||
"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 |
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
67
1.52%30140
-42.96%6
-81.82%833
-2.57%1
Infinity%+ Added
- Removed
Updated
Updated
Updated
Updated