GithubHelp home page GithubHelp logo

Comments (11)

jor-rit avatar jor-rit commented on May 29, 2024 4

Yes, this can cause duplicate definitions because of the included node typings.

Would be even better to just drop typings, since it's not needed anymore with TypeScript 2.0

I see somebody already did it, but there's no pull request for it yet...?
https://github.com/microshine/base64url

from base64url.

philkunz avatar philkunz commented on May 29, 2024 1

This package is coded in TypeScript and typings are already linked in package.json. So just remove the typings directory and define @types/node as peer dependency. No need for any other external @types scoped modules.

from base64url.

philkunz avatar philkunz commented on May 29, 2024 1

I was subscribed to this subject for some reason.
Just use js-base64, it is a way better lib.

from base64url.

ssougnez avatar ssougnez commented on May 29, 2024

Hi,

especially when "@types/base64url" exists (for TS 2).

I ended up not using this package because of all the duplicates error I got.

Regards

from base64url.

heycalmdown avatar heycalmdown commented on May 29, 2024

I made npm://base64url-adhoc for temporary use before #18 accepted. You can't replace this with the original library inside existing module like jsonwebtoken. Just use it for typing if you use base64url directly in your code.

from base64url.

andybarron avatar andybarron commented on May 29, 2024

I'm getting bitten by this too -- the duplicate definitions error :/

from base64url.

kumar-muthu avatar kumar-muthu commented on May 29, 2024

I ended up writing an ugly build script using gulp, to delete all .ts files from the nodemodules\base64url folder before compiling my typescript project. This works for me.

from base64url.

rageycomma avatar rageycomma commented on May 29, 2024

@philkunz So far as I can see, js-base64 does not include base64url support, so therefore, your suggestion is not that helpful, considering that's what this package is. The alternative is base64-url which does do base64url encoding, however, I like this package, shame about the TS bindings making my life a pain. :P

from base64url.

philkunz avatar philkunz commented on May 29, 2024

@rageycomma Then you can't see very far.

from base64url.

michaeloscarli avatar michaeloscarli commented on May 29, 2024

This issue has been resolved in v3.0.0

from base64url.

MylesBorins avatar MylesBorins commented on May 29, 2024

Closing as resolved

from base64url.

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.