diff options
Diffstat (limited to 'node_modules/unique-slug')
-rw-r--r-- | node_modules/unique-slug/.npmignore | 6 | ||||
-rw-r--r-- | node_modules/unique-slug/.travis.yml | 11 | ||||
-rw-r--r-- | node_modules/unique-slug/LICENSE | 15 | ||||
-rw-r--r-- | node_modules/unique-slug/README.md | 5 | ||||
-rw-r--r-- | node_modules/unique-slug/index.js | 10 | ||||
-rw-r--r-- | node_modules/unique-slug/package.json | 16 |
6 files changed, 31 insertions, 32 deletions
diff --git a/node_modules/unique-slug/.npmignore b/node_modules/unique-slug/.npmignore deleted file mode 100644 index 2833ae874..000000000 --- a/node_modules/unique-slug/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -*~ -.#* -DEADJOE - -node_modules -.nyc_output/ diff --git a/node_modules/unique-slug/.travis.yml b/node_modules/unique-slug/.travis.yml index 3bc5d90c5..5651fce24 100644 --- a/node_modules/unique-slug/.travis.yml +++ b/node_modules/unique-slug/.travis.yml @@ -3,9 +3,8 @@ sudo: false before_install: - "npm -g install npm" node_js: - - "0.8" - - "0.10" - - "0.12" - - "iojs" - - "4" - - "5" + - "6" + - "8" + - "10" + - "lts/*" + - "node" diff --git a/node_modules/unique-slug/LICENSE b/node_modules/unique-slug/LICENSE new file mode 100644 index 000000000..7953647e7 --- /dev/null +++ b/node_modules/unique-slug/LICENSE @@ -0,0 +1,15 @@ +The ISC License + +Copyright npm, Inc + +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/unique-slug/README.md b/node_modules/unique-slug/README.md index 52de4277d..87f92f1d1 100644 --- a/node_modules/unique-slug/README.md +++ b/node_modules/unique-slug/README.md @@ -15,6 +15,5 @@ var fileSlug = uniqueSlug('/etc/passwd') If *str* is passed in then the return value will be its murmur hash in hex. -If *str* is not passed in, it will be 4 bytes coverted into 8 hex -characters, generated by `crypto.pseudoRandomBytes`. - +If *str* is not passed in, it will be 4 randomly generated bytes +converted into 8 hexadecimal characters. diff --git a/node_modules/unique-slug/index.js b/node_modules/unique-slug/index.js index 7c5d6c751..fa4761ad2 100644 --- a/node_modules/unique-slug/index.js +++ b/node_modules/unique-slug/index.js @@ -1,5 +1,4 @@ 'use strict' -var crypto = require('crypto') var MurmurHash3 = require('imurmurhash') module.exports = function (uniq) { @@ -7,13 +6,6 @@ module.exports = function (uniq) { var hash = new MurmurHash3(uniq) return ('00000000' + hash.result().toString(16)).substr(-8) } else { - // Called without a callback, because this interface should neither block - // nor error (by contrast with randomBytes which will throw an exception - // without enough entropy). - // - // However, due to a change in Node 0.10.27+, pseudoRandomBytes is now the - // same as randomBytes, and may in fact block in situations where - // insufficent entropy is available. - return crypto.pseudoRandomBytes(4).toString('hex') + return (Math.random().toString(16) + '0000000').substr(2, 8) } } diff --git a/node_modules/unique-slug/package.json b/node_modules/unique-slug/package.json index fb5e08b61..8801902fb 100644 --- a/node_modules/unique-slug/package.json +++ b/node_modules/unique-slug/package.json @@ -1,8 +1,8 @@ { "_from": "unique-slug@^2.0.0", - "_id": "unique-slug@2.0.0", + "_id": "unique-slug@2.0.2", "_inBundle": false, - "_integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", + "_integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", "_location": "/unique-slug", "_phantomChildren": {}, "_requested": { @@ -18,10 +18,10 @@ "_requiredBy": [ "/unique-filename" ], - "_resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz", - "_shasum": "db6676e7c7cc0629878ff196097c78855ae9f4ab", + "_resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "_shasum": "baabce91083fc64e945b0f3ad613e264f7cd4e6c", "_spec": "unique-slug@^2.0.0", - "_where": "/Users/rebecca/code/npm/node_modules/unique-filename", + "_where": "/Users/isaacs/dev/npm/cli/node_modules/unique-filename", "author": { "name": "Rebecca Turner", "email": "me@re-becca.org", @@ -37,8 +37,8 @@ "deprecated": false, "description": "Generate a unique character string suitible for use in files and URLs.", "devDependencies": { - "standard": "^5.4.1", - "tap": "^2.3.1" + "standard": "^12.0.1", + "tap": "^12.7.0" }, "homepage": "https://github.com/iarna/unique-slug#readme", "keywords": [], @@ -52,5 +52,5 @@ "scripts": { "test": "standard && tap --coverage test" }, - "version": "2.0.0" + "version": "2.0.2" } |