quintype-backend
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -41,4 +41,5 @@ 'use strict'; | ||
getRelatedStories(client) { | ||
const sectionId = _.get(this, ['sections', 0, 'id'], null); | ||
return client | ||
.getRelatedStories(this.id) | ||
.getRelatedStories(this.id, sectionId) | ||
.then(response => _.map(response["related-stories"], story => Story.build(story))); | ||
@@ -300,6 +301,6 @@ } | ||
getRelatedStories(storyId) { | ||
getRelatedStories(storyId = null, sectionId = null) { | ||
return rp({ | ||
method: 'GET', | ||
uri: this.baseUrl + "/api/v1/stories/"+ storyId + "/related-stories", | ||
uri: `${this.baseUrl}/api/v1/stories/${storyId}/related-stories?section-id=${sectionId}`, | ||
json: true | ||
@@ -306,0 +307,0 @@ }) |
{ | ||
"name": "quintype-backend", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "client for accessing quintype API", | ||
"main": "index.js", | ||
"scripts": { | ||
"prepublishOnly": "npm install && git diff --quiet && git tag v$(cat package.json | grep version | head -n1 | cut -d \\\" -f 4) && git push --tags origin master" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
310
8662
1