New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@falaleev/payment-sdk

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@falaleev/payment-sdk - npm Package Compare versions

Comparing version

to
1.0.14

3

dist/index.d.ts

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

import { ChannelCredentials } from "@grpc/grpc-js";
import { PaymentSvcClient } from './gen/payment/payment';
export declare const newClient: (endpoint: string, token: string) => PaymentSvcClient;
export declare const newClient: (endpoint: string, creds: ChannelCredentials, token: string) => PaymentSvcClient;
export declare const createClient: (token: string) => PaymentSvcClient;

@@ -8,8 +8,8 @@ "use strict";

var nice_grpc_error_details_1 = require("nice-grpc-error-details");
var newClient = function (endpoint, token) { return create(endpoint, token); };
var newClient = function (endpoint, creds, token) { return create(endpoint, creds, token); };
exports.newClient = newClient;
var createClient = function (token) { return (0, exports.newClient)('grpc.payment.falaleev.pro:443', token); };
var createClient = function (token) { return (0, exports.newClient)('grpc.payment.falaleev.pro:443', grpc_js_1.ChannelCredentials.createSsl(), token); };
exports.createClient = createClient;
var create = function (endpoint, token) {
var channel = new nice_grpc_1.Channel(endpoint, grpc_js_1.ChannelCredentials.createSsl(), {});
var create = function (endpoint, creds, token) {
var channel = new nice_grpc_1.Channel(endpoint, creds, {});
return (0, nice_grpc_1.createClientFactory)().use(nice_grpc_error_details_1.errorDetailsClientMiddleware).create(payment_1.PaymentSvcDefinition, channel, {

@@ -16,0 +16,0 @@ "*": { metadata: (new nice_grpc_1.Metadata()).set('x-api-key', token) }

{
"name": "@falaleev/payment-sdk",
"version": "1.0.13",
"version": "1.0.14",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",