diff options
author | Rebecca Turner <me@re-becca.org> | 2017-03-13 00:07:34 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-03-13 00:07:36 +0300 |
commit | 2c2737d4186a0fd304e3e808bb9bd005d34f7fce (patch) | |
tree | fd472bccd21c5d320917eff7f738439b8815df7e /node_modules | |
parent | 3d80f8f70679ad2b8ce7227d20e8dbce257a47b9 (diff) |
deps: Correct npm-shrinkwrap for @npmcorp/move
Previously `resolved` was set to a file URL and due to a quirk of the
installer this led to the bundled version matching that even when a user ran
`npm install @npmcorp/copy@latest`. This was harmless, but weird.
Credit: @iarna
Diffstat (limited to 'node_modules')
3 files changed, 19 insertions, 16 deletions
diff --git a/node_modules/@npmcorp/move/node_modules/@npmcorp/copy/package.json b/node_modules/@npmcorp/move/node_modules/@npmcorp/copy/package.json index 26fbea6e9..75cb1d57c 100644 --- a/node_modules/@npmcorp/move/node_modules/@npmcorp/copy/package.json +++ b/node_modules/@npmcorp/move/node_modules/@npmcorp/copy/package.json @@ -91,7 +91,8 @@ ], "name": "@npmcorp/copy", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "readme": "# @npminc/copy\n\nCopy files, directories and symlinks\n\n```\nconst copy = require('@npminc/copy')\ncopy('/path/to/thing', '/new/path/thing').then(() => {\n // this is now copied\n}).catch(err => {\n // oh noooo\n})\n```\n\nCopies files, directories and symlinks. Ownership is maintained when\nrunning as root, permissions are always maintained. On Windows, if symlinks\nare unavailable then junctions will be used.\n\n## PUBLIC INTERFACE\n\n### copy(from, to, [options]) → Promise\n\nRecursively copies `from` to `to` and resolves its promise when finished. \nIf `to` already exists then the promise will be rejected with an `EEXIST`\nerror.\n\nOptions are:\n\n* maxConcurrency – (Default: `1`) The maximum number of concurrent copies to do at once.\n* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory.\n* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires\n an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory\n fails then we'll try making a junction instead.\n\nOptions can also include dependency injection:\n\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* writeStreamAtomic - (Default: `require('fs-write-stream-atomic')`) The\n implementation of `writeStreamAtomic` to use. Used to inject a mock.\n* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock.\n\n## EXTENSION INTERFACE\n\nOrdinarily you'd only call `copy` above. But it's possible to use it's\ncomponent functions directly. This is useful if, say, you're writing\n[@npminc/move](https://npmjs.com/package/@npminc/move). \n\n### copy.file(from, to, options) → Promise\n\nCopies a ordinary file `from` to destination `to`. Uses\n`fs-write-stream-atomic` to ensure that the file is entirely copied or not\nat all.\n\nOptions are:\n\n* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to\n set the user and group of `to`. If uid is present then gid must be too.\n* mode - (Optional) If set then `to` will have its perms set to `mode`.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* writeStreamAtomic - (Default `require('fs-write-stream-atomic')`) The\n implementation of `writeStreamAtomic` to use. Used to inject a mock.\n\n### copy.symlink(from, to, options) → Promise\n\nCopies a symlink `from` to destination `to`. If on Windows then if\nsymlinking fails, a junction will be used instead.\n\nOptions are:\n\n* top - The top level the copy is being run from. This is used to determine\n if the symlink destination is within the set of files we're copying or\n outside it.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires\n an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory\n fails then we'll try making a junction instead.\n\n### copy.recurse(from, to, options) → Promise\n\nReads all of the files in directory `from` and adds them to the `queue`\nusing `recurseWith` (by default `copy.item`).\n\nOptions are:\n\n* queue - A [`run-queue`](https://npmjs.com/package/run-queue) object to add files found inside `from` to.\n* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory.\n* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to\n set the user and group of `to`. If uid is present then gid must be too.\n* mode - (Optional) If set then `to` will have its perms set to `mode`.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock.\n\n### copy.item(from, to, options) → Promise\n\nCopies some kind of `from` to destination `to`. This looks at the filetype\nand calls `copy.file`, `copy.symlink` or `copy.recurse` as appropriate.\n\nSymlink copies are queued with a priority such that they happen after all\nfile and directory copies as you can't create a junction on windows to a\nfile that doesn't exist yet.\n\nOptions are:\n\n* top - The top level the copy is being run from. This is used to determine\n if the symlink destination is within the set of files we're copying or\n outside it.\n* queue - The [`run-queue`](https://npmjs.com/package/run-queue) object to\n pass to `copy.recurse` if `from` is a directory.\n* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory.\n* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to\n set the user and group of `to`. If uid is present then gid must be too.\n* mode - (Optional) If set then `to` will have its perms set to `mode`.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock.\n* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires\n an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory\n fails then we'll try making a junction instead.\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* writeStreamAtomic - (Default `require('fs-write-stream-atomic')`) The\n implementation of `writeStreamAtomic` to use. Used to inject a mock.\n", + "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/npm/npmcorp-copy.git" diff --git a/node_modules/@npmcorp/move/node_modules/run-queue/package.json b/node_modules/@npmcorp/move/node_modules/run-queue/package.json index 541162d05..22aa34b53 100644 --- a/node_modules/@npmcorp/move/node_modules/run-queue/package.json +++ b/node_modules/@npmcorp/move/node_modules/run-queue/package.json @@ -85,7 +85,8 @@ ], "name": "run-queue", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "readme": "# run-queue\n\nA promise based, dynamic priority queue runner, with concurrency limiting.\n\n```js\nconst RunQueue = require('run-queue')\n\nconst queue = new RunQueue({\n maxConcurrency: 1\n})\n\nqueue.add(1, example, [-1])\nfor (let ii = 0; ii < 5; ++ii) {\n queue.add(0, example, [ii])\n}\nconst finished = []\nqueue.run().then(\n console.log(finished)\n})\n\nfunction example (num, next) {\n setTimeout(() => {\n finished.push(num)\n next()\n }, 5 - Math.abs(num))\n}\n```\n\nwould output\n\n```\n[ 0, 1, 2, 3, 4, -1 ]\n```\n\nIf you bump concurrency to `2`, then you get:\n\n```\n[ 1, 0, 3, 2, 4, -1 ]\n```\n\nThe concurrency means that they don't finish in order, because some take\nlonger than others. Each priority level must finish entirely before the\nnext priority level is run. See\n[PRIORITIES](https://github.com/iarna/run-queue#priorities) below. This is\neven true if concurrency is set high enough that all of the regular queue\ncan execute at once, for instance, with `maxConcurrency: 10`:\n\n```\n[ 4, 3, 2, 1, 0, -1 ]\n```\n\n## API\n\n### const queue = new RunQueue(options)\n\nCreate a new queue. Options may contain:\n\n* maxConcurrency - (Default: `1`) The maximum number of jobs to execute at once.\n* Promise - (Default: global.Promise) The promise implementation to use.\n\n### queue.add (prio, fn, args)\n\nAdd a new job to the end of the queue at priority `prio` that will run `fn`\nwith `args`. If `fn` is async then it should return a Promise.\n\n### queue.run ()\n\nStart running the job queue. Returns a Promise that resolves when either\nall the jobs are complete or a job ends in error (throws or returns a\nrejected promise). If a job ended in error then this Promise will be rejected\nwith that error and no further queue running will be done.\n\n## PRIORITIES\n\nPriorities are any integer value >= 0.\n\nLowest is executed first.\n\nPriorities essentially represent distinct job queues. All jobs in a queue\nmust complete before the next highest priority job queue is executed.\n\nThis means that if you have two queues, `0` and `1` then ALL jobs in `0`\nmust complete before ANY execute in `1`. If you add new `0` level jobs\nwhile `1` level jobs are running then it will switch back processing the `0`\nqueue and won't execute any more `1` jobs till all of the new `0` jobs\ncomplete.\n", + "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/iarna/run-queue.git" diff --git a/node_modules/@npmcorp/move/package.json b/node_modules/@npmcorp/move/package.json index 603489fbd..b9340759a 100644 --- a/node_modules/@npmcorp/move/package.json +++ b/node_modules/@npmcorp/move/package.json @@ -2,18 +2,18 @@ "_args": [ [ { - "raw": "@npmcorp/move", + "raw": "@npmcorp/move@~1.0.0", "scope": "@npmcorp", "escapedName": "@npmcorp%2fmove", "name": "@npmcorp/move", - "rawSpec": "", - "spec": "latest", - "type": "tag" + "rawSpec": "~1.0.0", + "spec": ">=1.0.0 <1.1.0", + "type": "range" }, "/Users/rebecca/code/npm" ] ], - "_from": "@npmcorp/move@latest", + "_from": "@npmcorp/move@>=1.0.0 <1.1.0", "_id": "@npmcorp/move@1.0.0", "_inCache": true, "_location": "/@npmcorp/move", @@ -29,28 +29,28 @@ "_npmVersion": "4.4.0", "_phantomChildren": { "aproba": "1.1.1", - "fs-write-stream-atomic": "1.0.8", + "fs-write-stream-atomic": "1.0.10", "iferr": "0.1.5", "mkdirp": "0.5.1", - "rimraf": "2.6.0" + "rimraf": "2.6.1" }, "_requested": { - "raw": "@npmcorp/move", + "raw": "@npmcorp/move@~1.0.0", "scope": "@npmcorp", "escapedName": "@npmcorp%2fmove", "name": "@npmcorp/move", - "rawSpec": "", - "spec": "latest", - "type": "tag" + "rawSpec": "~1.0.0", + "spec": ">=1.0.0 <1.1.0", + "type": "range" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "file:../move", + "_resolved": "https://registry.npmjs.org/@npmcorp/move/-/move-1.0.0.tgz", "_shasum": "eccb118645704056e5cd8d8bfea8100feae7ea47", "_shrinkwrap": null, - "_spec": "@npmcorp/move", + "_spec": "@npmcorp/move@~1.0.0", "_where": "/Users/rebecca/code/npm", "author": { "name": "Rebecca Turner", @@ -98,7 +98,8 @@ ], "name": "@npmcorp/move", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "readme": "# @npminc/move\n\nMove files and directories.\n\n```\nconst move = require('@npminc/move')\nmove('/path/to/thing', '/new/path/thing'), err => {\n if (err) throw err\n // thing is now moved!\n})\n```\n\nUses `rename` to move things as fast as possible.\n\nIf you `move` across devices or on filesystems that don't support renaming\nlarge directories. That is, situations that result in `rename` returning\nthe `EXDEV` error, then `move` will fallback to copy + delete.\n\nWhen recursively copying directories it will first try to rename the\ncontents before falling back to copying. While this will be slightly slower\nin true cross-device scenarios, it is MUCH faster in cases where the\nfilesystem can't handle directory renames.\n\nWhen copying ownership is maintained when running as root. Permissions are\nalways maintained. On Windows, if symlinks are unavailable then junctions\nwill be used.\n\n## INTERFACE\n\n### move(from, to, options) → Promise\n\nRecursively moves `from` to `to` and resolves its promise when finished.\nIf `to` already exists then the promise will be rejected with an `EEXIST`\nerror.\n\nStarts by trying to rename `from` to `to`.\n\nOptions are:\n\n* maxConcurrency – (Default: `1`) The maximum number of concurrent copies to do at once.\n* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires\n an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory\n fails then we'll try making a junction instead.\n\nOptions can also include dependency injection:\n\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* writeStreamAtomic - (Default: `require('fs-write-stream-atomic')`) The\n implementation of `writeStreamAtomic` to use. Used to inject a mock.\n* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock.\n", + "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/npm/npmcorp-move.git" |