seyfert 2.1.1-dev-11916234323.0 → 2.1.1-dev-11919658033.0
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/lib/api/Router.js +2 -4
- package/package.json +1 -1
package/lib/api/Router.js
CHANGED
|
@@ -45,12 +45,10 @@ exports.CDNRouter = {
|
|
|
45
45
|
if (key === 'get') {
|
|
46
46
|
return (value, options) => {
|
|
47
47
|
const lastRoute = `${common_1.CDN_URL}/${route.join('/')}`;
|
|
48
|
-
let routeResult = lastRoute;
|
|
49
48
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
50
|
-
|
|
51
|
-
return parseCDNURL(routeResult, options);
|
|
49
|
+
return parseCDNURL(`${lastRoute}/${value}`, options);
|
|
52
50
|
}
|
|
53
|
-
return parseCDNURL(
|
|
51
|
+
return parseCDNURL(lastRoute, value);
|
|
54
52
|
};
|
|
55
53
|
}
|
|
56
54
|
return this.createProxy([...route, key]);
|