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

babel-preset-es2015

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-es2015 - npm Package Compare versions

Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16

19

lib/index.js

@@ -7,3 +7,2 @@ "use strict";

var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var moduleTypes = ["commonjs", "amd", "umd", "systemjs"];

@@ -23,5 +22,7 @@ var loose = false;

}
if (typeof spec !== "boolean") {
throw new Error("Preset es2015 'spec' option must be a boolean.");
}
if (modules !== false && moduleTypes.indexOf(modules) === -1) {

@@ -31,6 +32,16 @@ throw new Error("Preset es2015 'modules' option must be 'false' to indicate no modules\n" + "or a module type which be be one of: 'commonjs' (default), 'amd', 'umd', 'systemjs'");

var optsLoose = { loose: loose };
var optsLoose = {
loose: loose
};
return {
plugins: [[_babelPluginTransformEs2015TemplateLiterals2.default, { loose: loose, spec: spec }], _babelPluginTransformEs2015Literals2.default, _babelPluginTransformEs2015FunctionName2.default, [_babelPluginTransformEs2015ArrowFunctions2.default, { spec: spec }], _babelPluginTransformEs2015BlockScopedFunctions2.default, [_babelPluginTransformEs2015Classes2.default, optsLoose], _babelPluginTransformEs2015ObjectSuper2.default, _babelPluginTransformEs2015ShorthandProperties2.default, _babelPluginTransformEs2015DuplicateKeys2.default, [_babelPluginTransformEs2015ComputedProperties2.default, optsLoose], [_babelPluginTransformEs2015ForOf2.default, optsLoose], _babelPluginTransformEs2015StickyRegex2.default, _babelPluginTransformEs2015UnicodeRegex2.default, _babelPluginCheckEs2015Constants2.default, [_babelPluginTransformEs2015Spread2.default, optsLoose], _babelPluginTransformEs2015Parameters2.default, [_babelPluginTransformEs2015Destructuring2.default, optsLoose], _babelPluginTransformEs2015BlockScoping2.default, _babelPluginTransformEs2015TypeofSymbol2.default, modules === "commonjs" && [_babelPluginTransformEs2015ModulesCommonjs2.default, optsLoose], modules === "systemjs" && [_babelPluginTransformEs2015ModulesSystemjs2.default, optsLoose], modules === "amd" && [_babelPluginTransformEs2015ModulesAmd2.default, optsLoose], modules === "umd" && [_babelPluginTransformEs2015ModulesUmd2.default, optsLoose], [_babelPluginTransformRegenerator2.default, { async: false, asyncGenerators: false }]].filter(Boolean) };
plugins: [[_babelPluginTransformEs2015TemplateLiterals2.default, {
loose: loose,
spec: spec
}], _babelPluginTransformEs2015Literals2.default, _babelPluginTransformEs2015FunctionName2.default, [_babelPluginTransformEs2015ArrowFunctions2.default, {
spec: spec
}], _babelPluginTransformEs2015BlockScopedFunctions2.default, [_babelPluginTransformEs2015Classes2.default, optsLoose], _babelPluginTransformEs2015ObjectSuper2.default, _babelPluginTransformEs2015ShorthandProperties2.default, _babelPluginTransformEs2015DuplicateKeys2.default, [_babelPluginTransformEs2015ComputedProperties2.default, optsLoose], [_babelPluginTransformEs2015ForOf2.default, optsLoose], _babelPluginTransformEs2015StickyRegex2.default, _babelPluginTransformEs2015UnicodeRegex2.default, _babelPluginCheckEs2015Constants2.default, [_babelPluginTransformEs2015Spread2.default, optsLoose], _babelPluginTransformEs2015Parameters2.default, [_babelPluginTransformEs2015Destructuring2.default, optsLoose], _babelPluginTransformEs2015BlockScoping2.default, _babelPluginTransformEs2015TypeofSymbol2.default, modules === "commonjs" && [_babelPluginTransformEs2015ModulesCommonjs2.default, optsLoose], modules === "systemjs" && [_babelPluginTransformEs2015ModulesSystemjs2.default, optsLoose], modules === "amd" && [_babelPluginTransformEs2015ModulesAmd2.default, optsLoose], modules === "umd" && [_babelPluginTransformEs2015ModulesUmd2.default, optsLoose], [_babelPluginTransformRegenerator2.default, {
async: false,
asyncGenerators: false
}]].filter(Boolean)
};
};

@@ -37,0 +48,0 @@

{
"name": "babel-preset-es2015",
"version": "7.0.0-alpha.15",
"version": "7.0.0-alpha.16",
"description": "Babel preset for all es2015 plugins.",

@@ -11,31 +11,31 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"babel-plugin-check-es2015-constants": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-arrow-functions": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-block-scoped-functions": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-block-scoping": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-classes": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-computed-properties": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-destructuring": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-duplicate-keys": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-for-of": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-function-name": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-literals": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-modules-amd": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-modules-commonjs": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-modules-systemjs": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-modules-umd": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-object-super": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-parameters": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-shorthand-properties": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-spread": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-sticky-regex": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-template-literals": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-typeof-symbol": "7.0.0-alpha.15",
"babel-plugin-transform-es2015-unicode-regex": "7.0.0-alpha.15",
"babel-plugin-transform-regenerator": "7.0.0-alpha.15"
"babel-plugin-check-es2015-constants": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-arrow-functions": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-block-scoped-functions": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-block-scoping": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-classes": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-computed-properties": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-destructuring": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-duplicate-keys": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-for-of": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-function-name": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-literals": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-modules-amd": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-modules-commonjs": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-modules-systemjs": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-modules-umd": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-object-super": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-parameters": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-shorthand-properties": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-spread": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-sticky-regex": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-template-literals": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-typeof-symbol": "7.0.0-alpha.16",
"babel-plugin-transform-es2015-unicode-regex": "7.0.0-alpha.16",
"babel-plugin-transform-regenerator": "7.0.0-alpha.16"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-alpha.15",
"babel-helper-transform-fixture-test-runner": "7.0.0-alpha.15"
"babel-helper-plugin-test-runner": "7.0.0-alpha.16",
"babel-helper-transform-fixture-test-runner": "7.0.0-alpha.16"
}
}
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