Socket
Socket
Sign inDemoInstall

base-engines

Package Overview
Dependencies
33
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

18

index.js

@@ -7,5 +7,11 @@ 'use strict';

module.exports = function(options) {
return function(app) {
return function baseEngines(app) {
if (!utils.isValid(app, 'base-engines', ['app', 'collection', 'views', 'list'])) {
return;
}
utils.define(this, '_', this._ || {});
if (typeof this._ === 'undefined') {
utils.define(this, '_', {});
}
this.engines = this.engines || {};

@@ -19,3 +25,4 @@ this._.engines = new utils.Engines(this.engines);

/**
* Register a view engine callback `fn` as `ext`.
* Register a view engine callback `fn` as `ext`. Calls `.setEngine`
* and `.getEngine` internally.
*

@@ -64,3 +71,5 @@ * ```js

* ```
* @name .setEngine
* @param {String} `ext` The engine to set.
* @api public
*/

@@ -86,2 +95,3 @@

* ```
* @name .getEngine
* @param {String} `ext` The engine to get.

@@ -105,3 +115,5 @@ * @api public

});
return baseEngines;
};
};

3

package.json
{
"name": "base-engines",
"description": "Adds support for managing template engines to your base application.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/node-base/base-engines",

@@ -27,2 +27,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"engine-cache": "^0.18.0",
"is-valid-app": "^0.1.0",
"lazy-cache": "^2.0.1"

@@ -29,0 +30,0 @@ },

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

require('define-property', 'define');
require('is-valid-app', 'isValid');
require = fn;

@@ -25,15 +26,2 @@

/**
* Return true if the given value is an object.
* @return {Boolean}
*/
utils.isObject = function(val) {
if (!val || Array.isArray(val)) {
return false;
}
return typeof val === 'function'
|| typeof val === 'object';
};
/**
* Return true if the given value is a string.

@@ -40,0 +28,0 @@ */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc