aeria-sdk 0.0.197 → 0.0.198

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.
package/dist/instance.js CHANGED
@@ -11,17 +11,17 @@ const proxify = (config, _target, context, bearerToken, segment) => {
11
11
  return target[key];
12
12
  }
13
13
  const uri = segment
14
- ? segment
15
- : key;
16
- const newUri = segment
17
- ? `${segment}/${key}`
14
+ ? `/${segment}`
15
+ : `/${key}`;
16
+ const nextSegment = segment
17
+ ? `${uri}/${key}`
18
18
  : key;
19
19
  const fn = (0, exports.call)()(key, uri, {
20
20
  config,
21
21
  context,
22
22
  bearerToken,
23
23
  });
24
- return proxify(config, fn, context, bearerToken, newUri);
24
+ return proxify(config, fn, context, bearerToken, nextSegment);
25
25
  },
26
26
  });
27
27
  };
package/dist/instance.mjs CHANGED
@@ -8,14 +8,14 @@ const proxify = (config, _target, context, bearerToken, segment) => {
8
8
  if (typeof key === "symbol") {
9
9
  return target[key];
10
10
  }
11
- const uri = segment ? segment : key;
12
- const newUri = segment ? `${segment}/${key}` : key;
11
+ const uri = segment ? `/${segment}` : `/${key}`;
12
+ const nextSegment = segment ? `${uri}/${key}` : key;
13
13
  const fn = call()(key, uri, {
14
14
  config,
15
15
  context,
16
16
  bearerToken
17
17
  });
18
- return proxify(config, fn, context, bearerToken, newUri);
18
+ return proxify(config, fn, context, bearerToken, nextSegment);
19
19
  }
20
20
  });
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.197",
3
+ "version": "0.0.198",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",