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

@brouwervos/sdk

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brouwervos/sdk - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

3

dist/index.d.ts

@@ -202,2 +202,5 @@ /// <reference types="node" />

create: (companyId: string, body: PaymentCreation) => Promise<PaymentType>;
retrieveAll: (companyId: string, { ids }: {
ids?: string[] | undefined;
}) => Promise<PaymentType[]>;
retrieve: (companyId: string, id: string) => Promise<PaymentType>;

@@ -204,0 +207,0 @@ };

@@ -353,2 +353,3 @@ import jsonwebtoken from "jsonwebtoken";

issuer: this.url,
expiresIn: '14 days',
subject: this.partner_id,

@@ -425,2 +426,15 @@ audience: 'brouwervos.nl/accounts',

},
retrieveAll: async (companyId, { ids }) => {
const searchParams = new URLSearchParams();
if (ids)
for (const id of ids)
searchParams.append("payments", id);
const result = await this.requestPartner(`${url}/v1/partners/@me/companies/${encodeURIComponent(companyId)}/payments?${searchParams.toString()}`, {
method: 'GET',
});
const json = (await result.json());
if (json.error)
throw new Error(json.error_description);
return json;
},
retrieve: async (companyId, id) => {

@@ -427,0 +441,0 @@ const result = await this.requestPartner(`${url}/v1/partners/@me/companies/${encodeURIComponent(companyId)}/payments/${encodeURIComponent(id)}`, {

2

package.json
{
"name": "@brouwervos/sdk",
"version": "1.0.12",
"version": "1.0.13",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc