Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "lw-sdk", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "SDK for Laurel & Wolf API", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -56,2 +56,25 @@ import {assign} from 'lodash'; | ||
let designPackageFloorPlans = makeResource({ | ||
type: 'design-package-floor-plans' | ||
}); | ||
let styleBoards = makeResource({ | ||
type: 'style-boards' | ||
}); | ||
let styleBoardTags = makeResource({ | ||
type: 'style-board-tags' | ||
}); | ||
let designPackageInstructions = makeResource({ | ||
type: 'design-package-instructions' | ||
}); | ||
let designPackages = makeResource({ | ||
type: 'design-packages' | ||
}); | ||
//// Singletons | ||
let recipient = makeResource({ | ||
@@ -85,2 +108,7 @@ type: 'recipient', | ||
furniture, | ||
designPackageFloorPlans, | ||
styleBoards, | ||
styleBoardTags, | ||
designPackageInstructions, | ||
designPackages, | ||
@@ -87,0 +115,0 @@ // Singletons |
@@ -49,2 +49,6 @@ import {forEach, find, some} from 'lodash'; | ||
if (!originalRels) { | ||
return {}; | ||
} | ||
forEach(Object.keys(originalRels), (relationshipName) => { | ||
@@ -51,0 +55,0 @@ |
@@ -19,3 +19,8 @@ import {namespace} from './utils/testing'; | ||
'inspiration-images', | ||
'furniture' | ||
'design-package-floor-plans', | ||
'style-boards', | ||
'style-board-tags', | ||
'design-package-instructions', | ||
'furniture', | ||
'design-packages' | ||
]; | ||
@@ -22,0 +27,0 @@ |
@@ -7,2 +7,3 @@ import serialize from '../src/serialize'; | ||
import individualResponseMultiRelData from './mock/individual-response-multi-rel'; | ||
import responseDataNoRelationships from './mock/jsonapi-response-no-rel'; | ||
import {namespace} from './utils/testing'; | ||
@@ -20,2 +21,8 @@ | ||
test.response('returns {} for relationships if none exist', ({deepEqual}) => { | ||
let resNoRelationships = serialize.response(responseDataNoRelationships); | ||
deepEqual(resNoRelationships.data.relationships, {}, 'is empty object'); | ||
}); | ||
test.response('sets getter for included resources', ({ok}) => { | ||
@@ -22,0 +29,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
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
245349
35
6283
2