@smart-link/rn-im 1.0.8 → 1.0.9

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.
@@ -15,15 +15,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getCookieString = void 0;
16
16
  const request_1 = require("../utils/request");
17
17
  const cookies_1 = __importDefault(require("@react-native-cookies/cookies"));
18
- let cookiesStr = '';
19
18
  const getCookieString = () => __awaiter(void 0, void 0, void 0, function* () {
20
- if (cookiesStr)
21
- return cookiesStr;
22
19
  const url = (0, request_1.getBaseURL)();
23
20
  const cookies = yield cookies_1.default.get(url);
24
- cookiesStr = Object.keys(cookies).map((key) => {
21
+ return Object.keys(cookies).map((key) => {
25
22
  return `${key}=${cookies[key].value}`;
26
23
  }).join(';');
27
- return cookiesStr;
28
24
  });
29
25
  exports.getCookieString = getCookieString;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@smart-link/rn-im",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "dependencies": {
7
7
  "color": "^5.0.0",
8
8
  "lodash-es": "^4.17.21",
9
9
  "emoji-regex": "^10.4.0",
10
- "@smart-link/im-base": "^1.0.8"
10
+ "@smart-link/im-base": "^1.0.9"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@react-native/eslint-config": "0.73.2",