Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.191.239.206
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
node_modules /
npm /
node_modules /
cacache /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
locales
[ DIR ]
drwxr-xr-x
2024-03-03 22:36
CHANGELOG.md
22.31
KB
-rw-r--r--
2021-03-10 14:36
LICENSE.md
755
B
-rw-r--r--
2021-03-10 14:36
README.es.md
20.48
KB
-rw-r--r--
2021-03-10 14:36
README.md
20
KB
-rw-r--r--
2021-03-10 14:36
en.js
58
B
-rw-r--r--
2021-03-10 14:36
es.js
58
B
-rw-r--r--
2021-03-10 14:36
get.js
6.71
KB
-rw-r--r--
2021-03-10 14:36
index.js
58
B
-rw-r--r--
2021-03-10 14:36
ls.js
121
B
-rw-r--r--
2021-03-10 14:36
package.json
3.32
KB
-rw-r--r--
2021-03-10 14:36
put.js
1.91
KB
-rw-r--r--
2021-03-10 14:36
rm.js
661
B
-rw-r--r--
2021-03-10 14:36
verify.js
55
B
-rw-r--r--
2021-03-10 14:36
Save
Rename
'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: {}, single: {}, sep: {}, error: {}, strict: {} }) module.exports = putData 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 }) ).then(entry => { if (opts.memoize) { memo.put(cache, entry, data, opts) } return res.integrity }) }) } module.exports.stream = putStream function putStream (cache, key, opts) { opts = PutOpts(opts) let integrity let size const contentStream = write.stream( cache, opts ).on('integrity', int => { integrity = int }).on('size', s => { size = s }) let memoData let memoTotal = 0 const stream = to((chunk, enc, cb) => { contentStream.write(chunk, enc, () => { if (opts.memoize) { if (!memoData) { memoData = [] } memoData.push(chunk) memoTotal += chunk.length } cb() }) }, cb => { contentStream.end(() => { index.insert(cache, key, integrity, opts.concat({ size })).then(entry => { if (opts.memoize) { memo.put(cache, entry, Buffer.concat(memoData, memoTotal), opts) } stream.emit('integrity', integrity) cb() }) }) }) let erred = false stream.once('error', err => { if (erred) { return } erred = true contentStream.emit('error', err) }) contentStream.once('error', err => { if (erred) { return } erred = true stream.emit('error', err) }) return stream }