Comparing version 1.0.0 to 1.0.1
@@ -65,2 +65,3 @@ 'use strict'; | ||
var hash = hasher.sha1({ | ||
engineId: engineId, | ||
request: request, | ||
@@ -104,3 +105,3 @@ options: options | ||
// callback with a snapshot | ||
if (typeof callback === 'function') | ||
if (typeof callback === 'function') { | ||
callback(null, { | ||
@@ -110,2 +111,3 @@ status: entry[0], | ||
}); | ||
} | ||
@@ -178,18 +180,20 @@ // cache is complete | ||
writeStream = self.store.save(hash, timestamp, m, ttl); | ||
readStream.pipe(writeStream); | ||
writeStream.on('error', error); | ||
switchboard.pipe(writeStream); | ||
// pipe to the switchboard | ||
readStream.pipe(switchboard); | ||
}) | ||
// resolve the cache manifest entry | ||
.on('finish', function() { | ||
if (!err) self.resolve(hash, timestamp, function(err) { | ||
if (err) switchboard.emit('error', err); | ||
// resolve the cache manifest entry | ||
readStream.on('finish', function() { | ||
if (!err) self.resolve(hash, timestamp, function(err) { | ||
if (err) error(err); | ||
}); | ||
}); | ||
}); | ||
// callback with a snapshot | ||
if (typeof callback === 'function') return callback(null, { | ||
if (typeof callback === 'function') callback(null, { | ||
status: 'pending', | ||
@@ -196,0 +200,0 @@ created: timestamp |
{ | ||
"name": "stillframe", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple distributed url-to-whatever framework.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
26522
12
686