rocket-launch-live-client 0.1.1 → 0.1.2

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/index.d.ts CHANGED
@@ -18,5 +18,4 @@ import { RLLClientOptions } from "./types/application";
18
18
  *
19
19
  * const client = clientGenerator(MY_KEY, { keyInQueryParams: true })
20
20
  */
21
- declare const clientGenerator: (apiKey: string, options?: RLLClientOptions) => RLLClient;
22
- export default clientGenerator;
21
+ export default function (apiKey: string, options?: RLLClientOptions): RLLClient;
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
+ function default_1(apiKey, options) {
23
23
  return new Client_1.default(apiKey, options);
24
- };
25
- exports.default = clientGenerator;
24
+ }
25
+ exports.default = default_1;
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,mBACE,MAAc,EACd,OAA0B;IAE1B,OAAO,IAAI,gBAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AALD,4BAKC"}
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.2",
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"}