diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-10-15 08:17:03 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-10-16 01:25:33 +0300 |
commit | 25a234b4595ee3f1a2c09e2a39e3c238aa642557 (patch) | |
tree | def772e3c15c7bd3d0b05eeeb6069898617cbf23 /node_modules/path-is-inside | |
parent | 4cd74b0cdc639081fcf292eb9a03dbd93451c7c0 (diff) |
src: install npm@3 with npm@2
Restore the ability to do one-shot upgrades from the versions of npm
bundled with Node 0.8 to npm@3, which simplifies using Travis with old
Node and new npm, for compatibility testing purposes. Older versions of
npm repack packages on install, which works poorly with the way npm@3
handles bundledDependencies with flat trees.
Fixes: #9668
PR-URL: https://github.com/npm/npm/pull/9981
Diffstat (limited to 'node_modules/path-is-inside')
-rw-r--r-- | node_modules/path-is-inside/package.json | 90 |
1 files changed, 25 insertions, 65 deletions
diff --git a/node_modules/path-is-inside/package.json b/node_modules/path-is-inside/package.json index fbcf469a3..deced2578 100644 --- a/node_modules/path-is-inside/package.json +++ b/node_modules/path-is-inside/package.json @@ -1,81 +1,41 @@ { - "_args": [ - [ - "path-is-inside@~1.0.0", - "/Users/rebecca/code/npm" - ] - ], - "_from": "path-is-inside@>=1.0.0 <1.1.0", - "_id": "path-is-inside@1.0.1", - "_inCache": true, - "_location": "/path-is-inside", - "_npmUser": { - "email": "domenic@domenicdenicola.com", - "name": "domenic" - }, - "_npmVersion": "1.3.25", - "_phantomChildren": {}, - "_requested": { - "name": "path-is-inside", - "raw": "path-is-inside@~1.0.0", - "rawSpec": "~1.0.0", - "scope": null, - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz", - "_shasum": "98d8f1d030bf04bd7aeee4a1ba5485d40318fd89", - "_shrinkwrap": null, - "_spec": "path-is-inside@~1.0.0", - "_where": "/Users/rebecca/code/npm", - "author": { - "email": "domenic@domenicdenicola.com", - "name": "Domenic Denicola", - "url": "http://domenic.me" - }, - "bugs": { - "url": "http://github.com/domenic/path-is-inside/issues" - }, - "dependencies": {}, + "name": "path-is-inside", "description": "Tests whether one path is inside another path", - "devDependencies": { - "jshint": "~2.3.0", - "mocha": "~1.15.1" - }, - "directories": {}, - "dist": { - "shasum": "98d8f1d030bf04bd7aeee4a1ba5485d40318fd89", - "tarball": "http://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz" - }, - "homepage": "https://github.com/domenic/path-is-inside", - "installable": true, "keywords": [ + "path", "directory", "folder", "inside", - "path", "relative" ], + "version": "1.0.1", + "author": { + "name": "Domenic Denicola", + "email": "domenic@domenicdenicola.com", + "url": "http://domenic.me" + }, "license": "WTFPL", - "main": "lib/path-is-inside.js", - "maintainers": [ - { - "name": "domenic", - "email": "domenic@domenicdenicola.com" - } - ], - "name": "path-is-inside", - "optionalDependencies": {}, "repository": { "type": "git", "url": "git://github.com/domenic/path-is-inside.git" }, + "bugs": { + "url": "http://github.com/domenic/path-is-inside/issues" + }, + "main": "lib/path-is-inside.js", "scripts": { - "lint": "jshint lib", - "test": "mocha" + "test": "mocha", + "lint": "jshint lib" + }, + "devDependencies": { + "jshint": "~2.3.0", + "mocha": "~1.15.1" }, - "version": "1.0.1" + "readme": "# Is This Path Inside This Other Path?\n\nIt turns out this question isn't trivial to answer using Node's built-in path APIs. A naive `indexOf`-based solution will fail sometimes on Windows, which is case-insensitive (see e.g. [isaacs/npm#4214][]). You might then think to be clever with `path.resolve`, but you have to be careful to account for situations whether the paths have different drive letters, or else you'll cause bugs like [isaacs/npm#4313][]. And let's not even get started on trailing slashes.\n\nThe **path-is-inside** package will give you a robust, cross-platform way of detecting whether a given path is inside another path.\n\n## Usage\n\nPretty simple. First the path being tested; then the potential parent. Like so:\n\n```js\nvar pathIsInside = require(\"path-is-inside\");\n\npathIsInside(\"/x/y/z\", \"/x/y\") // true\npathIsInside(\"/x/y\", \"/x/y/z\") // false\n```\n\n## OS-Specific Behavior\n\nLike Node's built-in path module, path-is-inside treats all file paths on Windows as case-insensitive, whereas it treats all file paths on *-nix operating systems as case-sensitive. Keep this in mind especially when working on a Mac, where, despite Node's defaults, the OS usually treats paths case-insensitively.\n\nIn practice, this means:\n\n```js\n// On Windows\n\npathIsInside(\"C:\\\\X\\\\Y\\\\Z\", \"C:\\\\x\\\\y\") // true\n\n// On *-nix, including Mac OS X\n\npathIsInside(\"/X/Y/Z\", \"/x/y\") // false\n```\n\n[isaacs/npm#4214]: https://github.com/isaacs/npm/pull/4214\n[isaacs/npm#4313]: https://github.com/isaacs/npm/issues/4313\n", + "readmeFilename": "README.md", + "homepage": "https://github.com/domenic/path-is-inside#readme", + "_id": "path-is-inside@1.0.1", + "_shasum": "98d8f1d030bf04bd7aeee4a1ba5485d40318fd89", + "_resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.1.tgz", + "_from": "path-is-inside@>=1.0.1 <1.1.0" } |