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

ember-compatibility-helpers

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-compatibility-helpers - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

70

index.js

@@ -24,3 +24,6 @@ 'use strict';

if (!emberBabelChecker.satisfies('^6.0.0-beta.1')) {
this._usingBabel6 = emberBabelChecker.satisfies('^6.0.0-beta.1');
this._usingBabel7 = emberBabelChecker.satisfies('^7.0.0-beta.1');
if (!this._usingBabel6 && !this._usingBabel7) {
host.project.ui.writeWarnLine(

@@ -51,6 +54,6 @@ 'ember-compatibility-helpers: You are using an unsupported ember-cli-babel version, ' +

const plugins = parentOptions.babel.plugins = parentOptions.babel.plugins || [];
const comparisonPlugin = this._getComparisonPlugin(this.emberVersion);
const debugPlugin = this._getDebugPlugin(this.emberVersion, this.parentChecker);
const comparisonPlugin = this._getComparisonPlugin(this.emberVersion);
plugins.push(debugPlugin, comparisonPlugin);
plugins.push(comparisonPlugin, debugPlugin);

@@ -69,42 +72,39 @@ this._registeredWithBabel = true;

let options = {
envFlags: {
source: 'ember-compatibility-helpers',
flags: {
DEBUG: false
}
const options = {
debugTools: {
isDebug: process.env.EMBER_ENV !== 'production',
source: 'ember-compatibility-helpers'
},
features: {
name: 'ember-compatibility-helpers',
source: 'ember-compatibility-helpers',
flags: {
HAS_UNDERSCORE_ACTIONS: !gte(trueEmberVersion, '2.0.0'),
HAS_MODERN_FACTORY_INJECTIONS: gte(trueEmberVersion, '2.13.0'),
HAS_DESCRIPTOR_TRAP: satisfies(trueEmberVersion, '~3.0.0'),
HAS_NATIVE_COMPUTED_GETTERS: gte(trueEmberVersion, '3.1.0-beta.1'),
flags: [
{
name: 'ember-compatibility-helpers',
source: 'ember-compatibility-helpers',
flags: {
HAS_UNDERSCORE_ACTIONS: !gte(trueEmberVersion, '2.0.0'),
HAS_MODERN_FACTORY_INJECTIONS: gte(trueEmberVersion, '2.13.0'),
HAS_DESCRIPTOR_TRAP: satisfies(trueEmberVersion, '~3.0.0'),
HAS_NATIVE_COMPUTED_GETTERS: gte(trueEmberVersion, '3.1.0-beta.1'),
IS_GLIMMER_2: gte(trueEmberVersion, '2.10.0'),
IS_GLIMMER_2: gte(trueEmberVersion, '2.10.0'),
SUPPORTS_FACTORY_FOR: gte(trueEmberVersion, '2.12.0') || parentChecker.for('ember-factory-for-polyfill', 'npm').gte('1.0.0'),
SUPPORTS_GET_OWNER: gte(trueEmberVersion, '2.3.0') || parentChecker.for('ember-getowner-polyfill', 'npm').gte('1.1.0'),
SUPPORTS_SET_OWNER: gte(trueEmberVersion, '2.3.0'),
SUPPORTS_NEW_COMPUTED: gte(trueEmberVersion, '1.12.0-beta.1'),
SUPPORTS_INVERSE_BLOCK: gte(trueEmberVersion, '1.13.0'),
SUPPORTS_CLOSURE_ACTIONS: gte(trueEmberVersion, '1.13.0'),
SUPPORTS_UNIQ_BY_COMPUTED: gte(trueEmberVersion, '2.7.0')
SUPPORTS_FACTORY_FOR: gte(trueEmberVersion, '2.12.0') || parentChecker.for('ember-factory-for-polyfill', 'npm').gte('1.0.0'),
SUPPORTS_GET_OWNER: gte(trueEmberVersion, '2.3.0') || parentChecker.for('ember-getowner-polyfill', 'npm').gte('1.1.0'),
SUPPORTS_SET_OWNER: gte(trueEmberVersion, '2.3.0'),
SUPPORTS_NEW_COMPUTED: gte(trueEmberVersion, '1.12.0-beta.1'),
SUPPORTS_INVERSE_BLOCK: gte(trueEmberVersion, '1.13.0'),
SUPPORTS_CLOSURE_ACTIONS: gte(trueEmberVersion, '1.13.0'),
SUPPORTS_UNIQ_BY_COMPUTED: gte(trueEmberVersion, '2.7.0')
}
}
},
]
};
externalizeHelpers: {
global: 'Ember'
},
const plugin = [require.resolve('babel-plugin-debug-macros'), options];
debugTools: {
source: 'ember-compatibility-helpers',
assertPredicateIndex: 1
}
};
if (this._usingBabel7) {
plugin.push('ember-compatibility-helpers:debug-macros');
}
return [require.resolve('babel-plugin-debug-macros'), options];
return plugin;
},

@@ -111,0 +111,0 @@

{
"name": "ember-compatibility-helpers",
"version": "1.1.1",
"version": "1.1.2",
"description": "Zero-cost compatibility flags and helpers for Ember.js",

@@ -19,6 +19,7 @@ "keywords": [

"start": "ember serve",
"test": "mocha node-tests && ember test"
"test": "mocha node-tests/babel-7",
"test:all": "ember try:each"
},
"dependencies": {
"babel-plugin-debug-macros": "^0.1.11",
"babel-plugin-debug-macros": "^0.2.0",
"ember-cli-version-checker": "^2.1.1",

@@ -35,3 +36,3 @@ "semver": "^5.4.1"

"ember-cli": "~3.0.0",
"ember-cli-babel": "^6.6.0",
"ember-cli-babel": "^7.1.1",
"ember-cli-dependency-checker": "^2.0.0",

@@ -49,3 +50,3 @@ "ember-cli-eslint": "^4.2.1",

"ember-source-channel-url": "^1.0.1",
"ember-try": "^0.2.23",
"ember-try": "^1.0.0",
"eslint-plugin-ember": "^5.0.0",

@@ -52,0 +53,0 @@ "eslint-plugin-node": "^5.2.1",

Sorry, the diff of this file is not supported yet

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