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

base-cwd

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-cwd - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

17

index.js

@@ -11,6 +11,7 @@ /*!

var path = require('path');
var isRegistered = require('is-registered');
module.exports = function(fn) {
return function plugin() {
if (!isValidInstance(this, fn)) return;
if (isValidInstance(this, fn)) return;

@@ -39,13 +40,9 @@ Object.defineProperty(this, 'cwd', {

function isValidInstance(app, fn) {
fn = fn || app.options.validatePlugin;
if (typeof fn === 'function' && !fn(app)) {
return false;
if (typeof fn === 'function') {
return !fn(app, 'base-cwd');
}
if (app.isRegistered('base-cwd')) {
return false;
if (app && typeof app === 'object' && (app.isCollection || app.isView)) {
return true;
}
if (app.isCollection || app.isView) {
return false;
}
return true;
return isRegistered(app, 'base-cwd');
}
{
"name": "base-cwd",
"description": "Base plugin that adds a getter/setter for the current working directory.",
"version": "0.1.6",
"version": "0.1.7",
"homepage": "https://github.com/node-base/base-cwd",

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

"base": "^0.8.1",
"base-option": "^0.7.0",
"gulp-format-md": "^0.1.7",
"gulp-format-md": "^0.1.9",
"mocha": "^2.4.5"

@@ -53,3 +52,6 @@ },

}
},
"dependencies": {
"is-registered": "^0.1.3"
}
}
# base-cwd [![NPM version](https://img.shields.io/npm/v/base-cwd.svg?style=flat)](https://www.npmjs.com/package/base-cwd) [![NPM downloads](https://img.shields.io/npm/dm/base-cwd.svg?style=flat)](https://npmjs.org/package/base-cwd) [![Build Status](https://img.shields.io/travis/node-base/base-cwd.svg?style=flat)](https://travis-ci.org/node-base/base-cwd)
> Base plugin that adds a getter/setter for the current working directory.
Base plugin that adds a getter/setter for the current working directory.

@@ -47,3 +47,2 @@ ## Install

* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base) | [homepage](https://github.com/node-base/base)
* [base-option](https://www.npmjs.com/package/base-option): Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme… [more](https://www.npmjs.com/package/base-option) | [homepage](https://github.com/node-base/base-option)

@@ -53,6 +52,7 @@ * [base-pipeline](https://www.npmjs.com/package/base-pipeline): base-methods plugin that adds pipeline and plugin methods for dynamically composing streaming plugin pipelines. | [homepage](https://github.com/node-base/base-pipeline)

* [base-task](https://www.npmjs.com/package/base-task): base plugin that provides a very thin wrapper around [https://github.com/doowb/composer](https://github.com/doowb/composer) for adding task methods to… [more](https://www.npmjs.com/package/base-task) | [homepage](https://github.com/node-base/base-task)
* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base) | [homepage](https://github.com/node-base/base)
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/base-cwd/issues/new).
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/node-base/base-cwd/issues/new).

@@ -95,2 +95,2 @@ ## Building docs

_This file was generated by [verb](https://github.com/verbose/verb), v, on March 25, 2016._
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 15, 2016._
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