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

@adempiere/grpc-api

Package Overview
Dependencies
Maintainers
5
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adempiere/grpc-api - npm Package Compare versions

Comparing version 4.6.7 to 4.6.8

2

package.json
{
"name": "@adempiere/grpc-api",
"version": "4.6.7",
"version": "4.6.8",
"description": "ADempiere Web write in Javascript for a node service",

@@ -5,0 +5,0 @@ "author": "Yamel Senih",

/*************************************************************************************
* Product: ADempiere gRPC File Management Client *
* Copyright (C) 2012-2023 E.R.P. Consultores y Asociados, C.A. *
* Copyright (C) 2018-2023 E.R.P. Consultores y Asociados, C.A. *
* Contributor(s): Edwin Betancourt EdwinBetanc0urt@outlook.com *

@@ -242,10 +242,14 @@ * This program is free software: you can redistribute it and/or modify *

token,
// parent reference
resourceType,
resourceId,
// record
tableName,
recordId,
recordUuid,
//
fileName,
fileSize,
description,
textMessage,
resourceType
textMessage
}, callback) {

@@ -255,2 +259,9 @@ const { SetResourceReferenceRequest } = this.stubFile;

request.setResourceType(
getValidInteger(resourceType)
);
request.setResourceId(
getValidInteger(resourceId)
);
request.setTableName(tableName);

@@ -266,5 +277,2 @@ request.setRecordId(

request.setTextMessage(textMessage);
request.setResourceType(
getValidInteger(resourceType)
)

@@ -271,0 +279,0 @@ const metadata = getMetadata({

@@ -256,8 +256,8 @@ /*************************************************************************************

function getReferenceType({ key, value }) {
function getResourceType({ key, value }) {
const { getValueOrKeyEnum } = require('@adempiere/grpc-api/src/utils/convertEnums.js')
const { ReferenceType } = require('@adempiere/grpc-api/src/grpc/proto/file_management_pb');
const { ResourceType } = require('@adempiere/grpc-api/src/grpc/proto/file_management_pb');
return getValueOrKeyEnum({
list: ReferenceType,
list: ResourceType,
key,

@@ -273,8 +273,9 @@ value

return {
reference_type: resourceReferenceToConvert.getResourceType(),
reference_type_name: getResourceType({
value: resourceReferenceToConvert.getResourceType()
}),
resource_id: resourceReferenceToConvert.getResourceId(),
id: resourceReferenceToConvert.getId(),
uuid: resourceReferenceToConvert.getUuid(),
reference_type: resourceReferenceToConvert.getReferenceType(),
reference_type_name: getReferenceType({
value: resourceReferenceToConvert.getReferenceType()
}),
name: resourceReferenceToConvert.getName(),

@@ -281,0 +282,0 @@ file_name: resourceReferenceToConvert.getFileName(),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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