Comparing version 1.0.4 to 1.0.5
@@ -103,3 +103,6 @@ const path = require('path'); | ||
let current = module; | ||
while (current.parent) { | ||
while ( | ||
current.parent && | ||
current.parent.filename !== current.filename | ||
) { | ||
current = current.parent; | ||
@@ -106,0 +109,0 @@ } |
{ | ||
"name": "wootils", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A set of Javascript utilities for building Node and browser apps.", | ||
@@ -33,13 +33,13 @@ "homepage": "https://homer0.github.io/wootils/", | ||
"devDependencies": { | ||
"eslint": "4.13.1", | ||
"eslint": "4.16.0", | ||
"eslint-config-airbnb-base": "12.1.0", | ||
"eslint-plugin-import": "2.8.0", | ||
"eslint-plugin-node": "5.2.1", | ||
"jest-ex": "3.0.1", | ||
"jest-cli": "21.2.1", | ||
"jasmine-expect": "3.8.1", | ||
"jest-ex": "4.0.0", | ||
"jest-cli": "22.1.4", | ||
"jasmine-expect": "3.8.3", | ||
"babel-preset-env": "1.6.1", | ||
"esdoc": "1.0.4", | ||
"esdoc-standard-plugin": "1.0.0", | ||
"esdoc-node": "homer0/esdoc-node", | ||
"esdoc-node": "1.0.3", | ||
"leasot": "4.13.0", | ||
@@ -46,0 +46,0 @@ "coveralls": "3.0.0" |
@@ -39,2 +39,5 @@ jest.unmock('/node/pathUtils'); | ||
let appPath = null; | ||
// The `substr` is to remove the leading `/` | ||
const thisfilePath = __dirname.substr(1); | ||
const expectedAppPath = `${home}${thisfilePath}/`; | ||
// When | ||
@@ -46,3 +49,3 @@ sut = new PathUtils(); | ||
expect(homePath).toBe(home); | ||
expect(appPath).toBe(home); | ||
expect(appPath).toBe(expectedAppPath); | ||
}); | ||
@@ -49,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
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
327803
57
3535