Socket
Socket
Sign inDemoInstall

@pandolink/utils

Package Overview
Dependencies
0
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

6

dist/grpc.d.ts

@@ -1,1 +0,5 @@

export declare const setRequest: <R, P>(request: R, params: P) => R;
/**
* @remarks
* This method invokes the setters of param 'request' that are provided on param 'properties'
* */
export declare const setRequest: <R, P>(request: R, properties: P) => R;

14

dist/grpc.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setRequest = void 0;
const setRequest = (request, params) => {
const paramKeys = Object.keys(params);
for (let c = 0; c < paramKeys.length; c++) {
const key = paramKeys[c];
/**
* @remarks
* This method invokes the setters of param 'request' that are provided on param 'properties'
* */
const setRequest = (request, properties) => {
const propKeys = Object.keys(properties);
for (let c = 0; c < propKeys.length; c++) {
const key = propKeys[c];
const funcName = `set${key.charAt(0).toUpperCase() + key.slice(1)}`;
// @ts-ignore
request[funcName](params[key]);
request[funcName](properties[key]);
}

@@ -12,0 +16,0 @@ return request;

{
"name": "@pandolink/utils",
"version": "1.0.6",
"version": "1.0.7",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc