ssb-git-repo
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -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 = [] |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1409
51744
7
12