Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2019-06-29 02:22:53 +0300
committerisaacs <i@izs.me>2019-06-30 06:23:54 +0300
commit8bd8e909f0699654e8ae5711e3421ad8edfcdcea (patch)
treeb943dc7dede5e7e50f49bc27bcfc94652f9ac37f /node_modules/cacache/put.js
parent87fef4e356f30941f2ee39f2f774ad2086239a00 (diff)
cacache@11.3.3
Diffstat (limited to 'node_modules/cacache/put.js')
-rw-r--r--node_modules/cacache/put.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/node_modules/cacache/put.js b/node_modules/cacache/put.js
index 01b0dd84f..cb4057fd5 100644
--- a/node_modules/cacache/put.js
+++ b/node_modules/cacache/put.js
@@ -20,6 +20,7 @@ const PutOpts = figgyPudding({
gid: {},
single: {},
sep: {},
+ error: {},
strict: {}
})
@@ -28,7 +29,7 @@ function putData (cache, key, data, opts) {
opts = PutOpts(opts)
return write(cache, data, opts).then(res => {
return index.insert(
- cache, key, res.integrity, opts.concat({size: res.size})
+ cache, key, res.integrity, opts.concat({ size: res.size })
).then(entry => {
if (opts.memoize) {
memo.put(cache, entry, data, opts)
@@ -63,7 +64,7 @@ function putStream (cache, key, opts) {
})
}, cb => {
contentStream.end(() => {
- index.insert(cache, key, integrity, opts.concat({size})).then(entry => {
+ index.insert(cache, key, integrity, opts.concat({ size })).then(entry => {
if (opts.memoize) {
memo.put(cache, entry, Buffer.concat(memoData, memoTotal), opts)
}