Giter VIP home page Giter VIP logo

Comments (3)

kriszyp avatar kriszyp commented on May 21, 2024

@huw That actually already exists, its available in cbor-x/dist/index-no-eval.cjs (and decode-only variant as well).

I suppose you might run into problems importing, I should probably add those to the exports of the cbor-x package as well.

from cbor-x.

huw avatar huw commented on May 21, 2024

Ah--that's embarrassing! I should've read through the docs a bit more thoroughly.

Thanks for adding the variants though, that should make things a bit easier :) (no compilation issues on my side though)

from cbor-x.

Aenigma avatar Aenigma commented on May 21, 2024

Hi, sorry to revive this but I had trouble using cbor-x in Cloudflare Workers, as well, and stumbled upon this issue. After importing cbor-x/dist/index-no-eval all that really came from that is that I would get a:

(error) ReferenceError: BlockedFunction is not defined

I'm not really sure what I'm doing wrong here. Additionally, the no-eval variants seem to not work at all work with TypeScript.

@huw's workaround worked fine for me. however, I'd rather not be in the habit of modifying node_modules if I can help it.

from cbor-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.