New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-njs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-njs - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

5

index.js

@@ -105,6 +105,3 @@ const { declare } = require('@babel/helper-plugin-utils')

}],
[transformBlockScoping, {
// Throw when it's impossible to rewrite let/const without adding an additional function.
throwIfClosureRequired: true,
}],
[transformBlockScoping],
[transformClasses, {

@@ -111,0 +108,0 @@ // This is more performant, but it might produce unexpected results in some (corner) cases.

2

package.json
{
"name": "babel-preset-njs",
"version": "0.2.0",
"version": "0.2.1",
"description": "A Babel preset for njs - NGINX JavaScript.",

@@ -5,0 +5,0 @@ "author": "Jakub Jirutka <jakub@jirutka.cz>",

@@ -9,2 +9,9 @@ A [Babel](https://babeljs.io)

**TIP:** Take a look at
[njs-typescript-starter](https://github.com/jirutka/njs-typescript-starter)
for a complete starter template for developing njs scripts for
[NGINX](https://nginx.org) server in
[TypeScript](https://www.typescriptlang.org) (including integration
tests).
## Installation

@@ -100,2 +107,4 @@

It sets the following plugin options:
- [async-to-promises](https://github.com/rpetrich/babel-plugin-transform-async-to-promises):

@@ -157,3 +166,3 @@ `externalHelpers`, `inlineHelpers`

The list of included Babel plugins is available
[here](https://github.com/jirutka/babel-preset-njs/blob/v0.2.0/README.adoc#plugins).
[here](https://github.com/jirutka/babel-preset-njs/blob/v0.2.1/README.adoc#plugins).

@@ -160,0 +169,0 @@ ## References

Sorry, the diff of this file is not supported yet

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