Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stratumn-agent

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stratumn-agent - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

12

lib/create.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc