react-native-security-suite 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -81,17 +81,19 @@ console.log('Decrypted result: ', hardDecrypted);
81
81
  ```
82
82
 
83
83
  \
84
- 5. SSL Pinning example:
84
+ 5. SSL Pinning with android network logger example:
85
85
 
86
86
  ```js
87
87
  import { fetch } from 'react-native-security-suite';
88
88
 
89
- const response = await fetch('URL', {
90
- method: 'GET', // or any http methods
89
+ const response = await fetch('https://example.com/api', {
90
+ method: 'POST', // or any http methods
91
91
  headers: {
92
92
  'Content-Type': 'application/json',
93
93
  },
94
- body: undefiend,
94
+ body: {
95
+ key: value,
96
+ },
95
97
  certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
96
98
  validDomains: ['example.com'],
97
99
  timeout: 6000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-security-suite",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Security solution for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",