Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

module: fix addition of filetypes, if require ends with .. #7094

Closed

Commits on Sep 25, 2014

  1. module: test for directories, fixes require with ..

    Given my home-directory is `/Users/rocko` - and I have a file named
    `npm.json` in it and also a repository with name `npm`, which is a
    folder for the node-module.
    
    When try to require the `/Users/rocko/npm/index.js` two direcotry
    levels down in the npm folder (e.g. `/Users/rocko/npm/test/tap`)
    with require("../../") node will load `/Users/rocko/npm/index.json`.
    
    When I use require("../..") node will load `/Users/rocko/npm.json`
    which is fixed by this commit.
    robertkowalski committed Sep 25, 2014
    Configuration menu
    Copy the full SHA
    a294d5d View commit details
    Browse the repository at this point in the history