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

ember-cli-version-checker

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-version-checker - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

.travis.yml

5

index.js

@@ -53,2 +53,6 @@ 'use strict';

if (this._version === undefined && this._fallbackJsonPath) {
this._version = getVersionFromJSONFile(this._fallbackJsonPath);
}
return this._version;

@@ -92,2 +96,3 @@ }

this._jsonPath = path.join(this._parent._addon.project.bowerDirectory, this.name, '.bower.json');
this._fallbackJsonPath = path.join(this._parent._addon.project.bowerDirectory, this.name, 'bower.json');
this._type = 'bower';

@@ -94,0 +99,0 @@ }

2

package.json
{
"name": "ember-cli-version-checker",
"version": "1.1.2",
"version": "1.1.3",
"description": "Determine if your addon is being used by a minimum version of Ember CLI.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,8 +18,8 @@ var assert = require('assert');

beforeEach(function() {
addon = new FakeAddonAtVersion('0.1.15-addon-discovery-752a419d85', {
addon = new FakeAddonAtVersion('0.1.15-addon-discovery-752a419d85', {
bowerDirectory: 'tests/fixtures/bower-1',
nodeModulesPath: 'tests/fixtures/npm-1'
});
checker = new versionChecker(addon);
});
checker = new versionChecker(addon);
});

@@ -34,2 +34,10 @@

it('can return a fallback bower version for non-tagged releases', function() {
addon.project.bowerDirectory = 'tests/fixtures/bower-2';
var thing = checker.for('ember', 'bower');
assert.equal(thing.version, '1.13.2');
});
it('can return a npm version', function() {

@@ -36,0 +44,0 @@ var thing = checker.for('ember', 'npm');

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