git ssb

3+

cel / ssb-npm-registry



Commit 7847e486c0298b4edd4a4b068b9785ee154ffbe1

Hard-code more large blob ids

cel committed on 12/9/2019, 1:02:45 AM
Parent: b06fc556703247d92e3936a9e89d759c8227aed7

Files changed

index.jschanged
largeblobs.jsadded
index.jsView
@@ -13,8 +13,9 @@
1313 var hash = require('pull-hash')
1414 var multicb = require('multicb')
1515 var memo = require('asyncmemo')
1616 var lru = require('hashlru')
17 +var chunkedBlobs = require('./largeblobs')
1718
1819 function escapeHTML(str) {
1920 return String(str)
2021 .replace(/</g, '&lt;')
@@ -384,16 +385,10 @@
384385 var blobs = sbot.blobs
385386 blobs.size(id, function (err, size) {
386387 if (err && err.code !== 'ENOENT') return cb(err)
387388 if (typeof size === 'number') return cb(null, blobs.get(id), size)
388- if (id === '&pSqSdJEJMxbUiDWMNRd1RP47m5M1MD4IeasDYY4jrwg=.sha256') {
389- // sodium-native v2.4.6 (12M)
390- return getLargeBlob(sbot, [
391- '&d+J8NSPD1QRMLtLkyoRgq3ShPpqsgzCGUOTh+U6wPH0=.sha256',
392- '&u4Ih2XRhQmWw5FElWjK1weSuDBn8hfSVn96lFbJHts0=.sha256',
393- '&kW4d1Dz1sm0Y4az+qXPkcew3+LD6Om5+06STSihRWMk=.sha256'
394- ], cb)
395- }
389 + var chunks = chunkedBlobs[id]
390 + if (chunks) return getLargeBlob(sbot, chunks, cb)
396391 var timeout = wantWarnTime > 0 && setTimeout(function () {
397392 console.error('Blob taking a long time to fetch:', id)
398393 }, wantWarnTime)
399394 blobs.want(id, function (err, got) {
largeblobs.jsView
@@ -1,0 +1,77 @@
1 +module.exports = {
2 +
3 + // sodium-native 1.10.0 (6.58M)
4 + '&EvoBlLzY5ybl3hmi4/NqgDoecs5aalJ+U3mNcE0QneY=.sha256': [
5 + '&wZosgtXNahv+5gbYcjnK5alMmALhvlZEcdISLFdXdkY=.sha256',
6 + '&mIcuPFaw9AjZ8mgXcb0FCXTi3RstFDqrqd2Ed7bngZg=.sha256'
7 + ],
8 +
9 + // sodium-native 1.10.3 (8.04M)
10 + '&aiwQP7ZlAU+FwF8h7cBVwK4iXLIgjZMm7amly26/woI=.sha256': [
11 + '&c3v7RZRoPDkAojROqIQ26ij2tEdZhUNotZDI2ECa+rc=.sha256',
12 + '&+E3PecALof3LG7yQVCMSU8Cr+LioGe7b9ZbLWUSEtsE=.sha256'
13 + ],
14 +
15 + // sodium-native 2.0.1 (6.84M) (npm)
16 + '&XHrMFy9QKAgUOHa9GhhOv+Cuxh1ITlUQnuk09orwMvg=.sha256': [
17 + '&1h0l+9dqV0WAGkPriK3uuemflfsbaTJihj2GAigP2zs=.sha256',
18 + '&b+yrknr/dp5cuQIkIftZHsuKXGVHfsqLoE7jOK4LYU8=.sha256'
19 + ],
20 +
21 + // sodium-native 2.0.1 (6.84M) (cryPhone)
22 + '&TvZKteRB5RYsQXpj+rA0WH7wCKfMlevvRTYAG1DTITo=.sha256': [
23 + '&QLLziFWFZ7gwk9wP3fyi1E/xGtF5V/ECK+WCunUdjtI=.sha256',
24 + '&bUklJW6IjpgbzkYCAnPcktxPEiCnzVMqDswVzlqVCrE=.sha256'
25 + ],
26 +
27 + // sodium-native 2.1.3 (6.73M)
28 + '&lOViNMx0t7wVMyrWfrg5VNH9mkW4IKBCVGWxZ2ikTrc=.sha256': [
29 + '&yLT3WoMJBQQO6Gn+l5prnrCJAmJGxVYrAzHNYQj2wJ0=.sha256',
30 + '&AhlAu7gDlnr3MQVkcl88lp783faShn1Hf7V1FrLnsPE=.sha256'
31 + ],
32 +
33 + // sodium-native 2.1.5 (6.93M)
34 + '&Nrmy37gPE5LmtmBhca/cerXvcwKJLvKbXGuUtBO95b8=.sha256': [
35 + '&rfXPmRp27y4ybFA5Y5iBz62JaS2nfP1Lt1yieH7A2+s=.sha256',
36 + '&d8CrF0vKGjEFXpSPtM5FcJa9RwKOUV/ZB/tZdJmlGtw=.sha256'
37 + ],
38 +
39 + // sodium-native 2.1.6 (7.29M)
40 + '&6YID+f1ALZsrHtCzusEPI0nfm5kd+y9cc0PW9eQaFJY=.sha256': [
41 + '&8CZFimcZ1KbvKEIntKjwtxN1gYYoqAiRqR5bTebJVVc=.sha256',
42 + '&KuAJOQSjgjMyZSgufJ9AQYBgotkLRmKJIlsTXszG4J4=.sha256'
43 + ],
44 +
45 + // sodium-native 2.2.1 (7.59M)
46 + '&XfzghFDOCmnoVJNgmvo7sD6RH6Kxd8pjtwku76TWnFo=.sha256': [
47 + '&bjM8fedpOf0mxWSR/s4NpXjDJi3SjageIe1zmUgSF5I=.sha256',
48 + '&2V48GezQM2q3F7OYYF0eEvWO6jERwFK2n36Mvl5LAjE=.sha256'
49 + ],
50 +
51 + // sodium-native 2.2.5 (8.31M)
52 + '&+tjN9S5zfkUQqEKSPMCGcnz6EmiB1R0SeaJBNpkgGFk=.sha256': [
53 + '&Kh5EZ9oIBUuRb4XcXoVNREzYq8OeIdlG93xH29aKdic=.sha256',
54 + '&qLQRFAcI4eHN6Jfmd641/mwOXD12KCNYtemd0AEkN7Y=.sha256'
55 + ],
56 +
57 + // sodium-native 2.4.2 (9.26M)
58 + '&aJMKSmgMUrSZmerS/wxwK4w19wfnMbnGSiGB57ivmxY=.sha256': [
59 + '&kRg3q6cvApBNJahPo5Mqkzo45CfO9wroZPfo9TBQ/qA=.sha256',
60 + '&3i8IP4oGTV1JgEmdPYQDf9yDoiswhEy3fCahNJ6CBvs=.sha256'
61 + ],
62 +
63 + // sodium-native 2.4.3 (11.12M)
64 + '&Snga5u0bn0QyZiwh7d7OaJHM/ldwEePlT5kq54Lgplg=.sha256': [
65 + '&yf9uokr8/7lbKyK/fYX2ovhnI5VtylMCrVOtXMGSD2g=.sha256',
66 + '&Lr3a2S9IXYxEFhiH9V5BPiRHvtXfutMYBj0WytsMf6M=.sha256',
67 + '&0cis8v6RN7Jn869S8OcjVmiNqNgRP43M8y8WdjFyCFs=.sha256'
68 + ],
69 +
70 + // sodium-native 2.4.6 (11.48M)
71 + '&pSqSdJEJMxbUiDWMNRd1RP47m5M1MD4IeasDYY4jrwg=.sha256': [
72 + '&d+J8NSPD1QRMLtLkyoRgq3ShPpqsgzCGUOTh+U6wPH0=.sha256',
73 + '&u4Ih2XRhQmWw5FElWjK1weSuDBn8hfSVn96lFbJHts0=.sha256',
74 + '&kW4d1Dz1sm0Y4az+qXPkcew3+LD6Om5+06STSihRWMk=.sha256'
75 + ],
76 +
77 +}

Built with git-ssb-web