@getvolume/volume-js
Advanced tools
Comparing version 1.0.19-canary.c64cc55 to 1.0.19
@@ -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" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10393
301
1
3
+ Added@getvolume/volume-shared@0.0.14(transitive)
- Removed@getvolume/volume-shared@0.0.13(transitive)