Comments (10)
Nevermind! the problem was with another module
from bitgojs.
Oh the issue is that both bitgojs and my tests are using the supertest-as-promised module and this hangs one of my test for some reason.
from bitgojs.
Ah, I guess this is the problem:
Line 30 in a8bec7b
from bitgojs.
Requiring Bitgo will break any app that uses superagent, maybe there would be a more elegant way to do this than patching superagent globally?
from bitgojs.
Thanks for debugging. Is there a way you can work around this for the moment? Is bitgo not installing its own version of superagent, because you have it installed as a peer dependency? Can you force bitgo to install its own superagent that would then not conflict? Perhaps maybe if we changed the version from ^1.4.0 to "1.4.0", then you could depend on a different version, which would force it to be installed.
from bitgojs.
We will look at how to make this cleaner, but it may take a bit.
from bitgojs.
Yes, it's using the superagent I have already npm installed.
$ node --version
v6.0.0
$ npm --version
3.8.6
from bitgojs.
As a quick fix, I think changing ^1.4.0 to "1.4.0" or if you published a fork of superagent under bitgo-superagent
from bitgojs.
FWIW, Superagent will ship with promises soon: ladjs/superagent#925 (not on npm yet though)
from bitgojs.
@bpdavenport this should fix my problem for now: #24 but ideally it would be better if bitgo didn't monkey patch superagent :)
from bitgojs.
Related Issues (20)
- resolve/test/resolver/multirepo/package.json has malicious code
- Problem with a dependency that has malicious code HOT 1
- Error: Unable to resolve module @brandonblack/musig/base_crypto HOT 2
- ReferenceError: window is not defined HOT 2
- Error on account consolidation HOT 1
- Note status of vulnerabilities regarding Threshold Signature Scheme, TSSHOCK and CVE-2023-33241
- Security issue: replace non-secure cryptography
- Unable to generate custodial wallet. HOT 3
- Error: Cannot find module '@brandonblack/musig/base_crypto' HOT 1
- SyntaxError: Invalid or unexpected token HOT 2
- Can't get address from the Public key in Zcash HOT 2
- Super expression must either be null or a function in react-native HOT 2
- Action Required: Fix Renovate Configuration
- Nestjs: Failed to load bindings, pure JS will be used HOT 4
- Issues when using eCash (XEC) with big values HOT 2
- Signing Prebuilt PSBTs HOT 6
- Tx outputs does not match with expected txParams recipients HOT 2
- Signing Prebuilt PSBTs #2 HOT 7
- Signing Prebuilt PSBTs #3 HOT 2
- Priority Fee for Send Transactions - Stucked
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 bitgojs.