Socket
Socket
Sign inDemoInstall

ember-cli-babel

Package Overview
Dependencies
Maintainers
5
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-babel - npm Package Compare versions

Comparing version 7.26.6 to 7.26.7

12

index.js

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

const emberPlugins = require('./lib/ember-plugins');
const cacheKeyForTree = require('calculate-cache-key-for-tree');

@@ -277,2 +278,13 @@ const APP_BABEL_RUNTIME_VERSION = new WeakMap();

cacheKeyForTree(treeType) {
if (treeType === 'addon') {
let isRootBabel = this.parent === this.project;
let shouldIncludeHelpers = isRootBabel && _shouldIncludeHelpers(this._getAppOptions(), this);
return cacheKeyForTree('addon', this, [shouldIncludeHelpers]);
}
return cacheKeyForTree(treeType, this);
},
included: function(app) {

@@ -279,0 +291,0 @@ this._super.included.apply(this, arguments);

22

lib/babel-options-util.js

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

function _getModulesPlugin() {
const resolvePath = require("./relative-module-paths")
.resolveRelativeModulePath;
const resolvePath =
require("./relative-module-paths").resolveRelativeModulePath;

@@ -300,3 +300,8 @@ return [

function _buildClassFeaturePluginConstraints(constraints, config, parent, project) {
function _buildClassFeaturePluginConstraints(
constraints,
config,
parent,
project
) {
// With versions of ember-cli-typescript < 4.0, class feature plugins like

@@ -312,3 +317,10 @@ // @babel/plugin-proposal-class-properties were run before the TS transform.

function _addDecoratorPlugins(plugins, options, config, parent, project) {
function _addDecoratorPlugins({
plugins,
options,
config,
parent,
project,
isClassPropertiesRequired,
}) {
const { hasPlugin, addPlugin } = require("ember-cli-babel-plugin-helpers");

@@ -347,3 +359,3 @@

}
} else {
} else if (isClassPropertiesRequired) {
addPlugin(

@@ -350,0 +362,0 @@ plugins,

@@ -17,10 +17,10 @@ const {

module.exports = function getBabelOptions(config, appInstance) {
let { parent, project } = appInstance;
module.exports = function getBabelOptions(config, cliBabelInstance) {
let { parent, project } = cliBabelInstance;
let addonProvidedConfig = _getAddonProvidedConfig(config);
let shouldIncludeHelpers = _shouldIncludeHelpers(config, appInstance);
let shouldIncludeHelpers = _shouldIncludeHelpers(config, cliBabelInstance);
let shouldHandleTypeScript = _shouldHandleTypeScript(config, parent, project);
let shouldIncludeDecoratorPlugins = _shouldIncludeDecoratorPlugins(config);
let emberCLIBabelConfig = config["ember-cli-babel"];
let emberCLIBabelConfig = config["ember-cli-babel"];
let shouldRunPresetEnv = true;

@@ -42,9 +42,12 @@

if (shouldIncludeDecoratorPlugins) {
userPlugins = _addDecoratorPlugins(
userPlugins.slice(),
addonProvidedConfig.options,
userPlugins = _addDecoratorPlugins({
plugins: userPlugins.slice(),
options: addonProvidedConfig.options,
config,
parent,
project
);
project,
isClassPropertiesRequired: cliBabelInstance.isPluginRequired(
"proposal-class-properties"
),
});
}

@@ -61,3 +64,4 @@

userPostTransformPlugins
).filter(Boolean);
)
.filter(Boolean);

@@ -64,0 +68,0 @@ options.presets = [

{
"name": "ember-cli-babel",
"version": "7.26.6",
"version": "7.26.7",
"description": "Ember CLI addon for Babel",

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

"@babel/polyfill": "^7.11.5",
"@babel/preset-env": "^7.12.0",
"@babel/preset-env": "^7.16.4",
"@babel/runtime": "7.12.18",

@@ -63,2 +63,3 @@ "amd-name-resolver": "^1.3.1",

"broccoli-source": "^2.1.2",
"calculate-cache-key-for-tree": "^2.0.0",
"clone": "^2.1.2",

@@ -65,0 +66,0 @@ "ember-cli-babel-plugin-helpers": "^1.1.1",

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