@getvolume/volume-js
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -28,11 +28,13 @@ "use strict"; | ||
// src/requests/requests.ts | ||
var import_volume_shared2 = require("@getvolume/volume-shared"); | ||
var import_volume_shared = require("@getvolume/volume-shared"); | ||
// src/utilities/apiUrlFromVolumeEnvironment.ts | ||
var import_volume_shared = require("@getvolume/volume-shared"); | ||
var import_constants = require("@getvolume/volume-shared/src/constants"); | ||
var apiUrlFromVolumeEnvironment = (environment) => { | ||
if (environment === "live") | ||
return import_volume_shared.LIVE_API_URL; | ||
return import_constants.LIVE_API_URL; | ||
if (environment === "sandbox") | ||
return import_volume_shared.SANDBOX_API_URL; | ||
return import_constants.SANDBOX_API_URL; | ||
if (environment === "integration") | ||
return import_constants.INTEGRATION_API_URL; | ||
return environment; | ||
@@ -50,3 +52,3 @@ }; | ||
return await fetch( | ||
`${apiUrlFromVolumeEnvironment(environment)}${import_volume_shared2.Endpoints[endpoint]}`, | ||
`${apiUrlFromVolumeEnvironment(environment)}${import_volume_shared.Endpoints[endpoint]}`, | ||
{ | ||
@@ -67,5 +69,9 @@ method, | ||
name: "@getvolume/volume-js", | ||
version: "1.0.4", | ||
version: "1.0.6", | ||
description: "Volume JS", | ||
main: "dist/index.js", | ||
main: "./dist/index.js", | ||
types: "./dist/index.d.ts", | ||
files: [ | ||
"dist/**" | ||
], | ||
scripts: { | ||
@@ -72,0 +78,0 @@ test: "vitest run", |
{ | ||
"name": "@getvolume/volume-js", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Volume JS", | ||
"main": "dist/index.js", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist/**" | ||
], | ||
"scripts": { | ||
@@ -7,0 +11,0 @@ "test": "vitest run", |
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
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
4900
3
150
3