Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement payment APIs with lemonsqueezy #396

Merged
merged 18 commits into from
Aug 21, 2024
Merged

Conversation

devodii
Copy link
Collaborator

@devodii devodii commented Jul 12, 2024

No description provided.

Copy link

vercel bot commented Jul 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
coursition ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:37pm
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:37pm

Copy link
Owner

@NaucMeIT NaucMeIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocker: Seems like lockfile from Bun wasn't updated and there are other issues mentioned in comments. Nothing serious though.

.env.example Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
libs/payments/src/index.ts Outdated Show resolved Hide resolved
Copy link

socket-security bot commented Jul 13, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/[email protected]
  • Install script: install
  • Source: node install/check
🚫
Install scripts npm/[email protected]
  • Install script: postinstall
  • Source: node scripts/postinstall.js
🚫
Install scripts npm/@prisma/[email protected]
  • Install script: postinstall
  • Source: node scripts/postinstall.js
🚫
Install scripts npm/[email protected]
  • Install script: preinstall
  • Source: node scripts/preinstall-entry.js
🚫
Install scripts npm/@prisma/[email protected]
  • Install script: postinstall
  • Source: node scripts/postinstall.js
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

not sure why they keep being readded
apps/coursition/prisma/index.ts Outdated Show resolved Hide resolved
apps/coursition/prisma/index.ts Outdated Show resolved Hide resolved
apps/coursition/src/app/(auth)/sign-in/.gitkeep Outdated Show resolved Hide resolved
apps/coursition/src/app/(auth)/sign-up/.gitkeep Outdated Show resolved Hide resolved
Copy link

socket-security bot commented Aug 18, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@builder.io/[email protected] None 0 412 kB gioboa
npm/@builder.io/[email protected] environment, eval, network Transitive: filesystem, shell, unsafe +95 16.6 MB samijaber
npm/@headlessui/[email protected] environment +18 4.89 MB malfaitrobin
npm/@heroicons/[email protected] None 0 3.33 MB malfaitrobin
npm/@mdx-js/[email protected] Transitive: environment, filesystem, network +105 4.27 MB wooorm
npm/@mdx-js/[email protected] None 0 14.6 kB wooorm
npm/@next-auth/[email protected] None 0 20.5 kB balazsorban
npm/@next/[email protected] environment, filesystem 0 11.7 kB vercel-release-bot
npm/@next/[email protected] Transitive: filesystem, network +1 236 kB vercel-release-bot
npm/@prisma/[email protected] environment, filesystem, shell 0 8.67 MB prismabot
npm/@radix-ui/[email protected] None +15 696 kB benoitgrelard
npm/@radix-ui/[email protected] Transitive: environment +29 1.19 MB benoitgrelard
npm/@radix-ui/[email protected] environment 0 3.44 MB vladmoroz
npm/@radix-ui/[email protected] Transitive: environment +42 2.13 MB benoitgrelard
npm/@radix-ui/[email protected] None +5 379 kB benoitgrelard
npm/@sendgrid/[email protected] Transitive: environment, filesystem, network +6 2.42 MB twilio-dx
npm/@splitbee/[email protected] environment 0 26 kB timolins
npm/@stripe/[email protected] Transitive: environment +5 640 kB awalker-stripe
npm/@stripe/[email protected] None 0 876 kB awalker-stripe
npm/@types/[email protected] None +2 250 kB types
npm/@types/[email protected] None 0 6.33 kB types
npm/@types/[email protected] None 0 9.79 kB types
npm/@types/[email protected] None 0 89.8 kB types
npm/@types/[email protected] None +2 1.69 MB types
npm/@types/[email protected] Transitive: environment +55 2.1 MB types
npm/@typescript-eslint/[email protected] Transitive: environment, filesystem +43 8.23 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, filesystem +37 3.45 MB jameshenry
npm/[email protected] unsafe Transitive: environment, eval, filesystem, shell +187 20.3 MB vercel-release-bot
npm/[email protected] None 0 20.8 kB lydell
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +93 10.7 MB eslintbot
npm/[email protected] eval, filesystem Transitive: environment +9 846 kB rmassaioli
npm/[email protected] environment, filesystem, shell 0 3.61 kB typicode
npm/[email protected] network 0 6.39 MB sachinchoolur
npm/[email protected] Transitive: environment, filesystem, shell +50 1.52 MB okonet
npm/[email protected] environment, network +14 3.95 MB thvu
npm/[email protected] environment, network 0 392 kB lukasmalkmus
npm/[email protected] environment Transitive: filesystem, network +112 5.27 MB bkalow
npm/[email protected] filesystem Transitive: environment, eval, network +46 4.53 MB smeijer
npm/[email protected] Transitive: environment, filesystem +21 926 kB iamvishnusankar
npm/[email protected] environment, filesystem, network, shell, unsafe +13 90.1 MB vercel-release-bot
npm/[email protected] environment, filesystem, network, shell 0 503 kB andris
npm/[email protected] environment, filesystem +3 368 kB ai
npm/[email protected] None 0 2.57 MB thecrypticace
npm/[email protected] environment, filesystem, unsafe 0 8.25 MB prettier-bot
npm/[email protected] environment Transitive: eval, filesystem, network, shell +5 12.5 MB prismabot
npm/[email protected] None 0 78.2 kB tcampb30.dev
npm/[email protected] None 0 34.9 kB le0developer
npm/[email protected] filesystem +7 217 kB ksoichiro
npm/[email protected] None +25 1.8 MB atomiks
npm/[email protected] Transitive: environment +67 2.55 MB wooorm
npm/[email protected] filesystem, unsafe Transitive: environment, eval, network, shell +51 9.71 MB ramitos
npm/[email protected] environment Transitive: filesystem, shell +9 749 kB lovell
npm/[email protected] Transitive: environment +1 10.1 MB antfu
npm/[email protected] network, shell Transitive: eval +15 5.35 MB stripe-bindings
npm/[email protected] environment, filesystem, network Transitive: shell +45 5.3 MB kiwicopple
npm/[email protected] None 0 14.1 kB bradlc
npm/[email protected] environment, filesystem Transitive: network, shell, unsafe +91 13.7 MB adamwathan
npm/[email protected] environment, filesystem, unsafe +15 2.03 MB blakeembrey
npm/[email protected] None +1 416 kB ajaff
npm/[email protected] None 0 32.4 MB typescript-bot

