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-rc7 to 1.0.0-rc8

9

lib/actions/delete.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../constants");
const { messages } = require('elasticio-node');
class Delete {

@@ -35,7 +36,7 @@ constructor(logger) {

this.logger.info('Finished processing deleteById action');
return {};
return messages.newEmptyMessage();
}
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type);
this.logger.info('Finished processing deleteById action');
return { id: deletedId };
return messages.newMessageWithBody({ id: deletedId });
}

@@ -85,7 +86,7 @@ catch (e) {

this.logger.info('Finished processing deleteByUniqueCriteria action');
return {};
return messages.newEmptyMessage();
}
this.logger.trace('Successfully process delete call for criteria: %j and type: %j', criteria, type);
this.logger.info('Finished processing deleteByUniqueCriteria action');
return { id: deletedId };
return messages.newMessageWithBody({ id: deletedId });
}

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

import { ID, OBJECT_TYPE, UNIQUE_CRITERIA } from '../constants';
const { messages } = require('elasticio-node');

@@ -57,7 +58,7 @@ export abstract class Delete {

this.logger.info('Finished processing deleteById action');
return {};
return messages.newEmptyMessage();
}
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type);
this.logger.info('Finished processing deleteById action');
return { id: deletedId };
return messages.newMessageWithBody({ id: deletedId });
} catch (e) {

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

this.logger.info('Finished processing deleteByUniqueCriteria action');
return {};
return messages.newEmptyMessage();
}
this.logger.trace('Successfully process delete call for criteria: %j and type: %j', criteria, type);
this.logger.info('Finished processing deleteByUniqueCriteria action');
return { id: deletedId };
return messages.newMessageWithBody({ id: deletedId });
} catch (e) {

@@ -115,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-rc7",
"version": "1.0.0-rc8",
"description": "Library for OIH standards implementation",

@@ -5,0 +5,0 @@ "author": {

Sorry, the diff of this file is not supported yet

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