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.3.3 to 0.3.4

9

index.js

@@ -14,3 +14,2 @@ /*!

var find = require('find-pkg');
var cached;

@@ -24,2 +23,3 @@ module.exports = function(types, options) {

options = options || {};
var cached;

@@ -29,2 +29,4 @@ return function plugin(app) {

var cwds = [app.cwd || process.cwd()];
Object.defineProperty(this, 'cwd', {

@@ -35,3 +37,6 @@ configurable: true,

cached = app.cache.cwd = path.resolve(cwd);
app.emit('cwd', cached);
if (cwds[cwds.length - 1] !== cached) {
cwds.push(cached);
app.emit('cwd', cached);
}
},

@@ -38,0 +43,0 @@ get: function() {

{
"name": "base-cwd",
"description": "Base plugin that adds a getter/setter for the current working directory.",
"version": "0.3.3",
"version": "0.3.4",
"homepage": "https://github.com/node-base/base-cwd",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

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