Socket
Book a DemoInstallSign in
Socket

@cryptago/web3-lib

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cryptago/web3-lib

Web3-Module to fetch all publish Books and Documents of Cryptago's Blockchain Libary

0.0.6
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

web3-lib

This library is used to fetch data on a EVM-based blockchain

Dependencies

npm install react-app-rewired@2.2.1 assert@2.0.0 crypto-browserify@3.12.0 stream-browserify@3.0.0 buffer@6.0.3 webpack@5.76.2 --save-dev

react-app-rewired: "^2.2.1"
assert: "^2.0.0"
crypto-browserify: "^3.12.0"
stream-browserify: "^3.0.0"
buffer: "^6.0.3"
webpack: "^5.76.2"

Requirements

React-App-Rewired

React-App-Rewired is needed for React-Projects

npm install react-app-rewired

Package.json

Change

{
  "scripts": {
//    "start": "react-scripts start",
    "start": "react-app-rewired start",
//    "build": "react-scripts build",
    "build": "react-app-rewired build",
  }  
}

config.override.js

Create a file in the root-directory config.override.js for react-app-rewired

//File config.overrides.js
const webpack = require("webpack");

module.exports = function override(config){

    config.resolve = {
	    extensions: [".ts", ".tsx", ".js", ".jsx"]
    }

    const fallback = config.resolve.fallback  || {};

    Object.assign(fallback, {
	buffer: require.resolve("buffer"),
	crypto: require.resolve("crypto-browserify"),
	stream: require.resolve("stream-browserify"),
	assert: require.resolve("assert")
    })
    config.resolve.fallback = fallback;

    console.log(config.resolve.fallback)

    config.plugins = (config.plugins || []).concat([
        new webpack.ProvidePlugin({
            Buffer: ['buffer', 'Buffer']
        })
    ])

    config.ignoreWarnings = [/Failed to parse source map/];
    
    return config;
}

Keywords

Web3

FAQs

Package last updated on 27 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.