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-rc5 to 1.0.0-rc6

6

lib/actions/delete.d.ts

@@ -13,3 +13,3 @@ export declare abstract class Delete {

/**
* Delete provided object and returns id of delted object
* Delete provided object and returns id of deleted object
* @param object to be deleted

@@ -37,3 +37,3 @@ * @param cfg incoming configuration

* @param cfg input configuration, not used in default implementation but in some cases you may need it.
* @returns id of object.
* @returns ID of object.
*/

@@ -49,3 +49,3 @@ getId(msg: any, cfg: any): any;

* @param cfg input configuration, not used in default implementation but in some cases you may need it.
* @returns uniqueCriteria of object and value of uniqueCriteria.
* @returns UNIQUE_CRITERIA of object and value of uniqueCriteria.
*/

@@ -52,0 +52,0 @@ getCriteria(msg: any, cfg: any): {

@@ -17,3 +17,3 @@ "use strict";

getType(cfg, msg) {
return cfg[constants_1.objectType];
return cfg[constants_1.OBJECT_TYPE];
}

@@ -52,7 +52,7 @@ }

* @param cfg input configuration, not used in default implementation but in some cases you may need it.
* @returns id of object.
* @returns ID of object.
*/
// @ts-ignore
getId(msg, cfg) {
return msg[constants_1.id];
return msg.body[constants_1.ID];
}

@@ -102,8 +102,8 @@ }

* @param cfg input configuration, not used in default implementation but in some cases you may need it.
* @returns uniqueCriteria of object and value of uniqueCriteria.
* @returns UNIQUE_CRITERIA of object and value of uniqueCriteria.
*/
// @ts-ignore
getCriteria(msg, cfg) {
const fieldName = cfg[constants_1.uniqueCriteria];
const value = msg[fieldName];
const fieldName = cfg[constants_1.UNIQUE_CRITERIA];
const value = msg.body[fieldName];
return {

@@ -110,0 +110,0 @@ value,

@@ -1,2 +0,2 @@

import { id, objectType, uniqueCriteria } from '../constants';
import { ID, OBJECT_TYPE, UNIQUE_CRITERIA } from '../constants';

@@ -21,3 +21,3 @@ export abstract class Delete {

/**
* Delete provided object and returns id of delted object
* Delete provided object and returns id of deleted object
* @param object to be deleted

@@ -39,3 +39,3 @@ * @param cfg incoming configuration

public getType(cfg: any, msg: any): any {
return cfg[objectType];
return cfg[OBJECT_TYPE];
}

@@ -75,7 +75,7 @@ }

* @param cfg input configuration, not used in default implementation but in some cases you may need it.
* @returns id of object.
* @returns ID of object.
*/
// @ts-ignore
public getId(msg: any, cfg: any): any {
return msg[id];
return msg.body[ID];
}

@@ -126,3 +126,3 @@ }

* @param cfg input configuration, not used in default implementation but in some cases you may need it.
* @returns uniqueCriteria of object and value of uniqueCriteria.
* @returns UNIQUE_CRITERIA of object and value of uniqueCriteria.
*/

@@ -134,4 +134,4 @@ // @ts-ignore

} {
const fieldName = cfg[uniqueCriteria];
const value = msg[fieldName];
const fieldName = cfg[UNIQUE_CRITERIA];
const value = msg.body[fieldName];
return {

@@ -138,0 +138,0 @@ value,

@@ -1,4 +0,4 @@

export declare const objectType = "objectType";
export declare const id = "id";
export declare const uniqueCriteria = "uniqueCriteria";
export declare const OBJECT_TYPE = "objectType";
export declare const ID = "id";
export declare const UNIQUE_CRITERIA = "uniqueCriteria";
//# sourceMappingURL=constants.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.objectType = 'objectType';
exports.id = 'id';
exports.uniqueCriteria = 'uniqueCriteria';
exports.OBJECT_TYPE = 'objectType';
exports.ID = 'id';
exports.UNIQUE_CRITERIA = 'uniqueCriteria';
//# sourceMappingURL=constants.js.map

@@ -1,3 +0,3 @@

export const objectType = 'objectType';
export const id = 'id';
export const uniqueCriteria = 'uniqueCriteria';
export const OBJECT_TYPE = 'objectType';
export const ID = 'id';
export const UNIQUE_CRITERIA = 'uniqueCriteria';
{
"name": "@elastic.io/oih-standard-library",
"version": "1.0.0-rc5",
"version": "1.0.0-rc6",
"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

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