parent-module
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -19,2 +19,6 @@ 'use strict'; | ||
if (typeof parentFilepath !== 'string') { | ||
continue; | ||
} | ||
if (parentFilepath === filepath) { | ||
@@ -21,0 +25,0 @@ seenVal = true; |
{ | ||
"name": "parent-module", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get the path of the parent module", | ||
@@ -42,6 +42,6 @@ "license": "MIT", | ||
"devDependencies": { | ||
"ava": "^1.0.1", | ||
"ava": "^1.4.1", | ||
"execa": "^1.0.0", | ||
"xo": "^0.23.0" | ||
"xo": "^0.24.0" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # parent-module [![Build Status](https://travis-ci.org/sindresorhus/parent-module.svg?branch=master)](https://travis-ci.org/sindresorhus/parent-module) | ||
``` | ||
$ npm install --save parent-module | ||
$ npm install parent-module | ||
``` | ||
@@ -25,3 +25,3 @@ | ||
//=> '/Users/sindresorhus/dev/unicorn/foo.js' | ||
} | ||
}; | ||
``` | ||
@@ -32,2 +32,3 @@ | ||
const bar = require('./bar'); | ||
bar(); | ||
@@ -63,3 +64,3 @@ ``` | ||
console.log(readPkgUp.sync({cwd: path.dirname(parentModule())}).pkg); | ||
//=> {name: 'chalk', version: '1.0.0', ...} | ||
//=> {name: 'chalk', version: '1.0.0', …} | ||
``` | ||
@@ -66,0 +67,0 @@ |
3922
28
68