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

babel-preset-nodely

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-nodely - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

12

lib/index.js
"use strict";
// eslint-disable-line flowtype/no-weak-types
function getPlugins() {
return ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-optional-chaining', '@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-object-rest-spread'];
// eslint-disable-line flowtype/no-weak-types
function getPlugins(options) {
var loose = typeof options.loose === 'boolean' ? options.loose : true;
return [['@babel/plugin-proposal-class-properties', {
loose: loose
}], '@babel/plugin-proposal-optional-chaining', '@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-object-rest-spread'];
}

@@ -24,3 +28,5 @@

return {
plugins: getPlugins(),
plugins: getPlugins(options || {
loose: true
}),
presets: getPresets(options || {

@@ -27,0 +33,0 @@ loose: true

{
"name": "babel-preset-nodely",
"version": "0.4.2",
"version": "0.4.3",
"description": "Babel preset used by nodely.",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"build": "nodely -s ./src -o ./lib -v && npm run gen-types",
"gen-types": "flow gen-flow-files src --ignore \".+/__tests__/.+\" --out-dir lib",
"gen-types": "flow-copy-source --ignore \"**/__tests__/**\" src lib",
"postpublish": "codecov",

@@ -43,8 +43,9 @@ "prepublishOnly": "npm run build",

"babel-core": "^7.0.0-0",
"babel-jest": "24.8.0",
"codecov": "3.5.0",
"jest": "24.8.0",
"babel-jest": "^27.0.2",
"codecov": "^3.8.2",
"flow-copy-source": "2.0.9",
"jest": "^27.0.3",
"jest-serializer-path": "0.1.15",
"lintly": "0.3.0",
"nodely": "0.8.0"
"lintly": "0.4.0",
"nodely": "^1.1.1"
},

@@ -51,0 +52,0 @@ "dependencies": {

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