@wutiange/log-listener-plugin 1.3.2 → 2.0.1-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +130 -24
- package/dist/src/HTTPInterceptor.d.ts +1 -0
- package/dist/src/HTTPInterceptor.js +12 -9
- package/dist/src/HTTPInterceptor.js.map +1 -1
- package/dist/src/Server.d.ts +13 -6
- package/dist/src/Server.js +119 -41
- package/dist/src/Server.js.map +1 -1
- package/dist/src/__mocks__/react-native/Libraries/Blob/FileReader.js +0 -1
- package/dist/src/__mocks__/react-native/Libraries/Blob/FileReader.js.map +1 -1
- package/dist/src/__mocks__/react-native/Libraries/Network/XHRInterceptor.js +0 -1
- package/dist/src/__mocks__/react-native/Libraries/Network/XHRInterceptor.js.map +1 -1
- package/dist/src/__tests__/Server.test.js +76 -115
- package/dist/src/__tests__/Server.test.js.map +1 -1
- package/dist/src/common.d.ts +19 -10
- package/dist/src/common.js +63 -4
- package/dist/src/common.js.map +1 -1
- package/dist/src/logPlugin.d.ts +12 -9
- package/dist/src/logPlugin.js +87 -82
- package/dist/src/logPlugin.js.map +1 -1
- package/dist/src/logger.d.ts +6 -0
- package/dist/src/logger.js +16 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/utils.js +12 -7
- package/dist/src/utils.js.map +1 -1
- package/index.ts +3 -0
- package/package.json +18 -12
- package/src/HTTPInterceptor.ts +339 -0
- package/src/Server.ts +164 -0
- package/src/__mocks__/react-native/Libraries/Blob/FileReader.js +45 -0
- package/src/__mocks__/react-native/Libraries/Network/XHRInterceptor.js +39 -0
- package/src/__tests__/HTTPInterceptor.test.ts +322 -0
- package/src/__tests__/Server.test.ts +150 -0
- package/src/__tests__/utils.test.ts +113 -0
- package/src/common.ts +70 -0
- package/src/logPlugin.ts +224 -0
- package/src/logger.ts +15 -0
- package/src/utils.ts +112 -0
- package/tsconfig.json +27 -0
package/tsconfig.json
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"module": "NodeNext",
|
4
|
+
"declaration": true,
|
5
|
+
"noImplicitAny": true,
|
6
|
+
"removeComments": true,
|
7
|
+
"preserveConstEnums": true,
|
8
|
+
"outDir": "dist",
|
9
|
+
"sourceMap": true,
|
10
|
+
"target": "es6",
|
11
|
+
"moduleResolution": "NodeNext",
|
12
|
+
"allowJs": true,
|
13
|
+
"esModuleInterop": true,
|
14
|
+
"skipLibCheck": true,
|
15
|
+
"forceConsistentCasingInFileNames": true,
|
16
|
+
"resolveJsonModule": true,
|
17
|
+
"allowSyntheticDefaultImports": true
|
18
|
+
},
|
19
|
+
"exclude": ["node_modules", "**/*.spec.ts"],
|
20
|
+
"include": [
|
21
|
+
"src/**/*",
|
22
|
+
"console.ts",
|
23
|
+
"fetch.ts",
|
24
|
+
"index.ts",
|
25
|
+
"react-native-extensions.d.ts"
|
26
|
+
]
|
27
|
+
}
|