Comparing version 1.0.2 to 1.0.3
13
index.js
@@ -32,3 +32,3 @@ // Generated by IcedCoffeeScript 108.0.7 | ||
Stampery.prototype.stamp = function(fileName, fileHash, cb) { | ||
Stampery.prototype.stamp = function(fileName, fileHash, extra, cb) { | ||
var data, err, formData, res, ___iced_passed_deferral, __iced_deferrals, __iced_k; | ||
@@ -38,5 +38,4 @@ __iced_k = __iced_k_noop; | ||
formData = { | ||
sig: '', | ||
pendingSignatures: JSON.stringify([]), | ||
fileName: fileName | ||
fileName: fileName, | ||
extra: JSON.stringify(extra) | ||
}; | ||
@@ -75,3 +74,3 @@ if (typeof fileHash !== 'string') { | ||
})(), | ||
lineno: 38 | ||
lineno: 37 | ||
})); | ||
@@ -107,3 +106,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 43 | ||
lineno: 42 | ||
})); | ||
@@ -138,3 +137,3 @@ __iced_deferrals._fulfill(); | ||
})(), | ||
lineno: 47 | ||
lineno: 46 | ||
})); | ||
@@ -141,0 +140,0 @@ __iced_deferrals._fulfill(); |
{ | ||
"name": "stampery", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Stampery API for NodeJS. Notarize all your data using the blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,3 +23,3 @@ Stampery | ||
var data = new Buffer('Create a proof of this using the blockchain') | ||
stampery.stamp('test.txt', data, function(err, fileHash) { }) | ||
stampery.stamp('test.txt', data, {someother: 'extradata'}, function(err, fileHash) { }) | ||
stampery.get(hash, function(err, stamp) { }) | ||
@@ -26,0 +26,0 @@ stampery.proof(hash, function(err, proof) { }) |
Sorry, the diff of this file is not supported yet
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
9358
139