stratumn-agent
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -24,2 +24,4 @@ 'use strict'; | ||
var QUEUED = 'QUEUED'; | ||
/** | ||
@@ -33,3 +35,5 @@ * Creates an agent. | ||
*/ | ||
function create(actions, storeClient, opts) { | ||
function create(actions, storeClient) { | ||
var opts = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2]; | ||
var agentInfo = (0, _getAgentInfo2.default)(actions); | ||
@@ -73,3 +77,4 @@ | ||
var meta = { | ||
linkHash: linkHash | ||
linkHash: linkHash, | ||
evidence: { state: QUEUED } | ||
}; | ||
@@ -129,3 +134,4 @@ | ||
var meta = { | ||
linkHash: linkHash | ||
linkHash: linkHash, | ||
evidence: { state: QUEUED } | ||
}; | ||
@@ -132,0 +138,0 @@ |
{ | ||
"name": "stratumn-agent", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,2 +6,4 @@ import uuid from 'node-uuid'; | ||
const QUEUED = 'QUEUED'; | ||
/** | ||
@@ -15,3 +17,3 @@ * Creates an agent. | ||
*/ | ||
export default function create(actions, storeClient, opts) { | ||
export default function create(actions, storeClient, opts = {}) { | ||
const agentInfo = getAgentInfo(actions); | ||
@@ -51,2 +53,3 @@ | ||
linkHash, | ||
evidence: { state: QUEUED } | ||
}; | ||
@@ -104,2 +107,3 @@ | ||
linkHash, | ||
evidence: { state: QUEUED } | ||
}; | ||
@@ -106,0 +110,0 @@ |
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
38889
971