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

@janiscommerce/api-save

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@janiscommerce/api-save - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

8

CHANGELOG.md

@@ -10,2 +10,10 @@ # Changelog

## [1.1.2] - 2019-07-02
### Fixed
- Version bump for already published version 1.1.1
## [1.1.1] - 2019-07-02
### Fixed
- ApiSaveData now checks for not saved MainData
## [1.1.0] - 2019-06-28

@@ -12,0 +20,0 @@ ### Added

3

lib/api-save-data.js

@@ -35,2 +35,5 @@ 'use strict';

if(!savedId)
throw new Error('common.message.internalError');
if(this.hasRelationships()) {

@@ -37,0 +40,0 @@ const apiSaveRelationships = new ApiSaveRelationships(this, savedId, !this.dataToSave.id);

4

lib/api-save-main.js

@@ -16,4 +16,4 @@ 'use strict';

if(this.apiInstance.dataToSave.id) {
await this.apiInstance.controller.update(dataToSave, { id: this.apiInstance.dataToSave.id });
return this.apiInstance.dataToSave.id;
const updateResult = await this.apiInstance.controller.update(dataToSave, { id: this.apiInstance.dataToSave.id });
return !updateResult ? updateResult : this.apiInstance.dataToSave.id;
}

@@ -20,0 +20,0 @@

{
"name": "@janiscommerce/api-save",
"version": "1.1.1",
"version": "1.1.2",
"description": "A package to handle JANIS Views Save APIs",

@@ -5,0 +5,0 @@ "main": "index.js",

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