Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssb-git-repo

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-git-repo - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

23

lib/repo.js

@@ -309,2 +309,14 @@ var pull = require('pull-stream')

// complete waiting requests for lookups
// for dev use: pretend an extra message has been published
if (process.env.GITSSB_EXTRA_UPDATE) {
this._processOldMsg({
key: 'DRAFT',
value: {
author: this.sbot.id,
content: require(process.env.GITSSB_EXTRA_UPDATE)
}
})
}
this.synced = true

@@ -473,3 +485,4 @@ while (this._syncCbs.length)

var msgId = pack && pack.msgId
if (!msgId) return console.error('Missing offset message id', pack)
// if (!msgId) throw new Error('Missing offset message id. ' + JSON.stringify(pack, 0, 2))
if (!msgId) return
var msg = self.updates.objects[msgId]

@@ -801,2 +814,10 @@ if (!msg) return console.error('missing message', msgId)

// include extra repo branches (hack)
if (process.env.GITSSB_EXTRA_REPO_BRANCHES) {
var extraRepoBranches = process.env.GITSSB_EXTRA_REPO_BRANCHES.split(',')
extraRepoBranches.forEach(function (key) {
if (repoBranches.indexOf(key) == -1) repoBranches.push(key)
})
}
// don't need to include repo branches in refs branches

@@ -803,0 +824,0 @@ var refsBranches = []

2

package.json
{
"name": "ssb-git-repo",
"version": "2.6.0",
"version": "2.6.1",
"description": "git repos in secure-scuttlebutt",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc