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

@elastic.io/oih-standard-library

Package Overview
Dependencies
Maintainers
15
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic.io/oih-standard-library - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

CHANGELOG.md

@@ -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

6

lib/actions/delete.js

@@ -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

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