@bytexbyte/ike-app-api 1.0.35 → 1.0.36

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.
@@ -14,6 +14,6 @@ declare class IKEAppBleConnectionErrorLogApi extends BxBApi {
14
14
  onSuccess?: () => void;
15
15
  onError?: (error: any) => void;
16
16
  });
17
- create(form: BleConnectionErrorLogBody, userId?: string): Promise<BleConnectionErrorLogResult>;
17
+ create(form: BleConnectionErrorLogBody): Promise<BleConnectionErrorLogResult>;
18
18
  }
19
19
  export default IKEAppBleConnectionErrorLogApi;
@@ -67,7 +67,7 @@ var IKEAppBleConnectionErrorLogApi = /** @class */ (function (_super) {
67
67
  onError: onError,
68
68
  }) || this;
69
69
  }
70
- IKEAppBleConnectionErrorLogApi.prototype.create = function (form, userId) {
70
+ IKEAppBleConnectionErrorLogApi.prototype.create = function (form) {
71
71
  return __awaiter(this, void 0, void 0, function () {
72
72
  var controller, timeoutId, response, error_1;
73
73
  return __generator(this, function (_a) {
@@ -80,14 +80,7 @@ var IKEAppBleConnectionErrorLogApi = /** @class */ (function (_super) {
80
80
  _a.trys.push([1, 3, , 4]);
81
81
  return [4 /*yield*/, this.bxbFetch({
82
82
  method: 'POST',
83
- headers: userId
84
- ? {
85
- 'Content-Type': 'application/json',
86
- 'IKE-App-User-Id': userId,
87
- }
88
- : {
89
- 'Content-Type': 'application/json',
90
- },
83
+ headers: { 'Content-Type': 'application/json' },
91
84
  body: JSON.stringify(form),
92
85
  signal: controller.signal,
93
86
  })];
package/lib/Rsa/index.js CHANGED
@@ -77,7 +77,7 @@ var IKEAppRsaApi = /** @class */ (function (_super) {
77
77
  headers: {
78
78
  'Content-Type': 'application/json',
79
79
  },
80
- body: JSON.stringify(form)
80
+ body: JSON.stringify(form),
81
81
  }, "uuid")];
82
82
  case 1:
83
83
  response = _a.sent();
@@ -96,7 +96,7 @@ var IKEAppRsaApi = /** @class */ (function (_super) {
96
96
  headers: {
97
97
  'Content-Type': 'application/json',
98
98
  },
99
- body: JSON.stringify(form)
99
+ body: JSON.stringify(form),
100
100
  }, "verifySignedToken")];
101
101
  case 1:
102
102
  response = _a.sent();
@@ -115,7 +115,7 @@ var IKEAppRsaApi = /** @class */ (function (_super) {
115
115
  headers: {
116
116
  'Content-Type': 'application/json',
117
117
  },
118
- body: JSON.stringify(form)
118
+ body: JSON.stringify(form),
119
119
  }, "verifyEncryptedToken")];
120
120
  case 1:
121
121
  response = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",