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

babel-plugin-transform-lhs-constants

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-lhs-constants - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

17

package.json
{
"name": "babel-plugin-transform-lhs-constants",
"version": "1.0.0",
"version": "1.1.0",
"description": "The Babel plugin to move constant values to the left-hand side of binary nodes",

@@ -11,3 +11,3 @@ "main": "dist/index.cjs",

"build": "rollup -c",
"test": "node --experimental-vm-modules node_modules/.bin/jest"
"test": "NODE_NO_WARNINGS=1 node --experimental-loader ts-node/esm --test test/*.spec.ts"
},

@@ -19,12 +19,13 @@ "peerDependencies": {

"devDependencies": {
"@babel/preset-typescript": "^7.23.3",
"@babel/core": "^7.24.4",
"@babel/preset-typescript": "^7.24.1",
"@babel/types": "^7.24.0",
"@evilmartians/lefthook": "^1.6.5",
"@evilmartians/lefthook": "^1.6.8",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/babel__helper-plugin-utils": "^7.10.3",
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"rollup": "^4.12.1",
"typescript": "^5.4.2"
"@types/node": "^20.12.4",
"rollup": "^4.14.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.3"
},

@@ -31,0 +32,0 @@ "files": [

@@ -7,2 +7,4 @@ # babel-plugin-transform-lhs-constants

## Example
```diff

@@ -15,9 +17,24 @@ - typeof foo === "string"

Using npm:
```bash
npm i babel-plugin-transform-lhs-constants -D
# or
npm i -D babel-plugin-transform-lhs-constants
```
or using yarn:
```bash
yarn add babel-plugin-transform-lhs-constants -D
```
## Usage
With a configuration file [`babel.config.json`](https://babel.dev/docs/config-files#project-wide-configuration)
```json
{
"plugins": ["babel-plugin-transform-lhs-constants"]
}
```
## License
[MIT](./LICENSE)

Sorry, the diff of this file is not supported yet

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