@ecency/sdk 1.0.22 → 1.0.23

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.
@@ -131,9 +131,9 @@ const W = {
131
131
  allowStale: !1,
132
132
  updateAgeOnGet: !1,
133
133
  updateAgeOnHas: !1
134
- }, S = new q(W), y = Symbol("undefined"), Q = (e, t) => S.set(e, t === void 0 ? y : t), I = (e) => {
134
+ }, S = new q(W), w = Symbol("undefined"), I = (e, t) => S.set(e, t === void 0 ? w : t), Q = (e) => {
135
135
  const t = S.get(e);
136
- return t === y ? void 0 : t;
136
+ return t === w ? void 0 : t;
137
137
  };
138
138
  function Oe(e) {
139
139
  return h({
@@ -156,7 +156,7 @@ function Oe(e) {
156
156
  default:
157
157
  t = e;
158
158
  }
159
- let n = I("gecko"), o;
159
+ let n = Q("gecko"), o;
160
160
  if (n)
161
161
  o = n;
162
162
  else {
@@ -172,7 +172,7 @@ function Oe(e) {
172
172
  })
173
173
  }
174
174
  )).json();
175
- Q("gecko", i === void 0 ? y : i), o = i;
175
+ I("gecko", i === void 0 ? w : i), o = i;
176
176
  }
177
177
  return 1 / +o[Object.keys(o)[0]].usd;
178
178
  },
@@ -452,7 +452,7 @@ function X(e) {
452
452
  if (t[0] === "{")
453
453
  return JSON.parse(t);
454
454
  }
455
- const w = (e) => {
455
+ const y = (e) => {
456
456
  try {
457
457
  const t = p.storage.getItem(
458
458
  p.storagePrefix + "_user_" + e
@@ -462,7 +462,7 @@ const w = (e) => {
462
462
  console.error(t);
463
463
  return;
464
464
  }
465
- }, Y = (e) => w(e) && w(e).accessToken, Z = (e) => w(e) && w(e).postingKey;
465
+ }, Y = (e) => y(e) && y(e).accessToken, Z = (e) => y(e) && y(e).postingKey;
466
466
  function ee(e = [], t, n) {
467
467
  return u({
468
468
  mutationKey: [...e, t],
@@ -523,6 +523,7 @@ function He(e) {
523
523
  profile: {},
524
524
  tokens: Array.from(n.entries() ?? []).map(([o, s]) => ({
525
525
  symbol: o,
526
+ type: "CHAIN",
526
527
  meta: {
527
528
  address: s.address
528
529
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/sdk",
3
3
  "private": false,
4
- "version": "1.0.22",
4
+ "version": "1.0.23",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",