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

dynamodb-recs

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-recs - npm Package Compare versions

Comparing version 1.0.31 to 1.0.33

12

models/Recs.js

@@ -81,5 +81,5 @@ const _ = require('lodash');

limit,
maxPath,
minPath,
modPath,
maxEdges,
minEdges,
modEdges,
namespace

@@ -103,5 +103,5 @@ } = args;

}),
maxPath,
minPath,
modPath
maxEdges,
minEdges,
modEdges
};

@@ -108,0 +108,0 @@

@@ -284,3 +284,3 @@ const _ = require('lodash');

it('should fetch with minPath', done => {
it('should fetch with minEdges', done => {
app.models.recs.fetch({

@@ -293,10 +293,7 @@ from: [

],
minPath: 1,
minEdges: 2,
namespace
})
.subscribe(response => {
expect(response).to.deep.equal([
'0',
'3'
]);
expect(response).to.deep.equal([]);

@@ -307,3 +304,3 @@ expect(app.models.recs.graph.traverse).to.have.been.calledOnce;

it('should fetch with minPath, modPath and maxPath', done => {
it('should fetch with minEdges, modEdges and maxEdges', done => {
app.models.recs.fetch({

@@ -316,5 +313,5 @@ from: [

],
minPath: 1,
modPath: 1,
maxPath: 2,
minEdges: 1,
modEdges: 1,
maxEdges: 1,
namespace

@@ -321,0 +318,0 @@ })

@@ -59,7 +59,7 @@ const joi = require('joi');

.default(10),
maxPath: joi.number()
maxEdges: joi.number()
.default(30),
minPath: joi.number()
.default(2),
modPath: joi.number(),
minEdges: joi.number()
.default(1),
modEdges: joi.number(),
namespace: joi.string()

@@ -66,0 +66,0 @@ .required()

{
"name": "dynamodb-recs",
"version": "1.0.31",
"version": "1.0.33",
"main": "index.js",

@@ -15,3 +15,3 @@ "license": "MIT",

"aws-sdk": "^2.841.0",
"graphed": "^1.0.19",
"graphed": "^1.0.20",
"joi": "^17.4.0",

@@ -18,0 +18,0 @@ "lodash": "^4.17.20",

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