rocket-launch-live-client 0.1.1 → 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 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,22 +1,6 @@
1
1
  import RLLClient from "./Client";
2
2
  import { RLLClientOptions } from "./types/application";
3
- /**
4
- * Generate a RocketLaunch.Live client
5
- *
6
- * @public
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
- declare const clientGenerator: (apiKey: string, options?: RLLClientOptions) => RLLClient;
22
- export default clientGenerator;
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
- var clientGenerator = function (apiKey, options) {
22
+ var rllc = function (apiKey, options) {
23
23
  return new Client_1.default(apiKey, options);
24
24
  };
25
- exports.default = clientGenerator;
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,IAAM,eAAe,GAAG,UACtB,MAAc,EACd,OAA0B;IAE1B,OAAO,IAAI,gBAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rocket-launch-live-client",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A Node.JS client for interacting with the RocketLaunch.Live API",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "compile": "npm run clear && tsc && node ./dist/test.js",
10
10
  "build": "tsc",
11
11
  "start": "node ./dist/test.js",
12
- "prepublish": "tsc",
12
+ "prepublish": "npm run clear && tsc",
13
13
  "test": "mocha --watch"
14
14
  },
15
15
  "repository": {
package/dist/test.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/test.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var dotenv = require("dotenv");
4
- dotenv.config();
5
- var index_1 = require("./index");
6
- var client = (0, index_1.default)(process.env.API_KEY);
7
- var randomId = Math.floor(Math.random() * 300);
8
- client.launches({ country_code: "CA" });
9
- //# sourceMappingURL=test.js.map
package/dist/test.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;AAAA,IAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,iCAA2B;AAE3B,IAAM,MAAM,GAAG,IAAA,eAAI,EAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAEzC,IAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;AAEjD,MAAM,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC"}