Giter Site home page Giter Site logo

Crypto reference about crypto-browserify HOT 4 CLOSED

guybedford avatar guybedford commented on June 11, 2024
Crypto reference

from crypto-browserify.

Comments (4)

jprichardson avatar jprichardson commented on June 11, 2024

Can you elaborate a little more on the problem with installing from npm?
I'm not seeing it. Thanks.

On Thu, Oct 16, 2014 at 5:24 AM, Guy Bedford [email protected]
wrote:

With the crypto reference in this line -
https://github.com/dominictarr/crypto-browserify/blob/master/rng.js#L4,
this module isn't completely standalone when installed through npm
normally. It's a minor issue but gave a few headaches working on jspm
support.


Reply to this email directly or view it on GitHub
#60.

Simple & Secure Bitcoin Wallet: https://www.coinbolt.com
Bitcoin / JavaScript: http://cryptocoinjs.com
Follow me on Twitter: http://twitter.com/jprichardson

from crypto-browserify.

guybedford avatar guybedford commented on June 11, 2024

If statically analyzing the code, the crypto reference in the file rng.js is actually referring to the core crypto module, and not the crypto-browserify version. Thus, it is relying on the fact that an internal map has already been set up for crypto. If it used ./index then it would be fully modular. But not a major issue at all.

from crypto-browserify.

dominictarr avatar dominictarr commented on June 11, 2024

That exact line was already fix for this: #58
jspm needs to check for this: https://github.com/dominictarr/crypto-browserify/blob/master/package.json#L38 which tells browserify to ignore the crypto module when bundling.

from crypto-browserify.

guybedford avatar guybedford commented on June 11, 2024

Thanks for clarifying - yes supporting false browser values is the right fix.

from crypto-browserify.

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.