assemble-render-file
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -28,4 +28,3 @@ /*! | ||
return function plugin(app) { | ||
if (!utils.isValid(app)) return; | ||
if (!utils.isValid(app, 'assemble-render-file', ['app', 'collection'])) return; | ||
var opts = utils.merge({}, app.options, config); | ||
@@ -98,3 +97,3 @@ var debug = utils.debug; | ||
if (!(err instanceof Error)) { | ||
err = new Error(utils.red('view cannot be rendered: ' + last.path)); | ||
err = new Error('view cannot be rendered: ' + last.path); | ||
} | ||
@@ -101,0 +100,0 @@ err.files = files; |
{ | ||
"name": "assemble-render-file", | ||
"description": "Assemble plugin for rendering views in a vinyl pipeline.", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"homepage": "https://github.com/assemble/assemble-render-file", | ||
@@ -25,4 +25,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"debug": "^2.2.0", | ||
"is-registered": "^0.1.4", | ||
"is-valid-instance": "^0.1.0", | ||
"is-valid-app": "^0.1.2", | ||
"lazy-cache": "^2.0.1", | ||
@@ -33,4 +32,4 @@ "mixin-deep": "^1.1.3", | ||
"devDependencies": { | ||
"assemble-fs": "^0.4.6", | ||
"assemble-streams": "^0.5.0", | ||
"assemble-fs": "^0.5.2", | ||
"assemble-streams": "^0.6.0", | ||
"engine-base": "^0.1.2", | ||
@@ -40,8 +39,8 @@ "engine-handlebars": "^0.8.0", | ||
"gulp-eslint": "^2.0.0", | ||
"gulp-format-md": "^0.1.7", | ||
"gulp-istanbul": "^0.10.3", | ||
"gulp-format-md": "^0.1.9", | ||
"gulp-istanbul": "^1.0.0", | ||
"gulp-mocha": "^2.2.0", | ||
"mocha": "^2.4.5", | ||
"should": "^8.3.0", | ||
"templates": "^0.16.1" | ||
"mocha": "^2.5.3", | ||
"should": "^9.0.2", | ||
"templates": "^0.22.5" | ||
}, | ||
@@ -76,8 +75,9 @@ "keywords": [ | ||
"assemble-streams", | ||
"verb", | ||
"base" | ||
"base", | ||
"verb" | ||
] | ||
}, | ||
"reflinks": [ | ||
"verb" | ||
"verb", | ||
"verb-readme-generator" | ||
], | ||
@@ -84,0 +84,0 @@ "lint": { |
17
utils.js
'use strict'; | ||
/** | ||
* Module dependencies | ||
*/ | ||
var utils = require('lazy-cache')(require); | ||
@@ -15,4 +11,3 @@ var fn = require; | ||
require('is-registered'); | ||
require('is-valid-instance'); | ||
require('is-valid-app', 'isValid'); | ||
require('mixin-deep', 'merge'); | ||
@@ -24,12 +19,2 @@ require('through2', 'through'); | ||
utils.isValid = function(app) { | ||
if (!utils.isValidInstance(app, ['app', 'views', 'collection'])) { | ||
return false; | ||
} | ||
if (utils.isRegistered(app, 'assemble-render-file')) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
/** | ||
@@ -36,0 +21,0 @@ * Expose `utils` |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
5
5996
4
115
1
0
+ Addedis-valid-app@^0.1.2
+ Addedis-valid-app@0.1.2(transitive)
- Removedis-registered@^0.1.4
- Removedis-valid-instance@^0.1.0