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

git-ssb-web

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-ssb-web - npm Package Compare versions

Comparing version 2.3.7 to 2.4.0

52

lib/repos/index.js

@@ -295,17 +295,28 @@ var url = require('url')

return this.renderRepoPage(req, repo, 'code', rev, title, cat([
h('section', {class: 'branch-info light-grey', method: 'get'}, [
h('form', {action: '', method: 'get'},
h('h3', [
h('span', `${req._t(type)}: `),
this.revMenu(req, repo, rev)
])
),
u.when(type === 'Branch', () => renderRepoLatest(req, repo, rev))
]),
rev ? cat([
h('section', {class: 'files'}, renderRepoTree(req, repo, rev, path)),
this.renderRepoReadme(req, repo, rev, path)
]) : this.renderEmptyRepo(req, repo)
]))
return this.renderRepoPage(req, repo, 'code', rev, title,
u.readNext((cb) => {
repo.getLatestAvailableRev(rev, 10e3, (err, revGot, numSkipped) => {
if (err) return cb(err)
cb(null, cat([
h('section', {class: 'branch-info light-grey', method: 'get'}, [
h('form', {action: '', method: 'get'},
h('h3', [
h('span', `${req._t(type)}: `),
this.revMenu(req, repo, rev)
])
),
u.when(numSkipped > 0, () =>
h('div', {class: 'missing-blobs-warning mt2'},
h('em', req._t('missingBlobsWarning', numSkipped))
)
),
u.when(type === 'Branch', () => renderRepoLatest(req, repo, revGot))
]),
rev ? cat([
h('section', {class: 'files'}, renderRepoTree(req, repo, revGot, path)),
this.renderRepoReadme(req, repo, revGot, path)
]) : this.renderEmptyRepo(req, repo)
]))
})
}))
}

@@ -324,5 +335,6 @@

rel: 'repo',
values: true,
reverse: true
values: true
}),
pull.unique('key'),
u.sortMsgs(true),
pull.asyncMap(renderRepoUpdate.bind(self, req, repo, false))

@@ -350,3 +362,3 @@ ),

if (c.type != 'git-update') {
return ''
return cb(null, '')
// return renderFeedItem(msg, cb)

@@ -583,3 +595,5 @@ // TODO: render post, issue, pull-request

repo.getCommitParsed(rev, function (err, commit) {
if (err) return cb(err)
if (err) return cb(null,
self.renderRepoPage(req, repo, null, rev, `%{author}/%{repo}@${rev}`,
pull.once(self.web.renderError(err))))
var commitPath = [repo.id, 'commit', commit.id]

@@ -586,0 +600,0 @@ var treePath = [repo.id, 'tree', commit.id]

@@ -163,3 +163,4 @@ {

"NewFileSize": "New file size: %{bytes} bytes"
}
},
"missingBlobsWarning": "Missing blobs for latest %{smart_count} update. Showing old state |||| Missing blobs for latest %{smart_count} updates. Showing old state"
}

@@ -158,3 +158,4 @@ {

"MergeAndPush": "Kunfandu ŝanĝojn kaj tiru por ĝisdatigi la bazo branĉo:"
}
},
"missingBlobsWarning": "Mankas blob-oj por lasta %{smart_count} ĝisdatigo. Montrado de malnova stato. |||| Mankas blob-oj por lasta %{smart_count} ĝisdatigoj. Montrado de malnova stato."
}
{
"name": "git-ssb-web",
"version": "2.3.7",
"version": "2.4.0",
"description": "web server for browsing git repos on ssb",

@@ -16,3 +16,3 @@ "bin": "server.js",

"pull-git-pack": "^0.2.3",
"pull-git-repo": "^0.6.1",
"pull-git-repo": "^0.6.2",
"pull-hyperscript": "^0.2.1",

@@ -25,3 +25,3 @@ "pull-identify-filetype": "^1.1.0",

"ssb-config": "^2.1.1",
"ssb-git-repo": "^2.3.0",
"ssb-git-repo": "^2.4.0",
"ssb-issues": "^0.3.0",

@@ -28,0 +28,0 @@ "ssb-keys": "^6.1.1",

Sorry, the diff of this file is not supported yet

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