rocket-launch-live-client 0.1.2 → 0.1.3
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/README.md +1 -1
- package/dist/index.d.ts +4 -19
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ This package is a fully-typed, promise-based, zero-dependency Node.JS JavaScript
|
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
24
|
// Import package
|
|
25
|
-
import rllc from "rocket-launch-live-client";
|
|
25
|
+
import { rllc } from "rocket-launch-live-client";
|
|
26
26
|
|
|
27
27
|
// Get API Key
|
|
28
28
|
const RLL_API_KEY = process.env.RLL_API_KEY;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import RLLClient from "./Client";
|
|
2
2
|
import { RLLClientOptions } from "./types/application";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @function
|
|
8
|
-
*
|
|
9
|
-
* @param {string} apiKey - Your RocketLaunch.Live API Key
|
|
10
|
-
* @param {Object} [options] - Optional Client Configuration options
|
|
11
|
-
* @param {boolean} options.keyInQueryParams - Set to true to send your API Key via Query parameters instead of Authorization Header (not recommended)
|
|
12
|
-
*
|
|
13
|
-
* @returns {RLLCLient}
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
*
|
|
17
|
-
* const MY_KEY = process.env.ROCKETLAUNCH_LIVE_API_KEY
|
|
18
|
-
*
|
|
19
|
-
* const client = clientGenerator(MY_KEY, { keyInQueryParams: true })
|
|
20
|
-
*/
|
|
21
|
-
export default function (apiKey: string, options?: RLLClientOptions): RLLClient;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
rllc: (apiKey: string, options?: RLLClientOptions) => RLLClient;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var Client_1 = require("./Client");
|
|
|
19
19
|
*
|
|
20
20
|
* const client = clientGenerator(MY_KEY, { keyInQueryParams: true })
|
|
21
21
|
*/
|
|
22
|
-
function
|
|
22
|
+
var rllc = function (apiKey, options) {
|
|
23
23
|
return new Client_1.default(apiKey, options);
|
|
24
|
-
}
|
|
25
|
-
exports.default =
|
|
24
|
+
};
|
|
25
|
+
exports.default = { rllc: rllc };
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,mCAAiC;AAGjC;;;;;;;;;;;;;;;;;GAiBG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,mCAAiC;AAGjC;;;;;;;;;;;;;;;;;GAiBG;AACH,IAAM,IAAI,GAAG,UAAC,MAAc,EAAE,OAA0B;IACtD,OAAA,IAAI,gBAAS,CAAC,MAAM,EAAE,OAAO,CAAC;AAA9B,CAA8B,CAAC;AAEjC,kBAAe,EAAE,IAAI,MAAA,EAAE,CAAC"}
|