https://discord.cloudflare.com logo
Join DiscordCommunities
Powered by
# workers-discussions
  • s

    Skye

    03/18/2023, 10:23 PM
    You can't use npm packages in the quick edit
  • n

    nikitasius

    03/18/2023, 10:24 PM
    emm.. if i just save it will work?
  • s

    Skye

    03/18/2023, 10:24 PM
    No, you'd have to use wrangler
  • n

    nikitasius

    03/18/2023, 10:24 PM
    😐
  • s

    Skye

    03/18/2023, 10:24 PM
    However you can just use to make a UUID
  • s

    Skye

    03/18/2023, 10:24 PM
    crypto.randomUUID()
  • s

    Skye

    03/18/2023, 10:25 PM
    It should be faster too
  • n

    nikitasius

    03/18/2023, 10:25 PM
    okay..
  • l

    Luis

    03/18/2023, 10:56 PM
    Hi there. I have a quick question. I'm thinking of using the cache API with workers, but can't I use it if my custom domain is a subdomain?
  • u

    Unsmart | Tech debt

    03/18/2023, 10:57 PM
    You can use cache api with a subdomain it doesnt need to be on the root
  • l

    Luis

    03/18/2023, 11:00 PM
    I see ... I must have programmed it wrong. 🥲 Thank you!
  • l

    Luis

    03/18/2023, 11:08 PM
    It was done. lol
  • n

    nikitasius

    03/18/2023, 11:10 PM
    Behind this code you simply gen random 16 bytes via "getRandomValues" call? (Sure with string output as UUIDv4)
  • n

    nikitasius

    03/18/2023, 11:11 PM
    Or you use another securerandom?
  • n

    nikitasius

    03/18/2023, 11:11 PM
    Also "crypto.getRandomValues" do secure random?
  • s

    samon

    03/19/2023, 12:22 AM
    hi , is there an alternative to Buffer in cloudflare workers ?
  • s

    samon

    03/19/2023, 12:24 AM
    exactly what I'm trying to do is switch from using busboy , since it doesn't work in workers
  • s

    samon

    03/19/2023, 12:24 AM
    any tips ?
  • s

    sirhype

    03/19/2023, 12:27 AM
    You can just use a Polyfill for Buffer
  • s

    samon

    03/19/2023, 12:28 AM
    polyfill.io ?
  • e

    Erisa | Support Engineer

    03/19/2023, 12:34 AM
    Theres an experimental flag that adds buffer support if youre interested 👀 https://twitter.com/jasnell/status/1633949738516230144
  • e

    Erisa | Support Engineer

    03/19/2023, 12:34 AM
    add
    nodejs_compat
    to compatibiliity flags
  • s

    sirhype

    03/19/2023, 12:34 AM
    asdf I wish I had this last night ty for sharing this!
  • s

    sirhype

    03/19/2023, 1:54 AM
    Gah, I hit the "post a help thread about it" stage of my debugging
  • a

    aaaaa01010123

    03/19/2023, 6:30 AM
    thanks , got it.
  • z

    zegevlier

    03/19/2023, 10:00 AM
    Please don't put the same question in multiple channels simultaneously. You'll only waste people's time if they don't realise it's been answered already.
  • s

    samon

    03/19/2023, 10:02 AM
    i get it
  • d

    Dogs

    03/19/2023, 6:09 PM
    any bun or deno support?
  • w

    Walshy | Pages

    03/19/2023, 6:10 PM
    They're both different runtimes
  • w

    Walshy | Pages

    03/19/2023, 6:10 PM
    Bun also doesn't run on v8
1...234723482349...2509Latest