nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

32
node_modules/cacache/put.js generated vendored
View File

@@ -1,17 +1,35 @@
'use strict'
const figgyPudding = require('figgy-pudding')
const index = require('./lib/entry-index')
const memo = require('./lib/memoization')
const write = require('./lib/content/write')
const to = require('mississippi').to
const PutOpts = figgyPudding({
algorithms: {
default: ['sha512']
},
integrity: {},
memoize: {},
metadata: {},
pickAlgorithm: {},
size: {},
tmpPrefix: {},
uid: {},
gid: {},
single: {},
sep: {},
strict: {}
})
module.exports = putData
function putData (cache, key, data, opts) {
opts = opts || {}
opts = PutOpts(opts)
return write(cache, data, opts).then(res => {
// TODO - stop modifying opts
opts.size = res.size
return index.insert(cache, key, res.integrity, opts).then(entry => {
return index.insert(
cache, key, res.integrity, opts.concat({size: res.size})
).then(entry => {
if (opts.memoize) {
memo.put(cache, entry, data, opts)
}
@@ -22,7 +40,7 @@ function putData (cache, key, data, opts) {
module.exports.stream = putStream
function putStream (cache, key, opts) {
opts = opts || {}
opts = PutOpts(opts)
let integrity
let size
const contentStream = write.stream(
@@ -45,9 +63,7 @@ function putStream (cache, key, opts) {
})
}, cb => {
contentStream.end(() => {
// TODO - stop modifying `opts`
opts.size = size
index.insert(cache, key, integrity, opts).then(entry => {
index.insert(cache, key, integrity, opts.concat({size})).then(entry => {
if (opts.memoize) {
memo.put(cache, entry, Buffer.concat(memoData, memoTotal), opts)
}