Socket
Socket
Sign inDemoInstall

@react-native-community/netinfo

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/netinfo - npm Package Compare versions

Comparing version 11.3.0 to 11.3.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [11.3.1](https://github.com/react-native-netinfo/react-native-netinfo/compare/v11.3.0...v11.3.1) (2024-02-27)
### Bug Fixes
* update nativeInterface default export to support bridgeless mode ([#717](https://github.com/react-native-netinfo/react-native-netinfo/issues/717)) ([950410b](https://github.com/react-native-netinfo/react-native-netinfo/commit/950410b))
# [11.3.0](https://github.com/react-native-netinfo/react-native-netinfo/compare/v11.2.1...v11.3.0) (2024-02-14)

@@ -2,0 +9,0 @@

6

lib/commonjs/internal/nativeInterface.js

@@ -41,4 +41,3 @@ "use strict";

let nativeEventEmitter = null;
var _default = { ..._nativeModule.default,
const nativeInterface = Object.assign(_nativeModule.default, {
get eventEmitter() {

@@ -56,4 +55,5 @@ if (!nativeEventEmitter) {

};
});
var _default = nativeInterface;
exports.default = _default;
//# sourceMappingURL=nativeInterface.js.map

@@ -30,4 +30,3 @@ /**

let nativeEventEmitter = null;
export default { ...RNCNetInfo,
const nativeInterface = Object.assign(RNCNetInfo, {
get eventEmitter() {

@@ -45,3 +44,4 @@ if (!nativeEventEmitter) {

};
});
export default nativeInterface;
//# sourceMappingURL=nativeInterface.js.map

@@ -10,9 +10,5 @@ /**

import { NativeEventEmitter } from 'react-native';
declare const _default: {
eventEmitter: NativeEventEmitter;
configure: (config: Partial<import("./types").NetInfoConfiguration>) => void;
getCurrentState: (requestedInterface?: string | undefined) => Promise<import("./privateTypes").NetInfoNativeModuleState>;
addListener<K extends "netInfo.networkStatusDidChange">(type: K, listener: (event: import("./privateTypes").Events[K]) => void): void;
removeListeners<K_1 extends "netInfo.networkStatusDidChange">(type: K_1, listener: (event: import("./privateTypes").Events[K_1]) => void): void;
declare const nativeInterface: import("./privateTypes").NetInfoNativeModule & {
readonly eventEmitter: NativeEventEmitter;
};
export default _default;
export default nativeInterface;
{
"name": "@react-native-community/netinfo",
"version": "11.3.0",
"version": "11.3.1",
"description": "React Native Network Info API for iOS & Android",

@@ -5,0 +5,0 @@ "react-native": "src/index.ts",

@@ -31,4 +31,3 @@ /**

let nativeEventEmitter: NativeEventEmitter | null = null;
export default {
...RNCNetInfo,
const nativeInterface = Object.assign(RNCNetInfo, {
get eventEmitter(): NativeEventEmitter {

@@ -44,2 +43,3 @@ if (!nativeEventEmitter) {

},
};
});
export default nativeInterface;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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