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

@interledger/open-payments

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interledger/open-payments - npm Package Compare versions

Comparing version 6.2.0 to 6.3.0

4

dist/client/grant.d.ts
import { GrantOrTokenRequestArgs, RouteDeps, UnauthenticatedResourceRequestArgs } from '.';
import { PendingGrant, Grant, GrantRequest, GrantContinuationRequest } from '../types';
import { PendingGrant, Grant, GrantContinuation, GrantRequest, GrantContinuationRequest } from '../types';
export interface GrantRouteDeps extends RouteDeps {

@@ -8,5 +8,5 @@ client: string;

request(postArgs: UnauthenticatedResourceRequestArgs, args: Omit<GrantRequest, 'client'>): Promise<PendingGrant | Grant>;
continue(postArgs: GrantOrTokenRequestArgs, args: GrantContinuationRequest): Promise<Grant>;
continue(postArgs: GrantOrTokenRequestArgs, args: GrantContinuationRequest): Promise<Grant | GrantContinuation>;
cancel(postArgs: GrantOrTokenRequestArgs): Promise<void>;
}
export declare const createGrantRoutes: (deps: GrantRouteDeps) => GrantRoutes;

@@ -58,2 +58,5 @@ import { components as RSComponents, paths as RSPaths, operations as RSOperations } from './openapi/generated/resource-server-types';

};
export type GrantContinuation = {
continue: ASComponents['schemas']['continue'];
};
export type GrantRequest = {

@@ -75,2 +78,3 @@ access_token: ASOperations['post-request']['requestBody']['content']['application/json']['access_token'];

export declare const isPendingGrant: (grant: PendingGrant | Grant) => grant is PendingGrant;
export declare const isFinalizedGrant: (grant: GrantContinuation | Grant) => grant is Grant;
export type AccessIncomingActions = ASComponents['schemas']['access-incoming']['actions'];

@@ -77,0 +81,0 @@ export type AccessOutgoingActions = ASComponents['schemas']['access-outgoing']['actions'];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccessAction = exports.AccessType = exports.isPendingGrant = exports.getASPath = exports.getRSPath = exports.getWAPath = void 0;
exports.AccessAction = exports.AccessType = exports.isFinalizedGrant = exports.isPendingGrant = exports.getASPath = exports.getRSPath = exports.getWAPath = void 0;
const getWAPath = (path) => path;

@@ -12,2 +12,4 @@ exports.getWAPath = getWAPath;

exports.isPendingGrant = isPendingGrant;
const isFinalizedGrant = (grant) => !!grant.access_token;
exports.isFinalizedGrant = isFinalizedGrant;
exports.AccessType = {

@@ -14,0 +16,0 @@ IncomingPayment: 'incoming-payment',

{
"name": "@interledger/open-payments",
"version": "6.2.0",
"version": "6.3.0",
"description": "Tools for interacting with the Open Payments API",

@@ -5,0 +5,0 @@ "author": "Interledger Tech Team <tech@interledger.org>",

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