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

lw-sdk

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lw-sdk - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

test/mock/jsonapi-response-no-rel.json

2

package.json
{
"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 @@

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