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

cube-babel

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cube-babel - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

23

index.js

@@ -15,3 +15,3 @@ 'use strict';

this.cube = cube;
this.config = config;
this.config = this.prepareConfig(config);
let ignore = this.config.ignore;

@@ -49,2 +49,23 @@ let ignoreRules = [];

}
prepareConfig(config) {
try {
config.presets && config.presets.forEach((v, i, a) => {
if (Array.isArray(v) && typeof v[0] === 'string') {
v[0] = require('bable-preset-' + v[0]);
} else {
a[i] = require('bable-preset-' + v);
}
});
config.plugins && config.plugins.forEach((v, i, a) => {
if (Array.isArray(v) && typeof v[0] === 'string') {
v[0] = require('babel-plugin-transform-' + v[0]);
} else {
a[i] = require('babel-plugin-transform-' + v);
}
});
} catch (e) {
e.message = 'cube-babel config error:' + e.message;
throw e;
}
}
}

@@ -51,0 +72,0 @@

2

package.json
{
"name": "cube-babel",
"version": "0.0.1",
"version": "0.0.2",
"description": "cube babel processor",

@@ -5,0 +5,0 @@ "main": "index.js",

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