From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- .../node_modules/md5-hex/browser.js | 10 +++++ .../node_modules/md5-hex/index.js | 23 +++++++++++ .../caching-transform/node_modules/md5-hex/license | 21 +++++++++++ .../node_modules/md5-hex/package.json | 39 +++++++++++++++++++ .../node_modules/md5-hex/readme.md | 44 ++++++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 node_modules/caching-transform/node_modules/md5-hex/browser.js create mode 100644 node_modules/caching-transform/node_modules/md5-hex/index.js create mode 100644 node_modules/caching-transform/node_modules/md5-hex/license create mode 100644 node_modules/caching-transform/node_modules/md5-hex/package.json create mode 100644 node_modules/caching-transform/node_modules/md5-hex/readme.md (limited to 'node_modules/caching-transform') diff --git a/node_modules/caching-transform/node_modules/md5-hex/browser.js b/node_modules/caching-transform/node_modules/md5-hex/browser.js new file mode 100644 index 000000000..50b9b27cd --- /dev/null +++ b/node_modules/caching-transform/node_modules/md5-hex/browser.js @@ -0,0 +1,10 @@ +'use strict'; +var md5OMatic = require('md5-o-matic'); + +module.exports = function (input) { + if (Array.isArray(input)) { + input = input.join(''); + } + + return md5OMatic(input); +}; diff --git a/node_modules/caching-transform/node_modules/md5-hex/index.js b/node_modules/caching-transform/node_modules/md5-hex/index.js new file mode 100644 index 000000000..c52bddd7c --- /dev/null +++ b/node_modules/caching-transform/node_modules/md5-hex/index.js @@ -0,0 +1,23 @@ +'use strict'; +var crypto = require('crypto'); + +module.exports = function (input) { + var hash = crypto.createHash('md5'); + + var update = function (buf) { + var inputEncoding = typeof buf === 'string' ? 'utf8' : undefined; + hash.update(buf, inputEncoding); + }; + + if (arguments.length > 1) { + throw new Error('Too many arguments. Try specifying an array.'); + } + + if (Array.isArray(input)) { + input.forEach(update); + } else { + update(input); + } + + return hash.digest('hex'); +}; diff --git a/node_modules/caching-transform/node_modules/md5-hex/license b/node_modules/caching-transform/node_modules/md5-hex/license new file mode 100644 index 000000000..654d0bfe9 --- /dev/null +++ b/node_modules/caching-transform/node_modules/md5-hex/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +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/caching-transform/node_modules/md5-hex/package.json b/node_modules/caching-transform/node_modules/md5-hex/package.json new file mode 100644 index 000000000..9dc26627f --- /dev/null +++ b/node_modules/caching-transform/node_modules/md5-hex/package.json @@ -0,0 +1,39 @@ +{ + "name": "md5-hex", + "version": "1.3.0", + "description": "Create a MD5 hash with hex encoding", + "license": "MIT", + "repository": "sindresorhus/md5-hex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "browser": "browser.js", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "hash", + "crypto", + "md5", + "hex", + "buffer", + "browser", + "browserify" + ], + "dependencies": { + "md5-o-matic": "^0.1.1" + }, + "devDependencies": { + "ava": "*", + "xo": "*" + } +} diff --git a/node_modules/caching-transform/node_modules/md5-hex/readme.md b/node_modules/caching-transform/node_modules/md5-hex/readme.md new file mode 100644 index 000000000..df40a9415 --- /dev/null +++ b/node_modules/caching-transform/node_modules/md5-hex/readme.md @@ -0,0 +1,44 @@ +# md5-hex [![Build Status](https://travis-ci.org/sindresorhus/md5-hex.svg?branch=master)](https://travis-ci.org/sindresorhus/md5-hex) + +> Create a MD5 hash with hex encoding + +*Please don't use MD5 hashes for anything sensitive!* + +Checkout [`hasha`](https://github.com/sindresorhus/hasha) if you need something more flexible. + + +## Install + +``` +$ npm install --save md5-hex +``` + + +## Usage + +```js +const fs = require('fs'); +const md5Hex = require('md5-hex'); +const buffer = fs.readFileSync('unicorn.png'); + +md5Hex(buffer); +//=> '1abcb33beeb811dca15f0ac3e47b88d9' +``` + + +## API + +### md5Hex(input) + +#### input + +Type: `buffer` `string` `array[string|buffer]` + +Prefer buffers as they're faster to hash, but strings can be useful for small things. + +Pass an array instead of concatenating strings and/or buffers. The output is the same, but arrays do not incur the overhead of concatenation. + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) -- cgit v1.2.3