babel-preset-es2015
Advanced tools
Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10887
89
+ Addedansi-styles@3.2.1(transitive)
+ Addedbabel-code-frame@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-call-delegate@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-define-map@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-function-name@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-hoist-variables@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-optimise-call-expression@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-regex@7.0.0-alpha.16(transitive)
+ Addedbabel-helper-replace-supers@7.0.0-alpha.16(transitive)
+ Addedbabel-messages@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-check-es2015-constants@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-arrow-functions@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-block-scoped-functions@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-block-scoping@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-classes@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-computed-properties@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-destructuring@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-duplicate-keys@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-for-of@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-function-name@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-literals@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-modules-amd@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-modules-commonjs@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-modules-systemjs@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-modules-umd@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-object-super@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-parameters@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-shorthand-properties@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-spread@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-sticky-regex@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-template-literals@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-typeof-symbol@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-es2015-unicode-regex@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-regenerator@7.0.0-alpha.16(transitive)
+ Addedbabel-plugin-transform-strict-mode@7.0.0-alpha.16(transitive)
+ Addedbabel-template@7.0.0-alpha.16(transitive)
+ Addedbabel-traverse@7.0.0-alpha.16(transitive)
+ Addedbabel-types@7.0.0-alpha.16(transitive)
+ Addedbabylon@7.0.0-beta.17(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedglobals@10.4.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedbabel-code-frame@7.0.0-alpha.15(transitive)
- Removedbabel-helper-call-delegate@7.0.0-alpha.15(transitive)
- Removedbabel-helper-define-map@7.0.0-alpha.15(transitive)
- Removedbabel-helper-function-name@7.0.0-alpha.15(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-alpha.15(transitive)
- Removedbabel-helper-hoist-variables@7.0.0-alpha.15(transitive)
- Removedbabel-helper-optimise-call-expression@7.0.0-alpha.15(transitive)
- Removedbabel-helper-regex@7.0.0-alpha.15(transitive)
- Removedbabel-helper-replace-supers@7.0.0-alpha.15(transitive)
- Removedbabel-messages@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-check-es2015-constants@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-arrow-functions@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-block-scoped-functions@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-block-scoping@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-classes@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-computed-properties@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-destructuring@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-duplicate-keys@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-for-of@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-function-name@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-literals@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-modules-amd@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-modules-commonjs@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-modules-systemjs@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-modules-umd@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-object-super@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-parameters@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-shorthand-properties@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-spread@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-sticky-regex@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-template-literals@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-typeof-symbol@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-es2015-unicode-regex@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-regenerator@7.0.0-alpha.15(transitive)
- Removedbabel-plugin-transform-strict-mode@7.0.0-alpha.15(transitive)
- Removedbabel-template@7.0.0-alpha.15(transitive)
- Removedbabel-traverse@7.0.0-alpha.15(transitive)
- Removedbabel-types@7.0.0-alpha.15(transitive)
- Removedbabylon@7.0.0-beta.13(transitive)
- Removedchalk@1.1.3(transitive)
- Removedglobals@9.18.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
Updatedbabel-plugin-transform-es2015-arrow-functions@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-block-scoped-functions@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-block-scoping@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-computed-properties@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-destructuring@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-duplicate-keys@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-function-name@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-literals@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-modules-amd@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-modules-commonjs@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-modules-systemjs@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-modules-umd@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-object-super@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-parameters@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-shorthand-properties@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-sticky-regex@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-template-literals@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-typeof-symbol@7.0.0-alpha.16
Updatedbabel-plugin-transform-es2015-unicode-regex@7.0.0-alpha.16