base-runtimes
Advanced tools
Comparing version 0.1.10 to 0.1.11
12
index.js
@@ -84,3 +84,3 @@ /*! | ||
function namespace(build) { | ||
return build.env ? build.env.name : build.namespace; | ||
return build.env ? build.env.namespace : build.namespace; | ||
} | ||
@@ -116,14 +116,10 @@ | ||
function isValidInstance(app) { | ||
if (app.isRegistered('base-runtimes')) { | ||
function isValidInstance(app, fn) { | ||
if (!utils.isValid(app)) { | ||
return false; | ||
} | ||
if (app.isCollection || app.isView) { | ||
if (utils.isRegistered(app, 'base-runtimes', fn)) { | ||
return false; | ||
} | ||
var fn = app.options.validatePlugin; | ||
if (typeof fn === 'function') { | ||
return fn(app); | ||
} | ||
return true; | ||
} |
{ | ||
"name": "base-runtimes", | ||
"description": "Plugin for adding composer-runtimes to base applications, complementing the base-tasks and base-generators plugins.", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"homepage": "https://github.com/node-base/base-runtimes", | ||
@@ -25,2 +25,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"extend-shallow": "^2.0.1", | ||
"is-registered": "^0.1.3", | ||
"is-valid-instance": "^0.1.0", | ||
"lazy-cache": "^2.0.1", | ||
@@ -27,0 +29,0 @@ "log-utils": "^0.1.3", |
@@ -94,2 +94,2 @@ # base-runtimes [![NPM version](https://img.shields.io/npm/v/base-runtimes.svg?style=flat)](https://www.npmjs.com/package/base-runtimes) [![NPM downloads](https://img.shields.io/npm/dm/base-runtimes.svg?style=flat)](https://npmjs.org/package/base-runtimes) [![Build Status](https://img.shields.io/travis/node-base/base-runtimes.svg?style=flat)](https://travis-ci.org/node-base/base-runtimes) | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 03, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 16, 2016._ |
@@ -12,2 +12,4 @@ 'use strict'; | ||
require('extend-shallow', 'extend'); | ||
require('is-registered'); | ||
require('is-valid-instance', 'isValid'); | ||
require('log-utils', 'log'); | ||
@@ -14,0 +16,0 @@ require('time-diff', 'Time'); |
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
10419
6
132
+ Addedis-registered@^0.1.3
+ Addedis-valid-instance@^0.1.0
+ Addeddefine-property@0.2.5(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-descriptor@0.1.7(transitive)
+ Addedis-registered@0.1.5(transitive)
+ Addedis-valid-instance@0.1.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisobject@2.1.0(transitive)
+ Addedpascalcase@0.1.1(transitive)