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
17
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.0.0-rc6 to 1.0.0-rc7

10

lib/actions/delete.js

@@ -33,7 +33,7 @@ "use strict";

if (deletedId === null) {
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', id, type);
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', deletedId, type);
this.logger.info('Finished processing deleteById action');
return {};
}
this.logger.trace('Successfully process delete call for id: %j and type: %j', id, type);
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type);
this.logger.info('Finished processing deleteById action');

@@ -81,4 +81,4 @@ return { id: deletedId };

this.logger.trace('Start deleting object: %j', object);
const id = await this.deleteObject(object, cfg, msg);
if (id === null) {
const deletedId = await this.deleteObject(object, cfg, msg);
if (deletedId === null) {
this.logger.trace('Object with unique criteria: %j and type: %j was not deleted or not found. Returning empty object', criteria, type);

@@ -90,3 +90,3 @@ this.logger.info('Finished processing deleteByUniqueCriteria action');

this.logger.info('Finished processing deleteByUniqueCriteria action');
return { id };
return { id: deletedId };
}

@@ -93,0 +93,0 @@ catch (e) {

@@ -55,7 +55,7 @@ import { ID, OBJECT_TYPE, UNIQUE_CRITERIA } from '../constants';

if (deletedId === null) {
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', id, type);
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', deletedId, type);
this.logger.info('Finished processing deleteById action');
return {};
}
this.logger.trace('Successfully process delete call for id: %j and type: %j', id, type);
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type);
this.logger.info('Finished processing deleteById action');

@@ -104,4 +104,4 @@ return { id: deletedId };

this.logger.trace('Start deleting object: %j', object);
const id = await this.deleteObject(object, cfg, msg);
if (id === null) {
const deletedId = await this.deleteObject(object, cfg, msg);
if (deletedId === null) {
this.logger.trace('Object with unique criteria: %j and type: %j was not deleted or not found. Returning empty object', criteria, type);

@@ -113,3 +113,3 @@ this.logger.info('Finished processing deleteByUniqueCriteria action');

this.logger.info('Finished processing deleteByUniqueCriteria action');
return { id };
return { id: deletedId };
} catch (e) {

@@ -116,0 +116,0 @@ this.logger.error('Unexpected error while processing delete call for message: %j', msg, e);

{
"name": "@elastic.io/oih-standard-library",
"version": "1.0.0-rc6",
"version": "1.0.0-rc7",
"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