1 | {
|
2 | "name": "@react-native-community/netinfo",
|
3 | "version": "6.0.2",
|
4 | "description": "React Native Network Info API for iOS & Android",
|
5 | "react-native": "src/index.ts",
|
6 | "types": "lib/typescript/src/index.d.ts",
|
7 | "main": "lib/commonjs/index.js",
|
8 | "module": "lib/module/index.js",
|
9 | "files": [
|
10 | "/android",
|
11 | "!/android/build",
|
12 | "/ios",
|
13 | "/windows",
|
14 | "/macos",
|
15 | "/src",
|
16 | "/lib",
|
17 | "/*.podspec",
|
18 | "/jest"
|
19 | ],
|
20 | "author": "Matt Oakes <hello@mattoakes.net>",
|
21 | "contributors": [
|
22 | "Mike Diarmid (Salakar) <mike@invertase.io>"
|
23 | ],
|
24 | "homepage": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
|
25 | "license": "MIT",
|
26 | "scripts": {
|
27 | "start": "react-native start",
|
28 | "start:macos": "node node_modules/react-native-macos/local-cli/cli.js start --use-react-native-macos",
|
29 | "start:web": "webpack-dev-server --config example/webpack.config.js",
|
30 | "start:windows": "react-native start --use-react-native-windows",
|
31 | "test": "yarn validate:eslint && yarn validate:typescript && yarn test:jest",
|
32 | "validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
|
33 | "validate:typescript": "tsc --project ./ --noEmit",
|
34 | "test:jest": "jest \"/src/\"",
|
35 | "build:e2e:macos": "scripts/run_macos_e2e.sh 'build'",
|
36 | "test:e2e:macos": "scripts/run_macos_e2e.sh 'test'",
|
37 | "ci:publish": "yarn semantic-release",
|
38 | "semantic-release": "semantic-release",
|
39 | "prepare": "bob build"
|
40 | },
|
41 | "keywords": [
|
42 | "react-native",
|
43 | "react native",
|
44 | "netinfo",
|
45 | "networking",
|
46 | "network info"
|
47 | ],
|
48 | "peerDependencies": {
|
49 | "react-native": ">=0.59"
|
50 | },
|
51 | "dependencies": {},
|
52 | "devDependencies": {
|
53 | "@babel/core": "^7.6.2",
|
54 | "@babel/runtime": "^7.6.2",
|
55 | "@react-native-community/bob": "^0.4.1",
|
56 | "@react-native-community/eslint-config": "^0.0.5",
|
57 | "@semantic-release/changelog": "^5.0.1",
|
58 | "@semantic-release/git": "9.0.0",
|
59 | "@types/jest": "^24.0.12",
|
60 | "@types/react-native": "^0.57.51",
|
61 | "@typescript-eslint/eslint-plugin": "^1.7.0",
|
62 | "@typescript-eslint/parser": "^1.7.0",
|
63 | "babel-loader": "^8.0.6",
|
64 | "eslint": "5.16.0",
|
65 | "eslint-config-prettier": "^4.2.0",
|
66 | "eslint-plugin-prettier": "3.0.1",
|
67 | "html-webpack-plugin": "^3.2.0",
|
68 | "husky": "^2.3.0",
|
69 | "jest": "^24.8.0",
|
70 | "jest-expo": "^36.0.1",
|
71 | "jest-fetch-mock": "^3.0.1",
|
72 | "lint-staged": "^8.1.7",
|
73 | "metro-react-native-babel-preset": "^0.56.0",
|
74 | "prettier": "^1.17.0",
|
75 | "react": "16.9.0",
|
76 | "react-dom": "^16.12.0",
|
77 | "react-native": "0.61.5",
|
78 | "react-native-macos": "0.60.0-microsoft.50",
|
79 | "react-native-web": "^0.12.0",
|
80 | "react-test-renderer": "16.9.0",
|
81 | "rimraf": "^2.6.3",
|
82 | "semantic-release": "^17.4.6",
|
83 | "source-map-loader": "^0.2.4",
|
84 | "ts-jest": "^24.0.2",
|
85 | "ts-loader": "^6.2.1",
|
86 | "typescript": "^3.4.1",
|
87 | "webpack": "^4.41.5",
|
88 | "webpack-cli": "^3.3.10",
|
89 | "webpack-dev-server": "^3.10.2",
|
90 | "react-native-windows": "0.61.0",
|
91 | "metro": "0.56.0"
|
92 | },
|
93 | "repository": {
|
94 | "type": "git",
|
95 | "url": "https://github.com/react-native-netinfo/react-native-netinfo.git"
|
96 | },
|
97 | "@react-native-community/bob": {
|
98 | "source": "src",
|
99 | "output": "lib",
|
100 | "targets": [
|
101 | "commonjs",
|
102 | "module",
|
103 | "typescript"
|
104 | ]
|
105 | },
|
106 | "husky": {
|
107 | "hooks": {
|
108 | "pre-commit": "lint-staged",
|
109 | "pre-push": "yarn test"
|
110 | }
|
111 | },
|
112 | "lint-staged": {
|
113 | "*.{js,ts,tsx}": [
|
114 | "yarn eslint --fix",
|
115 | "git add"
|
116 | ]
|
117 | }
|
118 | }
|