UNPKG

@exodus/netinfo

Version:
114 lines (113 loc) 5.07 kB
{ "name": "@exodus/netinfo", "version": "1.4.2", "description": "React Native Network Info API for iOS & Android", "main": "js/index.js", "typings": "typings/index.d.ts", "author": "Matt Oakes <hello@mattoakes.net>", "contributors": [ "Mike Diarmid (Salakar) <mike@invertase.io>" ], "homepage": "https://github.com/ExodusMovement/react-native-netinfo#readme", "license": "MIT", "scripts": { "start": "react-native start", "test": "yarn validate:eslint && yarn validate:flow && yarn validate:typescript && yarn test:jest", "validate:eslint": "eslint 'js/**/*.js' 'example/**/*.js'", "validate:flow": "flow check", "validate:typescript": "tsc --project ./", "test:jest": "jest js/", "test:detox:android:test:debug": "detox test -c android.emu.debug", "test:detox:android:test:release": "detox test -c android.emu.release", "test:detox:android:build:debug": "detox build -c android.emu.debug", "test:detox:android:build:release": "detox build -c android.emu.release", "test:detox:android:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform android --dev false --entry-file example/index.js --bundle-output .tmp/android-bundle.js", "test:detox:ios:test:debug": "detox test -c ios.sim.debug", "test:detox:ios:test:release": "detox test -c ios.sim.release", "test:detox:ios:build:debug": "detox build -c ios.sim.debug", "test:detox:ios:build:release": "detox build -c ios.sim.release", "test:detox:ios:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform ios --dev false --entry-file example/index.js --bundle-output .tmp/ios-bundle.js", "test:detox:clean": "rimraf example/android/build && rimraf example/android/app/build && rimraf example/android/.gradle && rimraf example/ios/build", "ci:publish": "yarn semantic-release", "semantic-release": "semantic-release" }, "keywords": [ "react-native", "react native", "netinfo", "networking", "network info" ], "peerDependencies": { "react": "^16.0", "react-native": ">=0.57 <0.59" }, "dependencies": {}, "devDependencies": { "@babel/core": "^7.0.0", "@semantic-release/git": "7.0.5", "babel-core": "^7.0.0-bridge.0", "babel-eslint": "^10.0.1", "babel-jest": "^24.1.0", "babel-plugin-module-resolver": "^3.1.3", "detox": "^10.0.7", "eslint": "5.13.0", "eslint-plugin-eslint-comments": "^3.0.1", "eslint-plugin-flowtype": "3.2.1", "eslint-plugin-jest": "22.2.2", "eslint-plugin-prettier": "3.0.1", "eslint-plugin-react": "7.12.4", "eslint-plugin-react-hooks": "^1.0.1", "eslint-plugin-react-native": "3.6.0", "flow-bin": "^0.86.0", "jest": "24.1.0", "metro-react-native-babel-preset": "0.51.1", "prettier": "^1.16.4", "react": "16.6.3", "react-native": "0.58.4", "react-test-renderer": "16.6.3", "rimraf": "^2.6.3", "semantic-release": "15.10.3", "typescript": "^3.3.3" }, "jest": { "preset": "react-native", "setupFilesAfterEnv": [ "<rootDir>/jest.setup.js" ] }, "detox": { "test-runner": "jest", "runner-config": "example/e2e/config.json", "configurations": { "ios.sim.debug": { "binaryPath": "example/ios/build/Build/Products/Debug-iphonesimulator/NetInfoExample.app", "build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/NetInfoExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme NetInfoExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build -UseModernBuildSystem=YES | xcpretty -k", "type": "ios.simulator", "name": "iPhone X" }, "ios.sim.release": { "binaryPath": "example/ios/build/Build/Products/Release-iphonesimulator/NetInfoExample.app", "build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/NetInfoExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme NetInfoExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build -UseModernBuildSystem=YES | xcpretty -k", "type": "ios.simulator", "name": "iPhone X" }, "android.emu.debug": { "binaryPath": "example/android/app/build/outputs/apk/debug/app-debug.apk", "build": "export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd", "type": "android.emulator", "name": "TestingAVD" }, "android.emu.release": { "binaryPath": "example/android/app/build/outputs/apk/release/app-release.apk", "build": "export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd", "type": "android.emulator", "name": "TestingAVD" } } }, "repository": { "type": "git", "url": "https://github.com/ExodusMovement/react-native-netinfo.git" } }