@edgedev/create-edge-app 1.0.34 → 1.0.35

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.
@@ -1,7 +1,7 @@
1
1
  const stripe = require('stripe')(process.env.STRIPE_API_KEY)
2
- const { onCall, HttpsError, logger, getFirestore, functions, admin, twilio, db } = require('./config.js')
2
+ const { onCall, HttpsError, logger, getFirestore, functions, admin, twilio, db, onRequest } = require('./config.js')
3
3
 
4
- exports.redirectToStripeBilling = onCall(async (request) => {
4
+ exports.redirectToBilling = onCall(async (request) => {
5
5
  const data = request.data
6
6
  const auth = request.auth
7
7
 
@@ -36,7 +36,7 @@ exports.redirectToStripeBilling = onCall(async (request) => {
36
36
  return { url: session.url }
37
37
  })
38
38
 
39
- exports.stripeWebhook = functions.https.onRequest(async (request, response) => {
39
+ exports.webhook = onRequest(async (request, response) => {
40
40
  let event
41
41
 
42
42
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/create-edge-app",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "Create Edge Starter App",
5
5
  "bin": {
6
6
  "create-edge-app": "./bin/cli.js"
package/tsconfig.json CHANGED
@@ -1,4 +1,3 @@
1
1
  {
2
- // https://nuxt.com/docs/guide/concepts/typescript
3
2
  "extends": "./.nuxt/tsconfig.json"
4
- }
3
+ }