Comparing version 0.3.2 to 0.3.3
10
index.js
@@ -31,4 +31,3 @@ /*! | ||
set: function(cwd) { | ||
cached = path.resolve(cwd); | ||
this.cache.cwd = cached; | ||
cached = app.cache.cwd = path.resolve(cwd); | ||
app.emit('cwd', cached); | ||
@@ -40,4 +39,4 @@ }, | ||
} | ||
if (typeof this.options.cwd === 'string') { | ||
return path.resolve(this.options.cwd); | ||
if (typeof app.options.cwd === 'string') { | ||
return (cached = path.resolve(app.options.cwd)); | ||
} | ||
@@ -64,4 +63,3 @@ | ||
if (dir !== cwd) { | ||
cached = dir; | ||
app.emit('cwd', dir); | ||
cached = app.cache.cwd = dir; | ||
} | ||
@@ -68,0 +66,0 @@ return dir; |
{ | ||
"name": "base-cwd", | ||
"description": "Base plugin that adds a getter/setter for the current working directory.", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"homepage": "https://github.com/node-base/base-cwd", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
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
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
8292
4
0
91
60