@elastic.io/oih-standard-library
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -0,1 +1,3 @@ | ||
# 1.1.4(October 21,2020) | ||
* Fix `delete` action | ||
# 1.1.3(October 20,2020) | ||
@@ -2,0 +4,0 @@ * Annual audit of the component code to check if it exposes a sensitive data in the logs |
@@ -30,10 +30,10 @@ "use strict"; | ||
const type = this.getType(cfg, msg); | ||
this.logger.trace('Id: %j and type: %j of object to be deleted', id, type); | ||
this.logger.debug('Object with provided id to be deleted'); | ||
const deletedId = await this.deleteObject(id, cfg, msg); | ||
if (deletedId === null) { | ||
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', deletedId, type); | ||
this.logger.trace('Object with provided id and type: %j was not deleted or not found. Returning empty object', type); | ||
this.logger.info('Finished processing deleteById action'); | ||
return messages.newEmptyMessage(); | ||
} | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type); | ||
this.logger.debug('Successfully process delete call object with type: %j', type); | ||
this.logger.info('Finished processing deleteById action'); | ||
@@ -40,0 +40,0 @@ return messages.newMessageWithBody({ id: deletedId }); |
@@ -50,10 +50,10 @@ import { ID, OBJECT_TYPE, UNIQUE_CRITERIA } from '../constants'; | ||
const type = this.getType(cfg, msg); | ||
this.logger.trace('Id: %j and type: %j of object to be deleted', id, type); | ||
this.logger.debug('Object with provided id to be deleted'); | ||
const deletedId = await this.deleteObject(id, cfg, msg); | ||
if (deletedId === null) { | ||
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', deletedId, type); | ||
this.logger.trace('Object with provided id and type: %j was not deleted or not found. Returning empty object', type); | ||
this.logger.info('Finished processing deleteById action'); | ||
return messages.newEmptyMessage(); | ||
} | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type); | ||
this.logger.debug('Successfully process delete call object with type: %j', type); | ||
this.logger.info('Finished processing deleteById action'); | ||
@@ -60,0 +60,0 @@ return messages.newMessageWithBody({ id: deletedId }); |
{ | ||
"name": "@elastic.io/oih-standard-library", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Library for OIH standards implementation", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
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
219477