react-native-security-suite 0.7.1 → 0.7.2

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 +15 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -86,18 +86,22 @@ console.log('Decrypted result: ', hardDecrypted);
86
86
  ```js
87
87
  import { fetch } from 'react-native-security-suite';
88
88
 
89
- const response = await fetch('https://example.com/api', {
90
- method: 'POST', // or any http methods
91
- headers: {
92
- 'Content-Type': 'application/json',
89
+ const response = await fetch(
90
+ 'https://example.com/api',
91
+ {
92
+ method: 'POST', // or any http methods
93
+ headers: {
94
+ 'Content-Type': 'application/json',
95
+ },
96
+ body: {
97
+ key: value,
98
+ },
99
+ certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
100
+ validDomains: ['example.com'],
101
+ timeout: 6000,
93
102
  },
94
- body: {
95
- key: value,
96
- },
97
- certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
98
- validDomains: ['example.com'],
99
- timeout: 6000,
100
- });
103
+ __DEV__
104
+ );
101
105
  console.log('server response: ', response.json());
102
106
  ```
103
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-security-suite",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Security solution for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",