Comments (11)
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.
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.
I was subscribed to this subject for some reason.
Just use js-base64, it is a way better lib.
from base64url.
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.
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.
I'm getting bitten by this too -- the duplicate definitions error :/
from base64url.
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.
@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.
@rageycomma Then you can't see very far.
from base64url.
This issue has been resolved in v3.0.0
from base64url.
Closing as resolved
from base64url.
Related Issues (20)
- Buffer created without "new" HOT 1
- Node.js v7 Buffer Deprecation Warning HOT 1
- Getting "Syntax error: Variable Buffer has already been declared". HOT 1
- Do not publish global typings to npm HOT 3
- Encoding fails to create a universally decodable base64 string HOT 3
- Please provide a changelog HOT 1
- Security Vulnerability found on base64url HOT 1
- Missing v3.0.0 tag on git repo?
- Missing definition for the types file
- Vunerability "npm audit" HOT 3
- Node 4 throws "Unexpected token" error in `encode` HOT 1
- Buffer is not defined HOT 14
- react-scripts build: Failed to minify the code from this file HOT 3
- Compatibility issue on IE 11 due to default parameters HOT 1
- ES6 target should be replaced by ES5 HOT 1
- Doesnt work with Angular 7 still getting buffer is not defined HOT 3
- Where can I get the javascript source code without npm? HOT 2
- Decode base64 encoded string HOT 1
- Documentation : browser / React Native compatibility HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base64url.