Socket
Socket
Sign inDemoInstall

ember-cli-babel

Package Overview
Dependencies
27
Maintainers
5
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.24.0-beta.1 to 7.24.0-beta.2

22

CHANGELOG.md

@@ -0,1 +1,13 @@

## v7.23.1 (2021-01-19)
#### :bug: Bug Fix
* [#378](https://github.com/babel/ember-cli-babel/pull/378) Ensure decorators are transpiled properly when the decorator identifier is aliased within the decorated method ([@rwjblue](https://github.com/rwjblue))
* [#368](https://github.com/babel/ember-cli-babel/pull/368) fix: avoid assuming host app has `ember-cli-babel` installed ([@alexlafroscia](https://github.com/alexlafroscia))
* [#377](https://github.com/babel/ember-cli-babel/pull/377) Avoid repeatedly checking the `ember-cli` version ([@rwjblue](https://github.com/rwjblue))
* [#376](https://github.com/babel/ember-cli-babel/pull/376) Ensure `babel.config.js` is not used without `useBabelConfig` option ([@rwjblue](https://github.com/rwjblue))
#### Committers: 2
- Alex LaFroscia ([@alexlafroscia](https://github.com/alexlafroscia))
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
## v7.24.0-beta.1 (2021-01-19)

@@ -9,2 +21,12 @@

## v7.23.1 (2021-01-19)
#### :bug: Bug Fix
* [#378](https://github.com/babel/ember-cli-babel/pull/378) Ensure decorators are transpiled properly when the decorator identifier is aliased within the decorated method ([@rwjblue](https://github.com/rwjblue))
* [#377](https://github.com/babel/ember-cli-babel/pull/377) Avoid repeatedly checking the `ember-cli` version ([@rwjblue](https://github.com/rwjblue))
* [#376](https://github.com/babel/ember-cli-babel/pull/376) Ensure `babel.config.js` is not used without `useBabelConfig` option ([@rwjblue](https://github.com/rwjblue))
#### Committers: 1
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
## v7.23.0 (2020-10-15)

@@ -11,0 +33,0 @@

25

index.js

@@ -21,2 +21,3 @@ 'use strict';

const APP_BABEL_RUNTIME_VERSION = new WeakMap();
const PROJECTS_WITH_VALID_EMBER_CLI = new WeakSet();

@@ -35,7 +36,11 @@ let count = 0;

let checker = new VersionChecker(this);
let dep = checker.for('ember-cli', 'npm');
if (!PROJECTS_WITH_VALID_EMBER_CLI.has(this.project)) {
let checker = new VersionChecker(this);
let dep = checker.for('ember-cli', 'npm');
if (dep.lt('2.13.0')) {
throw new Error(`ember-cli-babel@7 (used by ${_parentName(this.parent)} at ${this.parent.root}) cannot be used by ember-cli versions older than 2.13, you used ${dep.version}`);
if (dep.lt('2.13.0')) {
throw new Error(`ember-cli-babel@7 (used by ${_parentName(this.parent)} at ${this.parent.root}) cannot be used by ember-cli versions older than 2.13, you used ${dep.version}`);
}
PROJECTS_WITH_VALID_EMBER_CLI.add(this.project);
}

@@ -59,3 +64,3 @@ },

* Default babel options
* @param {*} config
* @param {*} config
*/

@@ -73,3 +78,3 @@ _getDefaultBabelOptions(config = {}) {

}
if (config.babel && "sourceMaps" in config.babel) {

@@ -109,3 +114,3 @@ sourceMaps = config.babel.sourceMaps;

const shouldUseBabelConfigFile = customAddonConfig && customAddonConfig.useBabelConfig;
if (shouldUseBabelConfigFile) {

@@ -117,8 +122,8 @@ let babelConfig = babel.loadPartialConfig({

});
if (babelConfig.config === undefined) {
// should contain the file that we used for the config,
// should contain the file that we used for the config,
// if it is undefined then we didn't find any config and
// should error
throw new Error(

@@ -125,0 +130,0 @@ "Missing babel config file in the project root. Please double check if the babel config file exists or turn off the `useBabelConfig` option in your ember-cli-build.js file."

6

lib/babel-options-util.js

@@ -449,7 +449,7 @@ const VersionChecker = require("ember-cli-version-checker");

let appEmberCliBabelPackage = project.addons.find(
let appEmberCliBabel = project.addons.find(
(a) => a.name === "ember-cli-babel"
).pkg;
);
let appEmberCliBabelVersion =
appEmberCliBabelPackage && appEmberCliBabelPackage.version;
appEmberCliBabel && appEmberCliBabel.pkg && appEmberCliBabel.pkg.version;

@@ -456,0 +456,0 @@ if (

{
"name": "ember-cli-babel",
"version": "7.24.0-beta.1",
"version": "7.24.0-beta.2",
"description": "Ember CLI addon for Babel",

@@ -56,3 +56,3 @@ "keywords": [

"babel-plugin-ember-data-packages-polyfill": "^0.1.2",
"babel-plugin-ember-modules-api-polyfill": "^3.2.0",
"babel-plugin-ember-modules-api-polyfill": "^3.2.1",
"babel-plugin-module-resolver": "^3.1.1",

@@ -59,0 +59,0 @@ "broccoli-babel-transpiler": "^7.8.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc