Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-libs-react-native

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-libs-react-native - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

4

globals.js

@@ -11,1 +11,5 @@ global.Buffer = require('buffer').Buffer;

global.navigator.userAgent = 'React Native';
const { encode, decode } = require("base-64");
global.atob = decode;
global.btoa = encode;

3

package.json
{
"name": "node-libs-react-native",
"version": "1.0.3",
"version": "1.1.0",
"author": "Tobias Koppers @sokra",

@@ -12,2 +12,3 @@ "description": "Node core modules for React Native",

"assert": "^1.4.1",
"base-64": "^0.1.0",
"browserify-zlib": "^0.2.0",

@@ -14,0 +15,0 @@ "buffer": "^5.0.6",

@@ -17,12 +17,14 @@ # node-libs-react-native

These modules can be used with React Native Packager's `rn-cli.config.js` or Webpack's `resolve.alias`.
These modules can be used with React Native Packager's `metro.config.js` or Webpack's `resolve.alias`.
### Usage with React Native Packager
Add a `rn-cli.config.js` file in the root directory of your React Native project and set `extraNodeModules`:
Add a `metro.config.js` file in the root directory of your React Native project and set `resolver.extraNodeModules`:
```js
// rn-cli.config.js
// metro.config.js
module.exports = {
extraNodeModules: require('node-libs-react-native'),
resolver: {
extraNodeModules: require('node-libs-react-native'),
},
};

@@ -29,0 +31,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc