@getvolume/volume-js
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -28,13 +28,13 @@ "use strict"; | ||
// src/requests/requests.ts | ||
var import_volume_shared = require("@getvolume/volume-shared"); | ||
var import_volume_shared2 = require("@getvolume/volume-shared"); | ||
// src/utilities/apiUrlFromVolumeEnvironment.ts | ||
var import_constants = require("@getvolume/volume-shared/src/constants"); | ||
var import_volume_shared = require("@getvolume/volume-shared"); | ||
var apiUrlFromVolumeEnvironment = (environment) => { | ||
if (environment === "live") | ||
return import_constants.LIVE_API_URL; | ||
return import_volume_shared.LIVE_API_URL; | ||
if (environment === "sandbox") | ||
return import_constants.SANDBOX_API_URL; | ||
return import_volume_shared.SANDBOX_API_URL; | ||
if (environment === "integration") | ||
return import_constants.INTEGRATION_API_URL; | ||
return import_volume_shared.INTEGRATION_API_URL; | ||
return environment; | ||
@@ -52,3 +52,3 @@ }; | ||
return await fetch( | ||
`${apiUrlFromVolumeEnvironment(environment)}${import_volume_shared.Endpoints[endpoint]}`, | ||
`${apiUrlFromVolumeEnvironment(environment)}${import_volume_shared2.Endpoints[endpoint]}`, | ||
{ | ||
@@ -69,3 +69,3 @@ method, | ||
name: "@getvolume/volume-js", | ||
version: "1.0.6", | ||
version: "1.0.7", | ||
description: "Volume JS", | ||
@@ -72,0 +72,0 @@ main: "./dist/index.js", |
{ | ||
"name": "@getvolume/volume-js", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Volume JS", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
4904
1