@subiz/widget-v4 4.1.11 → 4.1.12

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.
@@ -223,7 +223,7 @@ class _default {
223
223
  for (let i = 0; true; i++) {
224
224
  await this.token_generator(true);
225
225
  if (tokensession != this.tokensession) break;
226
- outuser = await ajax.setBaseUrl(this.ApiURL).withCredentials(true).addQuery('v', '6').addQuery('x-access-token', this.last_token).setParser('json').get(`/accounts/${accid}/users/${profile_id}`);
226
+ outuser = await ajax.setBaseUrl(this.ApiURL).withCredentials(true).addQuery('v', '6').addQuery('x-access-token', this.last_token).setParser('json').get(`/accounts/${this.accid}/users/${profile_id}`);
227
227
  if (!_index.default.get(outuser, 'body.id')) {
228
228
  let sleeptime = Math.min(2000 + i * 100, 120000);
229
229
  await _index.default.sleep(sleeptime);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subiz/widget-v4",
3
- "version": "4.1.11",
3
+ "version": "4.1.12",
4
4
  "main": "./compiled_src/lib.js",
5
5
  "scripts": {
6
6
  "dev": "npx webpack serve --config webpack.dev.js",
package/src/store/api.js CHANGED
@@ -160,7 +160,7 @@ export default class {
160
160
  .addQuery('v', '6')
161
161
  .addQuery('x-access-token', this.last_token)
162
162
  .setParser('json')
163
- .get(`/accounts/${accid}/users/${profile_id}`)
163
+ .get(`/accounts/${this.accid}/users/${profile_id}`)
164
164
  if (!sb.get(outuser, 'body.id')) {
165
165
  let sleeptime = Math.min(2000 + i * 100, 120000)
166
166
  await sb.sleep(sleeptime)