dynamodb-recs
Advanced tools
Comparing version 1.0.31 to 1.0.33
@@ -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", |
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
84313
2362
Updatedgraphed@^1.0.20