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

@getvolume/volume-shared

Package Overview
Dependencies
Maintainers
5
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getvolume/volume-shared - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

8

dist/index.d.ts

@@ -43,3 +43,3 @@ interface IVolumeContext {

}
declare type VolumeEnvironment = "live" | "sandbox" | (string & {});
declare type VolumeEnvironment = "live" | "sandbox" | "integration" | (string & {});
/**

@@ -120,2 +120,6 @@ * Passed as the only parameter to the `onEvent` function given to the `VolumeProvider`

}
declare enum AgentType {
WEB_BROWSER = "WEB_BROWSER",
MOBILE_APPLICATION = "MOBILE_APPLICATION"
}

@@ -135,2 +139,2 @@ declare const apiUrlFromVolumeEnvironment: (volumeEnvironment: VolumeEnvironment) => string;

export { Endpoints, FeatureFlags, INTEGRATION_API_URL, IVolumeContext, Institution, LIVE_API_URL, PaymentRequest, SANDBOX_API_URL, UseVolume, VolumeEnvironment, VolumeEvent, VolumeEventType, apiUrlFromVolumeEnvironment, numberToCurrency };
export { AgentType, Endpoints, FeatureFlags, INTEGRATION_API_URL, IVolumeContext, Institution, LIVE_API_URL, PaymentRequest, SANDBOX_API_URL, UseVolume, VolumeEnvironment, VolumeEvent, VolumeEventType, apiUrlFromVolumeEnvironment, numberToCurrency };

@@ -22,6 +22,7 @@ var __defProp = Object.defineProperty;

__export(src_exports, {
AgentType: () => AgentType,
Endpoints: () => Endpoints,
INTEGRATION_API_URL: () => INTEGRATION_API_URL2,
LIVE_API_URL: () => LIVE_API_URL2,
SANDBOX_API_URL: () => SANDBOX_API_URL2,
INTEGRATION_API_URL: () => INTEGRATION_API_URL,
LIVE_API_URL: () => LIVE_API_URL,
SANDBOX_API_URL: () => SANDBOX_API_URL,
VolumeEventType: () => VolumeEventType,

@@ -43,7 +44,19 @@ apiUrlFromVolumeEnvironment: () => apiUrlFromVolumeEnvironment,

})(VolumeEventType || {});
var AgentType = /* @__PURE__ */ ((AgentType2) => {
AgentType2["WEB_BROWSER"] = "WEB_BROWSER";
AgentType2["MOBILE_APPLICATION"] = "MOBILE_APPLICATION";
return AgentType2;
})(AgentType || {});
// src/constants.ts
var LIVE_API_URL = "https://api.volumepay.io";
var SANDBOX_API_URL = "https://api.sandbox.volumepay.io";
var INTEGRATION_API_URL = "https://api.integration.volumepay.io";
var Endpoints = {
AUTHENTICATE: "/api/authenticate",
INSTITUTIONS: "/api/institutions",
CREATE_PAYMENT: "/api/payments"
};
// src/apiUrlFromEnvironment.ts
var LIVE_API_URL = "https://api.volumepay.io/api/xxx";
var SANDBOX_API_URL = "https://api.sandbox.volumepay.io/api/xxx";
var INTEGRATION_API_URL = "https://api.integration.volumepay.io/api/xxx";
var apiUrlFromVolumeEnvironment = (volumeEnvironment) => {

@@ -62,12 +75,2 @@ switch (volumeEnvironment) {

// src/constants.ts
var LIVE_API_URL2 = "https://api.volumepay.io";
var SANDBOX_API_URL2 = "https://api.sandbox.volumepay.io";
var INTEGRATION_API_URL2 = "https://api.integration.volumepay.io";
var Endpoints = {
AUTHENTICATE: "/api/authenticate",
INSTITUTIONS: "/api/institutions",
CREATE_PAYMENT: "/api/payments"
};
// src/index.ts

@@ -83,2 +86,3 @@ var numberToCurrency = (number) => {

0 && (module.exports = {
AgentType,
Endpoints,

@@ -85,0 +89,0 @@ INTEGRATION_API_URL,

{
"name": "@getvolume/volume-shared",
"version": "0.0.5",
"version": "0.0.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "scripts": {

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