profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/joshnuss/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

joshnuss/design-patterns-in-elixir 463

Common design patterns in Elixir

joshnuss/commerce_billing 172

A payment processing library for Elixir

joshnuss/angular-rails-api 54

A template for creating angular+rails apps

joshnuss/blog-template 28

A markdown-style blog template for Sapper

joshnuss/blip 27

A fault-tolerant and concurrent StatsD server

joshnuss/bcm2835 18

Ruby bindings for libbcm2835

joshnuss/combinatorics 5

Combinatoric utilities for Elixir

j2l/sveltekit-hackathon 1

This is a WIP. Svelte is fast, Supabase is great, Bulma is simple. Let's mix them and learn some stuff. Feel free to FORK and PR (and STAR if you like it)

startedJam3/math-as-code

started time in 13 days

issue commentjoshnuss/svelte-stripe-js

Why not use the Stripe.js ES module?

At this stage I prefer to support one approach only, otherwise I have to explain that in the docs. It just adds complexity imo.

I rather the user own the stripe instance and pass it in.

If I have time down the road, I'll look at adding stores to context, or if you need it sooner, feel free to open a PR.

Bandit

comment created time in 17 days

issue commentjoshnuss/svelte-stripe-js

Why not use the Stripe.js ES module?

Yeah, I considered bind:stripe, but feels odd that the container owns the stripe instance, I rather the client own that. This is just a UI libary, so not sure if it should be responsible for that.

The problem with with setContext is that it must be called in the root of the component (outside onMount()). But loadStripe() is async and can only be called from within an async method. I tried doing that in an async onMount, but you can't call setContext() inside onMount(), Svelte throws an error.

Bandit

comment created time in 17 days

issue commentjoshnuss/svelte-stripe-js

Why not use the Stripe.js ES module?

It's possible, but how would user code get access to stripe? It's still up to the user to interface with stripe (iestripe.confirmCardPayment(), et al). If the <Container> initializes the Stripe instance, it would need to share it somehow. Not sure if that makes it simpler.

Bandit

comment created time in 17 days

push eventjoshnuss/svelte-stripe-js

Josh Nussbaum

commit sha 2a45cac3ac731e3f494052e553db46a9af926455

Fixup

view details

push time in 17 days

push eventjoshnuss/svelte-stripe-js

Josh Nussbaum

commit sha 683902d5e723ab15e39b12da3accdeb139275411

Updates examples to use loadStripe(). Closes #12

view details

push time in 17 days

issue closedjoshnuss/svelte-stripe-js

Why not use the Stripe.js ES module?

I only use Stripe related elements on certain pages of my site, so including StripeJS everywhere seems bad. I saw that Stripe lets you load it as an ES module, and using the loadStripe function you can choose when to actually load it. Does this method not work in Sveltekit?

https://github.com/stripe/stripe-js

closed time in 17 days

Bandit

issue commentjoshnuss/svelte-stripe-js

Why not use the Stripe.js ES module?

You're totally right. I'm going to update the README examples to use await loadStripe().

The only hitch is it requires initializing stripe in the onMount(), since loadStripe() is async.

Thanks for pointing this out :+1:

Bandit

comment created time in 17 days

issue commentjoshnuss/svelte-stripe-js

Why not use the Stripe.js ES module?

Hi @Bandit,

In the readme for stripe/stripe-js it says the script mist be loaded with a script tags to be PCI compliant

Note: To be PCI compliant, you must load Stripe.js directly from https://js.stripe.com. You cannot include it in a bundle or host it yourself. This package wraps the global Stripe function provided by the Stripe.js script as an ES module.

But you can have a separate layout for your checkout pages and include the script using <svelte:head> instead of setting it globally in app.html

Bandit

comment created time in 17 days

issue closedjoshnuss/svelte-stripe-js

Alipay and WeChat Payment Types

I would love to see Alipay and WeChat payment types supported so our China customers can easily pay. Thanks!

closed time in 17 days

WeAreELIC

startedisaacHagoel/svelte-dnd-action

started time in 18 days

issue closedjoshnuss/svelte-supabase

Unable to set up Sveltekit supabase

From a fresh installation using git bash on windows 10 I get this error:

Access to joshnuss/svelte-supabase denied. If you think it's an error, make sure you have an SSH key set up and linked to your Git account. If the repository is public and you don't want to configure SSH, use the --no-ssh flag.

closed time in 19 days

pdk1000

issue commentjoshnuss/svelte-supabase

Unable to set up Sveltekit supabase

Hi @pdk1000,

This is a duplicate of #7 and #9. Please try recommendations mentioned in the comments, and if it's still not working, leave comments in #7.

pdk1000

comment created time in 19 days

issue closedjoshnuss/svelte-supabase

How To Fix???

image

closed time in 19 days

ArnavK-09

issue commentjoshnuss/svelte-supabase

How To Fix???

Hi @ArnavK-09

This is a duplicate of #7, #9, #10. Please follow recommendation in #7, and comment there if there is still an issue.

ArnavK-09

comment created time in 19 days

issue commentjoshnuss/svelte-stripe-js

Alipay and WeChat Payment Types

Hi @WeAreELIC,

