@getvolume/volume-shared
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7484
219
0