aeria-sdk 0.0.65 → 0.0.66

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/mirror.js CHANGED
@@ -76,11 +76,14 @@ declare module 'aeria-sdk' {
76
76
  ? UnionToIntersection<Endpoints[keyof Endpoints]>
77
77
  : never
78
78
 
79
- type TopLevelFunction = (bearerToken?: string) => TopLevelObject & Endpoints
80
- declare const aeria: TopLevelFunction
79
+ type TopLevelAeria =
80
+ & ((bearerToken?: string) => TopLevelObject & Endpoints)
81
+ & TopLevelObject & Endpoints
82
+
83
+ declare const aeria: TopLevelAeria
81
84
 
82
85
  export const url: string
83
- export const aeria: TopLevelFunction
86
+ export const aeria: TopLevelAeria
84
87
  export default aeria
85
88
  }
86
89
  \n`;
package/dist/mirror.mjs CHANGED
@@ -75,11 +75,14 @@ declare module 'aeria-sdk' {
75
75
  ? UnionToIntersection<Endpoints[keyof Endpoints]>
76
76
  : never
77
77
 
78
- type TopLevelFunction = (bearerToken?: string) => TopLevelObject & Endpoints
79
- declare const aeria: TopLevelFunction
78
+ type TopLevelAeria =
79
+ & ((bearerToken?: string) => TopLevelObject & Endpoints)
80
+ & TopLevelObject & Endpoints
81
+
82
+ declare const aeria: TopLevelAeria
80
83
 
81
84
  export const url: string
82
- export const aeria: TopLevelFunction
85
+ export const aeria: TopLevelAeria
83
86
  export default aeria
84
87
  }
85
88
 
@@ -8,4 +8,4 @@ export type TopLevelObject = {
8
8
  POST: (...args: any) => Promise<any>;
9
9
  };
10
10
  };
11
- export declare const topLevel: (config: InstanceConfig) => (bearerToken?: string) => TopLevelObject;
11
+ export declare const topLevel: (config: InstanceConfig) => ((bearerToken?: string) => TopLevelObject) & TopLevelObject;
package/dist/topLevel.js CHANGED
@@ -38,8 +38,9 @@ const proxify = (config, _target, bearerToken, parent) => {
38
38
  });
39
39
  };
40
40
  const topLevel = (config) => {
41
- return (bearerToken) => {
41
+ const fn = (bearerToken) => {
42
42
  return proxify(config, {}, bearerToken);
43
43
  };
44
+ return proxify(config, fn);
44
45
  };
45
46
  exports.topLevel = topLevel;
package/dist/topLevel.mjs CHANGED
@@ -39,7 +39,8 @@ const proxify = (config, _target, bearerToken, parent) => {
39
39
  });
40
40
  };
41
41
  export const topLevel = (config) => {
42
- return (bearerToken) => {
42
+ const fn = (bearerToken) => {
43
43
  return proxify(config, {}, bearerToken);
44
44
  };
45
+ return proxify(config, fn);
45
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -60,8 +60,8 @@
60
60
  "@aeriajs/types": "link:../types"
61
61
  },
62
62
  "peerDependencies": {
63
- "@aeriajs/common": "^0.0.42",
64
- "@aeriajs/types": "^0.0.39"
63
+ "@aeriajs/common": "^0.0.43",
64
+ "@aeriajs/types": "^0.0.40"
65
65
  },
66
66
  "scripts": {
67
67
  "test": "echo skipping",