skikrumb-api 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import ky from 'ky';
|
|
11
11
|
export const skiKrumb = (options = {
|
|
12
12
|
apiKey: '',
|
|
13
|
-
requestedWith: 'skiKrumb API Wrapper',
|
|
13
|
+
requestedWith: 'skiKrumb Node & Client API Wrapper',
|
|
14
14
|
url: 'https://api.skikrumb.ca'
|
|
15
15
|
}) => {
|
|
16
16
|
const api = ky.extend({
|
|
@@ -27,7 +27,7 @@ export const skiKrumb = (options = {
|
|
|
27
27
|
const createPaymentIntent = (form) => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
28
|
if (!form)
|
|
29
29
|
throw new Error('Form values not posted.');
|
|
30
|
-
return api.post(`${options.url}/payments/intent`, {
|
|
30
|
+
return api.post(`${options.url}/payments/purchase/intent`, {
|
|
31
31
|
body: form
|
|
32
32
|
}).json();
|
|
33
33
|
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skikrumb-api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Wrapper for the skiKrumb API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"prepublish": "npm run build",
|
|
9
9
|
"build": "tsc",
|
|
10
|
+
"publish": "npm publish",
|
|
10
11
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
12
|
},
|
|
12
13
|
"keywords": [],
|