🚮 Removed packages: npm/@ai-sdk/[email protected]), npm/@babel/[email protected]), npm/@babel/[email protected]), npm/@biomejs/[email protected]), npm/@deepgram/[email protected]), npm/@google-cloud/[email protected]), npm/@google/[email protected]), npm/@nx-extend/[email protected]), npm/@nx-tools/[email protected]), npm/@nx/[email protected]), npm/@nx/[email protected]), npm/@nx/[email protected]), npm/@nx/[email protected]), npm/@nx/[email protected]), npm/@nx/[email protected]), npm/@playwright/[email protected]), npm/@preact/[email protected]), npm/@radix-ui/[email protected]), npm/@radix-ui/[email protected]), npm/@radix-ui/[email protected]), npm/@radix-ui/[email protected]), npm/@swc-node/[email protected]), npm/@swc/[email protected]), npm/@swc/[email protected]), npm/@testing-library/[email protected]), npm/@types/[email protected]), npm/@vercel/[email protected]), npm/[email protected]), npm/[email protected]), npm/[email protected]), npm/[email protected]), npm/[email protected]), npm/[email protected])

View full report↗︎

Copy link
Collaborator

@BleedingDev BleedingDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build fails with some weird error, which I meet from time to time with Prisma. Not sure why that happens. Can you check it, @devodii? :)

Failed to compile.
./src/app/api/payments/route.ts:2:10
Type error: Module '"@prisma/client"' has no exported member 'PaymentStatus'.
  1 | import { webhookEventHandler } from '@nmit-coursition/payments'
> 2 | import { PaymentStatus } from '@prisma/client'
    |          ^
  3 | import { revalidatePath } from 'next/cache'
  4 | import { type NextRequest, NextResponse } from 'next/server'
  5 |
Warning: command "next build" exited with non-zero status code
 NX   Running target build for project coursition failed
Failed tasks:
- coursition:build
Hint: run the command with --verbose for more details.
Error: Command "bunx --bun nx build coursition --prod --verbose" exited with 1

@BleedingDev BleedingDev merged commit 06026fb into master Aug 21, 2024
6 of 7 checks passed
@BleedingDev BleedingDev deleted the feat/payments-api branch August 21, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants