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

@getvolume/volume-js

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getvolume/volume-js - npm Package Compare versions

Comparing version 1.0.19-canary.c64cc55 to 1.0.19

4

dist/index.d.ts

@@ -13,2 +13,3 @@ import { ResponseWrapper, AgentType } from '@getvolume/volume-shared';

xCommitSha?: string;
isWebView?: boolean;
};

@@ -33,5 +34,6 @@ declare class Volume {

metadata?: Object;
}): Promise<Response>;
}): Promise<ResponseWrapper<Response>>;
cancelUrl(headers?: Record<string, string>): Promise<ResponseWrapper<Response>>;
}
export { Volume };

@@ -126,3 +126,3 @@ "use strict";

name: "@getvolume/volume-js",
version: "1.0.19-canary.c64cc55",
version: "1.0.19",
description: "Volume JS",

@@ -142,3 +142,3 @@ main: "./dist/index.js",

dependencies: {
"@getvolume/volume-shared": "0.0.13"
"@getvolume/volume-shared": "0.0.14"
},

@@ -220,23 +220,54 @@ author: "Kai Spencer",

}) {
return yield applicationIdRequest({
environment: this.initConfig.environment,
applicationId: this.initConfig.applicationId,
endpoint: "CREATE_PAYMENT",
method: "POST",
body: JSON.stringify(__spreadProps(__spreadValues(__spreadValues({}, shopperId && { shopperId }), paymentId && { paymentId }), {
paymentRequest,
institutionId,
merchantPaymentId,
metadata,
applicationId: this.initConfig.applicationId,
agentType: this.initConfig.agentType ? this.initConfig.agentType : import_volume_shared3.AgentType.MOBILE_APPLICATION
})),
xAppName: this.initConfig.xAppName,
xDeviceInfo: this.initConfig.xDeviceInfo,
xVolumeVersion: this.initConfig.xVolumeVersion,
xCommitSha: this.initConfig.xCommitSha,
additionalHeaders: headers
});
try {
return {
response: yield applicationIdRequest({
environment: this.initConfig.environment,
applicationId: this.initConfig.applicationId,
endpoint: "CREATE_PAYMENT",
method: "POST",
body: JSON.stringify(__spreadProps(__spreadValues(__spreadValues({}, shopperId && { shopperId }), paymentId && { paymentId }), {
paymentRequest,
institutionId,
merchantPaymentId,
metadata,
applicationId: this.initConfig.applicationId,
agentType: this.initConfig.agentType ? this.initConfig.agentType : import_volume_shared3.AgentType.MOBILE_APPLICATION
})),
xAppName: this.initConfig.xAppName,
xDeviceInfo: this.initConfig.xDeviceInfo,
xVolumeVersion: this.initConfig.xVolumeVersion,
xCommitSha: this.initConfig.xCommitSha,
additionalHeaders: headers
})
};
} catch (e) {
return {
error: e
};
}
});
}
cancelUrl(headers) {
return __async(this, null, function* () {
try {
return {
response: yield applicationIdRequest({
applicationId: this.initConfig.applicationId,
endpoint: "CANCEL_URL",
params: [this.initConfig.applicationId],
environment: this.initConfig.environment,
xAppName: this.initConfig.xAppName,
xDeviceInfo: this.initConfig.xDeviceInfo,
xVolumeVersion: this.initConfig.xVolumeVersion,
xCommitSha: this.initConfig.xCommitSha,
additionalHeaders: headers
})
};
} catch (e) {
return {
error: e
};
}
});
}
};

@@ -243,0 +274,0 @@ // Annotate the CommonJS export names for ESM import in node:

{
"name": "@getvolume/volume-js",
"version": "1.0.19-canary.c64cc55",
"description": "Volume JS",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
],
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"build": "tsup src/index.ts --dts",
"clean": "rm -rf dist .turbo",
"dev": "yarn build --watch"
},
"dependencies": {
"@getvolume/volume-shared": "0.0.13"
},
"author": "Kai Spencer",
"license": "ISC",
"devDependencies": {
"cross-fetch": "^3.1.5",
"msw": "^0.47.0",
"node-fetch": "^3.2.8",
"tsup": "^6.7.0",
"typescript": "^4.9.5",
"vitest": "^0.18.1"
}
"name": "@getvolume/volume-js",
"version": "1.0.19",
"description": "Volume JS",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
],
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"build": "tsup src/index.ts --dts",
"clean": "rm -rf dist .turbo",
"dev": "yarn build --watch"
},
"dependencies": {
"@getvolume/volume-shared": "0.0.14"
},
"author": "Kai Spencer",
"license": "ISC",
"devDependencies": {
"cross-fetch": "^3.1.5",
"msw": "^0.47.0",
"node-fetch": "^3.2.8",
"tsup": "^6.7.0",
"typescript": "^4.9.5",
"vitest": "^0.18.1"
}
}
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