Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 52.14.238.102
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
cacache /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
locales
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
node_modules
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
CHANGELOG.md
17.06
KB
-rw-r--r--
2021-02-04 21:24
LICENSE.md
755
B
-rw-r--r--
2021-02-04 21:24
README.es.md
20.48
KB
-rw-r--r--
2021-02-04 21:24
README.md
19.69
KB
-rw-r--r--
2021-02-04 21:24
en.js
58
B
-rw-r--r--
2021-02-04 21:24
es.js
58
B
-rw-r--r--
2021-02-04 21:24
get.js
5.3
KB
-rw-r--r--
2021-02-04 21:24
index.js
58
B
-rw-r--r--
2021-02-04 21:24
ls.js
121
B
-rw-r--r--
2021-02-04 21:24
package.json
3.24
KB
-rw-r--r--
2021-02-04 21:24
put.js
1.7
KB
-rw-r--r--
2021-02-04 21:24
rm.js
661
B
-rw-r--r--
2021-02-04 21:24
verify.js
55
B
-rw-r--r--
2021-02-04 21:24
Save
Rename
'use strict' const index = require('./lib/entry-index') const memo = require('./lib/memoization') const write = require('./lib/content/write') const to = require('mississippi').to module.exports = putData function putData (cache, key, data, opts) { opts = 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 => { if (opts.memoize) { memo.put(cache, entry, data, opts) } return res.integrity }) }) } module.exports.stream = putStream function putStream (cache, key, opts) { opts = 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(() => { // TODO - stop modifying `opts` opts.size = size index.insert(cache, key, integrity, opts).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 }