I'm not too familiar with WeChat and AliPay, but I believe a custom Svelte component isn't needed for these because the payment is completed with a redirect, so any button will do.

From reading the docs, the flow works like this:

  1. Add a button "Pay with WeChat" or "Pay with AliPay"
  2. When the button is clicked, POST to server to create the PaymentIntent (using payment_method_types: ["alipay"] or payment_method_types: ["wechat_pay"] and then return the PaymentIntent's client_secret
  3. Using that client_secret, call stripe.confirmWechatPayPayment(client_secret) or stripe.confirmAlipayPayment(client_secret). That will redirect the user to their wallet.

Stripe's docs:

  • AliPay https://stripe.com/docs/payments/alipay/accept-a-payment
  • WeChat https://stripe.com/docs/payments/wechat-pay/accept-a-payment

Let me know if you have questions

WeAreELIC

comment created time in 21 days

push eventjoshnuss/svelte-stripe-js

Joshua Nussbaum

commit sha 8ac4091e119a85e39d20e7c466715fcbf5a6fab3

Update README.md

view details

push time in 22 days

issue commentjoshnuss/svelte-supabase

Help Please

Hi @ArnavK-09 ,

I think this issue is a duplicate of #7, can you try the suggestions there and LMK if that fixes it.

ArnavK-09

comment created time in a month

issue closedjoshnuss/svelte-supabase

Error on install: Host key verification failed.

Trying to run the command npx apply joshnuss/svelte-supabase gives me the following error:

[ info ]  Applying preset joshnuss/svelte-supabase.
[ error ]  Could not clone joshnuss/svelte-supabase.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Tested on a new project, Node v16.5.0, running windows 10.

However, running npx apply https://github.com/joshnuss/svelte-supabase.git seems to work just fine.

closed time in a month

mdizo

issue commentjoshnuss/svelte-supabase

Error on install: Host key verification failed.

This looks like an error with local ssh configuration. So I'm closing for now.

mdizo

comment created time in a month

issue closedjoshnuss/svelte-supabase

Running apply throws error

From CL if I try: npx apply https://github.com/joshnuss/svelte-supabase.git

I get:

CLI: npx apply joshnuss/svelte-supabase
usage: apply [-a magic] [-d] [-0123456789] command arguments ...

If I use npx svelte-add joshnuss/svelte-supabase, which is the syntax I use to install tailwind, I get the following:

npx: installed 61 in 7.163s
➕ Svelte Add (Version 2021.07.20.00)
The project directory you're giving to this command cannot be determined to be guaranteed fresh — maybe it is, maybe it isn't. If any issues arise after running this command, please try again, making sure you've run it on a freshly initialized SvelteKit or Vite–Svelte app template.

joshnuss/svelte-supabase
(node:57573) UnhandledPromiseRejectionWarning: Error: npx: installed 203 in 5.745s
npx: command not found: use-preset

    at Socket.<anonymous> (file:///Users/user/.npm/_npx/57573/lib/node_modules/svelte-add/index.js:465:11)
    at Socket.emit (events.js:412:35)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:57573) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:57573) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

closed time in a month

careyestes

issue commentjoshnuss/svelte-supabase

Running apply throws error

Looks like an error in svelte-add, I think you'll have to open an issue there.

careyestes

comment created time in a month

startedoliver-moran/jimp

started time in a month

issue commentjoshnuss/svelte-codemirror

is there any syntax highlighting?

It has something to do with the loading order of components. Sorry, I don't have time to debug it right now.

If you figure it out, feel free to open a PR

jatinhemnani01

comment created time in a month

delete branch joshnuss/svelte-local-storage-store

delete branch : dependabot/npm_and_yarn/path-parse-1.0.7

delete time in a month

push eventjoshnuss/svelte-local-storage-store

dependabot[bot]

commit sha 59b50f4d59a46a91a5e2b3311137ccc69d998e40

Bump path-parse from 1.0.6 to 1.0.7 Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/jbgutierrez/path-parse/releases) - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) --- updated-dependencies: - dependency-name: path-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>

view details

Joshua Nussbaum

commit sha 293161e53fe01ed4147f1f0ecd02cc559a994ec7

Merge pull request #16 from joshnuss/dependabot/npm_and_yarn/path-parse-1.0.7 Bump path-parse from 1.0.6 to 1.0.7

view details

push time in a month

PR merged joshnuss/svelte-local-storage-store

Bump path-parse from 1.0.6 to 1.0.7 dependencies

Bumps path-parse from 1.0.6 to 1.0.7. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/jbgutierrez/path-parse/commits/v1.0.7">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

dependabot[bot]

pr closed time in a month

pull request commentjoshnuss/svelte-local-storage-store

Change .ts to .js in package.json

Welcome!

rubenhensen

comment created time in a month

pull request commentjoshnuss/svelte-local-storage-store

Change .ts to .js in package.json

Hi @suda,

I just published a fix in 0.2.4 Can you try it and confirm it's working https://www.npmjs.com/package/svelte-local-storage-store/v/0.2.4

rubenhensen

comment created time in a month

push eventjoshnuss/svelte-local-storage-store

Josh Nussbaum

commit sha 9a4fcd3de718c51f412afcb6b563c5310ab9b896

Fix exported types

view details

push time in a month