diff options
author | Rebecca Turner <turner@mikomi.org> | 2014-09-30 00:11:02 +0400 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-06-26 03:26:36 +0300 |
commit | 9ada7beefc1e1b166395494cd242398424451e55 (patch) | |
tree | b9b0de33d13112350310b2fb9805ffe8e0ce2017 /node_modules/read-installed | |
parent | 7e5da238ee869201fdb9027c27b79b0f76b440a8 (diff) |
read-package-tree@4.1.0
Diffstat (limited to 'node_modules/read-installed')
17 files changed, 0 insertions, 305 deletions
diff --git a/node_modules/read-installed/node_modules/debuglog/LICENSE b/node_modules/read-installed/node_modules/debuglog/LICENSE deleted file mode 100644 index a3187cc10..000000000 --- a/node_modules/read-installed/node_modules/debuglog/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright Joyent, Inc. and other Node contributors. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. diff --git a/node_modules/read-installed/node_modules/debuglog/README.md b/node_modules/read-installed/node_modules/debuglog/README.md deleted file mode 100644 index dc6fccecc..000000000 --- a/node_modules/read-installed/node_modules/debuglog/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# debuglog - backport of util.debuglog() from node v0.11 - -To facilitate using the `util.debuglog()` function that will be available when -node v0.12 is released now, this is a copy extracted from the source. - -## require('debuglog') - -Return `util.debuglog`, if it exists, otherwise it will return an internal copy -of the implementation from node v0.11. - -## debuglog(section) - -* `section` {String} The section of the program to be debugged -* Returns: {Function} The logging function - -This is used to create a function which conditionally writes to stderr -based on the existence of a `NODE_DEBUG` environment variable. If the -`section` name appears in that environment variable, then the returned -function will be similar to `console.error()`. If not, then the -returned function is a no-op. - -For example: - -```javascript -var debuglog = util.debuglog('foo'); - -var bar = 123; -debuglog('hello from foo [%d]', bar); -``` - -If this program is run with `NODE_DEBUG=foo` in the environment, then -it will output something like: - - FOO 3245: hello from foo [123] - -where `3245` is the process id. If it is not run with that -environment variable set, then it will not print anything. - -You may separate multiple `NODE_DEBUG` environment variables with a -comma. For example, `NODE_DEBUG=fs,net,tls`. diff --git a/node_modules/read-installed/node_modules/debuglog/debuglog.js b/node_modules/read-installed/node_modules/debuglog/debuglog.js deleted file mode 100644 index 748fd72a1..000000000 --- a/node_modules/read-installed/node_modules/debuglog/debuglog.js +++ /dev/null @@ -1,22 +0,0 @@ -var util = require('util'); - -module.exports = (util && util.debuglog) || debuglog; - -var debugs = {}; -var debugEnviron = process.env.NODE_DEBUG || ''; - -function debuglog(set) { - set = set.toUpperCase(); - if (!debugs[set]) { - if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { - var pid = process.pid; - debugs[set] = function() { - var msg = util.format.apply(exports, arguments); - console.error('%s %d: %s', set, pid, msg); - }; - } else { - debugs[set] = function() {}; - } - } - return debugs[set]; -}; diff --git a/node_modules/read-installed/node_modules/debuglog/package.json b/node_modules/read-installed/node_modules/debuglog/package.json deleted file mode 100644 index 4a8257c98..000000000 --- a/node_modules/read-installed/node_modules/debuglog/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "debuglog", - "version": "1.0.1", - "description": "backport of util.debuglog from node v0.11", - "license": "MIT", - "main": "debuglog.js", - "repository": { - "type": "git", - "url": "https://github.com/sam-github/node-debuglog.git" - }, - "author": { - "name": "Sam Roberts", - "email": "sam@strongloop.com" - }, - "engines": { - "node": "*" - }, - "browser": { - "util": false - }, - "bugs": { - "url": "https://github.com/sam-github/node-debuglog/issues" - }, - "homepage": "https://github.com/sam-github/node-debuglog", - "_id": "debuglog@1.0.1", - "dist": { - "shasum": "aa24ffb9ac3df9a2351837cfb2d279360cd78492", - "tarball": "http://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz" - }, - "_from": "debuglog@>=1.0.1 <2.0.0", - "_npmVersion": "1.4.3", - "_npmUser": { - "name": "octet", - "email": "sam@strongloop.com" - }, - "maintainers": [ - { - "name": "octet", - "email": "sam@strongloop.com" - } - ], - "directories": {}, - "_shasum": "aa24ffb9ac3df9a2351837cfb2d279360cd78492", - "_resolved": "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz", - "readme": "ERROR: No README data found!" -} diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/LICENSE b/node_modules/read-installed/node_modules/readdir-scoped-modules/LICENSE deleted file mode 100644 index 19129e315..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/README.md b/node_modules/read-installed/node_modules/readdir-scoped-modules/README.md deleted file mode 100644 index ade57a186..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# readdir-scoped-modules - -Like `fs.readdir` but handling `@org/module` dirs as if they were -a single entry. - -Used by npm. - -## USAGE - -```javascript -var readdir = require('readdir-scoped-modules') - -readdir('node_modules', function (er, entries) { - // entries will be something like - // ['a', '@org/foo', '@org/bar'] -}) -``` diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/package.json b/node_modules/read-installed/node_modules/readdir-scoped-modules/package.json deleted file mode 100644 index de45b2f4d..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "readdir-scoped-modules", - "version": "1.0.1", - "description": "Like `fs.readdir` but handling `@org/module` dirs as if they were a single entry.", - "main": "readdir.js", - "directories": { - "test": "test" - }, - "dependencies": { - "debuglog": "^1.0.1", - "dezalgo": "^1.0.0", - "graceful-fs": "^3.0.4", - "once": "^1.3.0" - }, - "devDependencies": { - "tap": "0.4" - }, - "scripts": { - "test": "tap test/*.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/npm/readdir-scoped-modules" - }, - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "license": "ISC", - "bugs": { - "url": "https://github.com/npm/readdir-scoped-modules/issues" - }, - "homepage": "https://github.com/npm/readdir-scoped-modules", - "gitHead": "451d38946c5b6b6c0db33a890f33536a11ed79f7", - "_id": "readdir-scoped-modules@1.0.1", - "_shasum": "5c2a77f3e08250a8fddf53fa58cdc17900b808b9", - "_from": "readdir-scoped-modules@>=1.0.0 <2.0.0", - "_npmVersion": "2.1.9", - "_nodeVersion": "0.10.33", - "_npmUser": { - "name": "othiym23", - "email": "ogd@aoaioxxysz.net" - }, - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - }, - { - "name": "othiym23", - "email": "ogd@aoaioxxysz.net" - } - ], - "dist": { - "shasum": "5c2a77f3e08250a8fddf53fa58cdc17900b808b9", - "tarball": "http://registry.npmjs.org/readdir-scoped-modules/-/readdir-scoped-modules-1.0.1.tgz" - }, - "_resolved": "https://registry.npmjs.org/readdir-scoped-modules/-/readdir-scoped-modules-1.0.1.tgz", - "readme": "ERROR: No README data found!" -} diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/readdir.js b/node_modules/read-installed/node_modules/readdir-scoped-modules/readdir.js deleted file mode 100644 index efbe5526d..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/readdir.js +++ /dev/null @@ -1,71 +0,0 @@ -var fs = require ('graceful-fs') -var dz = require ('dezalgo') -var once = require ('once') -var path = require ('path') -var debug = require ('debuglog') ('rds') - -module . exports = readdir - -function readdir (dir, cb) { - fs . readdir (dir, function (er, kids) { - if (er) - return cb (er) - - debug ('dir=%j, kids=%j', dir, kids) - readScopes (dir, kids, function (er, data) { - if (er) - return cb (er) - - // Sort for bonus consistency points - data = data . sort (function (a, b) { - return a > b ? 1 : -1 - }) - - return cb (null, data) - }) - }) -} - -// Turn [ 'a', '@scope' ] into -// ['a', '@scope/foo', '@scope/bar'] -function readScopes (root, kids, cb) { - var scopes = kids . filter (function (kid) { - return kid . charAt (0) === '@' - }) - - kids = kids . filter (function (kid) { - return kid . charAt (0) !== '@' - }) - - debug ('scopes=%j', scopes) - - if (scopes . length === 0) - dz (cb) (null, kids) // prevent maybe-sync zalgo release - - cb = once (cb) - var l = scopes . length - scopes . forEach (function (scope) { - var scopedir = path . resolve (root, scope) - debug ('root=%j scope=%j scopedir=%j', root, scope, scopedir) - fs . readdir (scopedir, then . bind (null, scope)) - }) - - function then (scope, er, scopekids) { - if (er) - return cb (er) - - // XXX: Not sure how old this node bug is. Maybe superstition? - scopekids = scopekids . filter (function (scopekid) { - return !(scopekid === '.' || scopekid === '..' || !scopekid) - }) - - kids . push . apply (kids, scopekids . map (function (scopekid) { - return scope + '/' + scopekid - })) - - debug ('scope=%j scopekids=%j kids=%j', scope, scopekids, kids) - - if (--l === 0) - cb (null, kids) - } -} diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/basic.js b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/basic.js deleted file mode 100644 index 715c40d58..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/basic.js +++ /dev/null @@ -1,14 +0,0 @@ -var test = require ('tap') . test -var readdir = require ('../readdir.js') - -test ('basic', function (t) { - // should not get {a,b}/{x,y}, but SHOULD get @org/ and @scope children - var expect = [ '@org/x', '@org/y', '@scope/x', '@scope/y', 'a', 'b' ] - - readdir (__dirname + '/fixtures', function (er, kids) { - if (er) - throw er - t.same(kids, expect) - t.end() - }) -}) diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@org/x/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@org/x/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@org/x/.keep +++ /dev/null diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@org/y/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@org/y/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@org/y/.keep +++ /dev/null diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@scope/x/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@scope/x/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@scope/x/.keep +++ /dev/null diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@scope/y/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@scope/y/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/@scope/y/.keep +++ /dev/null diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/a/x/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/a/x/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/a/x/.keep +++ /dev/null diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/a/y/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/a/y/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/a/y/.keep +++ /dev/null diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/b/x/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/b/x/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/b/x/.keep +++ /dev/null diff --git a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/b/y/.keep b/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/b/y/.keep deleted file mode 100644 index e69de29bb..000000000 --- a/node_modules/read-installed/node_modules/readdir-scoped-modules/test/fixtures/b/y/.keep +++ /dev/null |