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 +5 -5
- package/dist/instance.mjs +3 -3
- package/package.json +1 -1
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
|
|
17
|
-
? `${
|
|
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,
|
|
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
|
|
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,
|
|
18
|
+
return proxify(config, fn, context, bearerToken, nextSegment);
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
};
|