use latest chainpad-server

pull/1/head
ansuz 5 years ago
parent 46dfa026f0
commit f8f3a48e8b

@ -747,7 +747,7 @@ module.exports.create = function (cfg, cb) {
// TODO compute lastKnownHash in a manner such that it will always skip past the metadata line? // TODO compute lastKnownHash in a manner such that it will always skip past the metadata line?
getHistoryAsync(channelName, lastKnownHash, false, (msg, readMore) => { getHistoryAsync(channelName, lastKnownHash, false, (msg, readMore) => {
if (!msg) { return; } if (!msg) { return; } // XXX
msgCount++; msgCount++;
// avoid sending the metadata message a second time // avoid sending the metadata message a second time
if (isMetadataMessage(msg) && metadata_cache[channelName]) { return readMore(); } if (isMetadataMessage(msg) && metadata_cache[channelName]) { return readMore(); }

9
package-lock.json generated

@ -113,14 +113,13 @@
} }
}, },
"chainpad-server": { "chainpad-server": {
"version": "3.0.5", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/chainpad-server/-/chainpad-server-3.0.5.tgz", "resolved": "https://registry.npmjs.org/chainpad-server/-/chainpad-server-4.0.0.tgz",
"integrity": "sha512-USKOMSHsNjnme81Qy3nQ+ji9eCkBPokYH4T82LVHAI0aayTSCXcTPUDLVGDBCRqe8NsXU4io1WPXn1KiZwB8fA==", "integrity": "sha512-HWTdtyzBL/21asK21tf7fivfJm9MDhPz5odq39Az1ibRwZK4Eu+pDcKEHRKEW9KtugQxnFM8NwZoyW9DxAlA8w==",
"requires": { "requires": {
"nthen": "^0.1.8", "nthen": "0.1.8",
"pull-stream": "^3.6.9", "pull-stream": "^3.6.9",
"stream-to-pull-stream": "^1.7.3", "stream-to-pull-stream": "^1.7.3",
"tweetnacl": "~0.12.2",
"ws": "^3.3.1" "ws": "^3.3.1"
} }
}, },

@ -13,7 +13,7 @@
}, },
"dependencies": { "dependencies": {
"chainpad-crypto": "^0.2.2", "chainpad-crypto": "^0.2.2",
"chainpad-server": "^3.0.5", "chainpad-server": "^4.0.0",
"express": "~4.16.0", "express": "~4.16.0",
"fs-extra": "^7.0.0", "fs-extra": "^7.0.0",
"get-folder-size": "^2.0.1", "get-folder-size": "^2.0.1",

Loading…
Cancel
Save