@moonbase.sh/vue 0.1.65 → 0.1.66
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.cjs +6 -2
- package/dist/index.js +6 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -256,8 +256,12 @@ function useVoucher() {
|
|
|
256
256
|
if (!storefront)
|
|
257
257
|
throw new Error("No storefront configured");
|
|
258
258
|
return {
|
|
259
|
-
peek:
|
|
260
|
-
|
|
259
|
+
peek: async (code) => {
|
|
260
|
+
return storefront.client.vouchers.peek(code);
|
|
261
|
+
},
|
|
262
|
+
redeem: async (code) => {
|
|
263
|
+
return storefront.client.vouchers.redeem(code);
|
|
264
|
+
}
|
|
261
265
|
};
|
|
262
266
|
}
|
|
263
267
|
|
package/dist/index.js
CHANGED
|
@@ -222,8 +222,12 @@ function useVoucher() {
|
|
|
222
222
|
if (!storefront)
|
|
223
223
|
throw new Error("No storefront configured");
|
|
224
224
|
return {
|
|
225
|
-
peek:
|
|
226
|
-
|
|
225
|
+
peek: async (code) => {
|
|
226
|
+
return storefront.client.vouchers.peek(code);
|
|
227
|
+
},
|
|
228
|
+
redeem: async (code) => {
|
|
229
|
+
return storefront.client.vouchers.redeem(code);
|
|
230
|
+
}
|
|
227
231
|
};
|
|
228
232
|
}
|
|
229
233
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.66",
|
|
5
5
|
"description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@vue/devtools-api": "^6.5.1",
|
|
20
20
|
"uuid": "^9.0.1",
|
|
21
|
-
"@moonbase.sh/api-client": "0.1.
|
|
21
|
+
"@moonbase.sh/api-client": "0.1.66"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|