segundo commit

This commit is contained in:
root 2025-11-06 19:19:45 +00:00
parent 6b8b75863a
commit d2e79d63a5
13601 changed files with 1117197 additions and 0 deletions

32
node_modules/ssb-server/test/util.js generated vendored Normal file
View file

@ -0,0 +1,32 @@
var ref = require('ssb-ref')
exports.follow = function (id) {
return {
type: 'contact', contact: id, following: true
}
}
exports.unfollow = function (id) {
return {
type: 'contact', contact: id, following: false
}
}
exports.block = function unfollow(id) {
return {
type: 'contact', contact: id, flagged: true
}
}
exports.pub = function (address) {
return {
type: 'pub',
address: ref.parseAddress(address)
}
}
exports.file = function (hash) {
return {
type: 'file',
file: hash
}
}