rocket-launch-live-client 1.0.0 → 1.0.1

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.
Files changed (43) hide show
  1. package/README.md +7 -0
  2. package/lib/cjs/Client.js +24 -22
  3. package/lib/cjs/Watcher.js +10 -13
  4. package/lib/cjs/index.js +9 -9
  5. package/lib/cjs/package.json +3 -0
  6. package/lib/cjs/types/Client.d.ts +4 -3
  7. package/lib/cjs/types/Watcher.d.ts +3 -3
  8. package/lib/cjs/types/fetcher.d.ts +1 -1
  9. package/lib/cjs/types/index.d.ts +6 -7
  10. package/lib/cjs/types/types/application.d.ts +1 -2
  11. package/lib/cjs/types/types/standards.d.ts +0 -1
  12. package/lib/cjs/types/utils.d.ts +2 -2
  13. package/lib/cjs/utils.js +3 -3
  14. package/lib/esm/Client.js +28 -31
  15. package/lib/esm/Watcher.js +38 -52
  16. package/lib/esm/fetcher.js +5 -11
  17. package/lib/esm/index.mjs +5 -13
  18. package/lib/esm/package.json +3 -0
  19. package/lib/esm/types/Client.d.ts +4 -3
  20. package/lib/esm/types/Watcher.d.ts +3 -3
  21. package/lib/esm/types/application.js +5 -8
  22. package/lib/esm/types/fetcher.d.ts +1 -1
  23. package/lib/esm/types/index.d.ts +6 -7
  24. package/lib/esm/types/standards.js +6 -11
  25. package/lib/esm/types/types/application.d.ts +1 -2
  26. package/lib/esm/types/types/standards.d.ts +0 -1
  27. package/lib/esm/types/utils.d.ts +2 -2
  28. package/lib/esm/utils.js +21 -30
  29. package/package.json +10 -11
  30. package/lib/cjs/types/Client.d.ts.map +0 -1
  31. package/lib/cjs/types/Watcher.d.ts.map +0 -1
  32. package/lib/cjs/types/fetcher.d.ts.map +0 -1
  33. package/lib/cjs/types/index.d.ts.map +0 -1
  34. package/lib/cjs/types/types/application.d.ts.map +0 -1
  35. package/lib/cjs/types/types/standards.d.ts.map +0 -1
  36. package/lib/cjs/types/utils.d.ts.map +0 -1
  37. package/lib/esm/types/Client.d.ts.map +0 -1
  38. package/lib/esm/types/Watcher.d.ts.map +0 -1
  39. package/lib/esm/types/fetcher.d.ts.map +0 -1
  40. package/lib/esm/types/index.d.ts.map +0 -1
  41. package/lib/esm/types/types/application.d.ts.map +0 -1
  42. package/lib/esm/types/types/standards.d.ts.map +0 -1
  43. package/lib/esm/types/utils.d.ts.map +0 -1
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Table of Contents
4
4
 
5
+ - [Requirements](#reqs)
5
6
  - [Simple Usage](#simple)
6
7
  - [Client Configuration](#config)
7
8
  - [Endpoints](#endpoints)
@@ -20,6 +21,12 @@
20
21
 
21
22
  This package is a fully-typed, promise-based, zero-dependency Node.JS JavaScript/TypeScript library for interacting with the [RocketLaunch.Live](https://www.rocketlaunch.live) API.
22
23
 
24
+ <a name="reqs"></a>
25
+
26
+ ## Requirements
27
+
28
+ This package is tested on and supports Node 14.18 or higher. It is fully CommonJS/ESM compatible and has Typescript support built in.
29
+
23
30
  <a name="simple"></a>
24
31
 
25
32
  ## Simple usage
package/lib/cjs/Client.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RLLClient = void 0;
4
- const application_1 = require("./types/application");
5
- const fetcher_1 = require("./fetcher");
6
- const utils_1 = require("./utils");
7
- const Watcher_1 = require("./Watcher");
4
+ const application_js_1 = require("./types/application.js");
5
+ const fetcher_js_1 = require("./fetcher.js");
6
+ const utils_js_1 = require("./utils.js");
7
+ const Watcher_js_1 = require("./Watcher.js");
8
8
  /**
9
9
  * Class representing a RocketLaunch.Live client
10
10
  * @class
@@ -24,12 +24,12 @@ class RLLClient {
24
24
  };
25
25
  // Validate API Key is a valid UUID format
26
26
  // Constructor throws if not
27
- this.apiKey = (0, utils_1.apiKeyValidator)(apiKey);
27
+ this.apiKey = (0, utils_js_1.apiKeyValidator)(apiKey);
28
28
  if (!options) {
29
29
  return;
30
30
  }
31
31
  // Validate Options with warnings or throws
32
- (0, utils_1.optionsValidator)(options);
32
+ (0, utils_js_1.optionsValidator)(options);
33
33
  if (options.keyInQueryParams) {
34
34
  this.config.keyInQueryParams = options.keyInQueryParams;
35
35
  }
@@ -47,7 +47,7 @@ class RLLClient {
47
47
  * @returns {Promise<T>}
48
48
  */
49
49
  query(endpoint, params) {
50
- return (0, fetcher_1.fetcher)(this.apiKey, endpoint, params, this.config.keyInQueryParams);
50
+ return (0, fetcher_js_1.fetcher)(this.apiKey, endpoint, params, this.config.keyInQueryParams);
51
51
  }
52
52
  /**
53
53
  * Instantiate a new RLL Watcher which will continually query the API for changes to the launches endpoint
@@ -60,7 +60,7 @@ class RLLClient {
60
60
  * @returns {RLLWatcher}
61
61
  */
62
62
  watch(interval, options) {
63
- return new Watcher_1.RLLWatcher((params) => this.query(application_1.RLLEndPoint.LAUNCHES, params), interval, options);
63
+ return new Watcher_js_1.RLLWatcher((params) => this.query(application_js_1.RLLEndPoint.LAUNCHES, params), interval, options);
64
64
  }
65
65
  /**
66
66
  * Fetch launch companies
@@ -82,8 +82,8 @@ class RLLClient {
82
82
  * const response = await client.companies({ country_code: "US" })
83
83
  */
84
84
  companies(options) {
85
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.COMPANIES, options);
86
- return this.query(application_1.RLLEndPoint.COMPANIES, params);
85
+ const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.COMPANIES, options);
86
+ return this.query(application_js_1.RLLEndPoint.COMPANIES, params);
87
87
  }
88
88
  /**
89
89
  * Fetch launches
@@ -107,6 +107,8 @@ class RLLClient {
107
107
  * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
108
108
  * @param {number | string} options.search - Launches matching this search string
109
109
  * @param {number | string} options.slug - Launches matching this unique slug
110
+ * @param {number | string} options.limit - Limit results (default 25, max 25)
111
+ * @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
110
112
  *
111
113
  * @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
112
114
  *
@@ -115,8 +117,8 @@ class RLLClient {
115
117
  * const response = await client.launches({ after_date: new Date("2022-10-10") })
116
118
  */
117
119
  launches(options) {
118
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.LAUNCHES, options);
119
- return this.query(application_1.RLLEndPoint.LAUNCHES, params);
120
+ const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.LAUNCHES, options);
121
+ return this.query(application_js_1.RLLEndPoint.LAUNCHES, params);
120
122
  }
121
123
  /**
122
124
  * Fetch launch locations
@@ -138,8 +140,8 @@ class RLLClient {
138
140
  * const response = await client.locations({ country_code: "US" })
139
141
  */
140
142
  locations(options) {
141
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.LOCATIONS, options);
142
- return this.query(application_1.RLLEndPoint.LOCATIONS, params);
143
+ const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.LOCATIONS, options);
144
+ return this.query(application_js_1.RLLEndPoint.LOCATIONS, params);
143
145
  }
144
146
  /**
145
147
  * Fetch launch Missions
@@ -159,8 +161,8 @@ class RLLClient {
159
161
  * const response = await client.missions({ name: "Mars 2020" })
160
162
  */
161
163
  missions(options) {
162
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.MISSIONS, options);
163
- return this.query(application_1.RLLEndPoint.MISSIONS, params);
164
+ const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.MISSIONS, options);
165
+ return this.query(application_js_1.RLLEndPoint.MISSIONS, params);
164
166
  }
165
167
  /**
166
168
  * Fetch launch pads
@@ -182,8 +184,8 @@ class RLLClient {
182
184
  * const response = await client.pads({ country_code: "US" })
183
185
  */
184
186
  pads(options) {
185
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.PADS, options);
186
- return this.query(application_1.RLLEndPoint.PADS, params);
187
+ const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.PADS, options);
188
+ return this.query(application_js_1.RLLEndPoint.PADS, params);
187
189
  }
188
190
  /**
189
191
  * Fetch launch tags
@@ -203,8 +205,8 @@ class RLLClient {
203
205
  * const response = await client.tags({ text: "Crewed" })
204
206
  */
205
207
  tags(options) {
206
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.TAGS, options);
207
- return this.query(application_1.RLLEndPoint.TAGS, params);
208
+ const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.TAGS, options);
209
+ return this.query(application_js_1.RLLEndPoint.TAGS, params);
208
210
  }
209
211
  /**
210
212
  * Fetch launch Vehicles
@@ -224,8 +226,8 @@ class RLLClient {
224
226
  * const response = await client.vehicles({ name: "Falcon 9" })
225
227
  */
226
228
  vehicles(options) {
227
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.VEHICLES, options);
228
- return this.query(application_1.RLLEndPoint.VEHICLES, params);
229
+ const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.VEHICLES, options);
230
+ return this.query(application_js_1.RLLEndPoint.VEHICLES, params);
229
231
  }
230
232
  }
231
233
  exports.RLLClient = RLLClient;
@@ -1,31 +1,28 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.RLLWatcher = void 0;
7
- const events_1 = __importDefault(require("events"));
8
- const application_1 = require("./types/application");
9
- const utils_1 = require("./utils");
4
+ const events_1 = require("events");
5
+ const application_js_1 = require("./types/application.js");
6
+ const utils_js_1 = require("./utils.js");
10
7
  const DEFAULT_INTERVAL_IN_MINS = 5;
11
8
  const MS_IN_MIN = 60000;
12
9
  const intervalValidator = (interval) => {
13
10
  if (typeof interval !== "number" && typeof interval !== "string") {
14
- (0, utils_1.error)("RLLWatcher interval must be a number.");
11
+ (0, utils_js_1.error)("RLLWatcher interval must be a number.");
15
12
  return DEFAULT_INTERVAL_IN_MINS;
16
13
  }
17
14
  if (typeof interval === "string" &&
18
15
  (isNaN(Number(interval)) || interval === "")) {
19
- (0, utils_1.error)("RLLWatcher interval must be a number.", "type");
16
+ (0, utils_js_1.error)("RLLWatcher interval must be a number.", "type");
20
17
  return DEFAULT_INTERVAL_IN_MINS;
21
18
  }
22
19
  const typedInterval = Number(interval);
23
20
  if (typedInterval <= 0) {
24
- (0, utils_1.error)("RLLWatcher interval cannot be a negative number or zero. Watcher intervals should be greater than or equal to 1 minute.");
21
+ (0, utils_js_1.error)("RLLWatcher interval cannot be a negative number or zero. Watcher intervals should be greater than or equal to 1 minute.");
25
22
  return DEFAULT_INTERVAL_IN_MINS;
26
23
  }
27
24
  if (typedInterval < 1) {
28
- (0, utils_1.warn)("RLLWatcher does not accept intervals less than 1. Your watcher will default to 5 minute intervals unless corrected.");
25
+ (0, utils_js_1.warn)("RLLWatcher does not accept intervals less than 1. Your watcher will default to 5 minute intervals unless corrected.");
29
26
  return DEFAULT_INTERVAL_IN_MINS;
30
27
  }
31
28
  return typedInterval;
@@ -34,7 +31,7 @@ const intervalValidator = (interval) => {
34
31
  * Class representing a RocketLaunch.Live Client Watcher
35
32
  * @class
36
33
  */
37
- class RLLWatcher extends events_1.default {
34
+ class RLLWatcher extends events_1.EventEmitter {
38
35
  /**
39
36
  * Create a new RocketLaunch.live Client Watcher
40
37
  *
@@ -97,7 +94,7 @@ class RLLWatcher extends events_1.default {
97
94
  this.last_call = new Date();
98
95
  this.fetcher = fetcher;
99
96
  this.interval = intervalValidator(interval);
100
- this.params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.LAUNCHES, options);
97
+ this.params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.LAUNCHES, options);
101
98
  // ignore any limit params as these cause unnecessary API calls and do not serve the Watcher role
102
99
  this.params.delete("limit");
103
100
  }
@@ -123,7 +120,7 @@ class RLLWatcher extends events_1.default {
123
120
  this.launches.set(changedLaunch.id, changedLaunch);
124
121
  }
125
122
  };
126
- this.params.set("modified_since", (0, utils_1.formatToRLLISODate)(this.last_call));
123
+ this.params.set("modified_since", (0, utils_js_1.formatToRLLISODate)(this.last_call));
127
124
  this.recursivelyFetch(new URLSearchParams(this.params), notify)
128
125
  .then(() => {
129
126
  this.last_call = new Date();
package/lib/cjs/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rllc = exports.RLLWatcher = exports.RLLClient = exports.RLLEntity = exports.RLLEndPoint = void 0;
4
- const Client_1 = require("./Client");
5
- var application_1 = require("./types/application");
6
- Object.defineProperty(exports, "RLLEndPoint", { enumerable: true, get: function () { return application_1.RLLEndPoint; } });
7
- Object.defineProperty(exports, "RLLEntity", { enumerable: true, get: function () { return application_1.RLLEntity; } });
8
- var Client_2 = require("./Client");
9
- Object.defineProperty(exports, "RLLClient", { enumerable: true, get: function () { return Client_2.RLLClient; } });
10
- var Watcher_1 = require("./Watcher");
11
- Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function () { return Watcher_1.RLLWatcher; } });
4
+ const Client_js_1 = require("./Client.js");
5
+ var application_js_1 = require("./types/application.js");
6
+ Object.defineProperty(exports, "RLLEndPoint", { enumerable: true, get: function () { return application_js_1.RLLEndPoint; } });
7
+ Object.defineProperty(exports, "RLLEntity", { enumerable: true, get: function () { return application_js_1.RLLEntity; } });
8
+ var Client_js_2 = require("./Client.js");
9
+ Object.defineProperty(exports, "RLLClient", { enumerable: true, get: function () { return Client_js_2.RLLClient; } });
10
+ var Watcher_js_1 = require("./Watcher.js");
11
+ Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function () { return Watcher_js_1.RLLWatcher; } });
12
12
  /**
13
13
  * Generate a RocketLaunch.Live client
14
14
  *
@@ -26,5 +26,5 @@ Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function (
26
26
  * const MY_KEY = process.env.ROCKETLAUNCH_LIVE_API_KEY
27
27
  * const client = rllc(MY_KEY, { keyInQueryParams: true })
28
28
  */
29
- const rllc = (apiKey, options) => new Client_1.RLLClient(apiKey, options);
29
+ const rllc = (apiKey, options) => new Client_js_1.RLLClient(apiKey, options);
30
30
  exports.rllc = rllc;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,5 +1,5 @@
1
- import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application";
2
- import { RLLWatcher } from "./Watcher";
1
+ import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
2
+ import { RLLWatcher } from "./Watcher.js";
3
3
  /**
4
4
  * Class representing a RocketLaunch.Live client
5
5
  * @class
@@ -82,6 +82,8 @@ export declare class RLLClient {
82
82
  * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
83
83
  * @param {number | string} options.search - Launches matching this search string
84
84
  * @param {number | string} options.slug - Launches matching this unique slug
85
+ * @param {number | string} options.limit - Limit results (default 25, max 25)
86
+ * @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
85
87
  *
86
88
  * @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
87
89
  *
@@ -185,4 +187,3 @@ export declare class RLLClient {
185
187
  */
186
188
  vehicles(options?: RLLQueryConfig.Vehicles): Promise<RLLResponse<RLLEntity.Vehicle[]>>;
187
189
  }
188
- //# sourceMappingURL=Client.d.ts.map
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
- import EventEmitter from "events";
3
- import { RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application";
2
+ /// <reference types="node" />
3
+ import { EventEmitter } from "events";
4
+ import { RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
4
5
  /**
5
6
  * Class representing a RocketLaunch.Live Client Watcher
6
7
  * @class
@@ -78,4 +79,3 @@ export declare class RLLWatcher extends EventEmitter {
78
79
  */
79
80
  stop(): void;
80
81
  }
81
- //# sourceMappingURL=Watcher.d.ts.map
@@ -1,2 +1,2 @@
1
+ /// <reference types="node" />
1
2
  export declare const fetcher: <T>(apiKey: string, endpoint: string, params: URLSearchParams, keyInQueryParams: boolean) => Promise<T>;
2
- //# sourceMappingURL=fetcher.d.ts.map
@@ -1,9 +1,9 @@
1
- import { RLLClient } from "./Client";
2
- import { RLLClientOptions } from "./types/application";
3
- export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application";
4
- export { ISO3166Alpha2 } from "./types/standards";
5
- export { RLLClient } from "./Client";
6
- export { RLLWatcher } from "./Watcher";
1
+ import { RLLClient } from "./Client.js";
2
+ import { RLLClientOptions } from "./types/application.js";
3
+ export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application.js";
4
+ export { ISO3166Alpha2 } from "./types/standards.js";
5
+ export { RLLClient } from "./Client.js";
6
+ export { RLLWatcher } from "./Watcher.js";
7
7
  /**
8
8
  * Generate a RocketLaunch.Live client
9
9
  *
@@ -22,4 +22,3 @@ export { RLLWatcher } from "./Watcher";
22
22
  * const client = rllc(MY_KEY, { keyInQueryParams: true })
23
23
  */
24
24
  export declare const rllc: (apiKey: string, options?: RLLClientOptions) => RLLClient;
25
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ISO3166Alpha2 } from "./standards";
1
+ import { ISO3166Alpha2 } from "./standards.js";
2
2
  export declare enum RLLEndPoint {
3
3
  COMPANIES = "companies",
4
4
  LAUNCHES = "launches",
@@ -204,4 +204,3 @@ export type RLLError = {
204
204
  message: string;
205
205
  server_response: string | null;
206
206
  };
207
- //# sourceMappingURL=application.d.ts.map
@@ -314,4 +314,3 @@ export declare namespace ISO3166Alpha2 {
314
314
  type CountryCode = keyof typeof countryCodes;
315
315
  type StateCodeUS = keyof typeof usStateCodes;
316
316
  }
317
- //# sourceMappingURL=standards.d.ts.map
@@ -1,4 +1,5 @@
1
- import { RLLEndPoint, RLLQueryConfig } from "./types/application";
1
+ /// <reference types="node" />
2
+ import { RLLEndPoint, RLLQueryConfig } from "./types/application.js";
2
3
  export declare const formatToRLLISODate: (date: Date) => string;
3
4
  export declare const apiKeyValidator: (apiKey: any) => string;
4
5
  export declare const optionsValidator: (options: {
@@ -9,4 +10,3 @@ export declare const optionsValidator: (options: {
9
10
  export declare const queryOptionsValidator: (resource: RLLEndPoint, options?: RLLQueryConfig.Companies | RLLQueryConfig.Launches | RLLQueryConfig.Locations | RLLQueryConfig.Missions | RLLQueryConfig.Pads | RLLQueryConfig.Tags | RLLQueryConfig.Vehicles) => URLSearchParams;
10
11
  export declare const warn: (msg: string) => void;
11
12
  export declare const error: (msg: string, type?: "type" | "range" | "error") => void;
12
- //# sourceMappingURL=utils.d.ts.map
package/lib/cjs/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.error = exports.warn = exports.queryOptionsValidator = exports.optionsValidator = exports.apiKeyValidator = exports.formatToRLLISODate = void 0;
4
- const standards_1 = require("./types/standards");
4
+ const standards_js_1 = require("./types/standards.js");
5
5
  const getLeadingZero = (month, offset = 0) => {
6
6
  const str = "0".concat((month + offset).toString());
7
7
  return str.slice(-2);
@@ -75,7 +75,7 @@ const validators = {
75
75
  if (typeof option !== "string") {
76
76
  throw "Must be a string";
77
77
  }
78
- if (!(0, standards_1.isValidCountryCode)(option)) {
78
+ if (!(0, standards_js_1.isValidCountryCode)(option)) {
79
79
  throw "Invalid country code. Country codes should follow ISO 3166-1 A2 convention, like 'US'.";
80
80
  }
81
81
  return option;
@@ -84,7 +84,7 @@ const validators = {
84
84
  if (typeof option !== "string") {
85
85
  throw "Must be a string";
86
86
  }
87
- if (!(0, standards_1.isValidStateCode)(option)) {
87
+ if (!(0, standards_js_1.isValidStateCode)(option)) {
88
88
  throw "Invalid United States State Code. State Codes should follow ISO 3166-2 convention, like 'FL'.";
89
89
  }
90
90
  return option;
package/lib/esm/Client.js CHANGED
@@ -1,19 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RLLClient = void 0;
4
- const application_1 = require("./types/application");
5
- const fetcher_1 = require("./fetcher");
6
- const utils_1 = require("./utils");
7
- const Watcher_1 = require("./Watcher");
1
+ import { RLLEndPoint, } from "./types/application.js";
2
+ import { fetcher } from "./fetcher.js";
3
+ import { apiKeyValidator, optionsValidator, queryOptionsValidator, } from "./utils.js";
4
+ import { RLLWatcher } from "./Watcher.js";
8
5
  /**
9
6
  * Class representing a RocketLaunch.Live client
10
7
  * @class
11
8
  */
12
- class RLLClient {
13
- apiKey;
14
- config = {
15
- keyInQueryParams: false,
16
- };
9
+ export class RLLClient {
17
10
  /**
18
11
  * Create a new RocketLaunch.live Client
19
12
  *
@@ -23,14 +16,17 @@ class RLLClient {
23
16
  *
24
17
  */
25
18
  constructor(apiKey, options) {
19
+ this.config = {
20
+ keyInQueryParams: false,
21
+ };
26
22
  // Validate API Key is a valid UUID format
27
23
  // Constructor throws if not
28
- this.apiKey = (0, utils_1.apiKeyValidator)(apiKey);
24
+ this.apiKey = apiKeyValidator(apiKey);
29
25
  if (!options) {
30
26
  return;
31
27
  }
32
28
  // Validate Options with warnings or throws
33
- (0, utils_1.optionsValidator)(options);
29
+ optionsValidator(options);
34
30
  if (options.keyInQueryParams) {
35
31
  this.config.keyInQueryParams = options.keyInQueryParams;
36
32
  }
@@ -48,7 +44,7 @@ class RLLClient {
48
44
  * @returns {Promise<T>}
49
45
  */
50
46
  query(endpoint, params) {
51
- return (0, fetcher_1.fetcher)(this.apiKey, endpoint, params, this.config.keyInQueryParams);
47
+ return fetcher(this.apiKey, endpoint, params, this.config.keyInQueryParams);
52
48
  }
53
49
  /**
54
50
  * Instantiate a new RLL Watcher which will continually query the API for changes to the launches endpoint
@@ -61,7 +57,7 @@ class RLLClient {
61
57
  * @returns {RLLWatcher}
62
58
  */
63
59
  watch(interval, options) {
64
- return new Watcher_1.RLLWatcher((params) => this.query(application_1.RLLEndPoint.LAUNCHES, params), interval, options);
60
+ return new RLLWatcher((params) => this.query(RLLEndPoint.LAUNCHES, params), interval, options);
65
61
  }
66
62
  /**
67
63
  * Fetch launch companies
@@ -83,8 +79,8 @@ class RLLClient {
83
79
  * const response = await client.companies({ country_code: "US" })
84
80
  */
85
81
  companies(options) {
86
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.COMPANIES, options);
87
- return this.query(application_1.RLLEndPoint.COMPANIES, params);
82
+ const params = queryOptionsValidator(RLLEndPoint.COMPANIES, options);
83
+ return this.query(RLLEndPoint.COMPANIES, params);
88
84
  }
89
85
  /**
90
86
  * Fetch launches
@@ -108,6 +104,8 @@ class RLLClient {
108
104
  * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
109
105
  * @param {number | string} options.search - Launches matching this search string
110
106
  * @param {number | string} options.slug - Launches matching this unique slug
107
+ * @param {number | string} options.limit - Limit results (default 25, max 25)
108
+ * @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
111
109
  *
112
110
  * @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
113
111
  *
@@ -116,8 +114,8 @@ class RLLClient {
116
114
  * const response = await client.launches({ after_date: new Date("2022-10-10") })
117
115
  */
118
116
  launches(options) {
119
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.LAUNCHES, options);
120
- return this.query(application_1.RLLEndPoint.LAUNCHES, params);
117
+ const params = queryOptionsValidator(RLLEndPoint.LAUNCHES, options);
118
+ return this.query(RLLEndPoint.LAUNCHES, params);
121
119
  }
122
120
  /**
123
121
  * Fetch launch locations
@@ -139,8 +137,8 @@ class RLLClient {
139
137
  * const response = await client.locations({ country_code: "US" })
140
138
  */
141
139
  locations(options) {
142
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.LOCATIONS, options);
143
- return this.query(application_1.RLLEndPoint.LOCATIONS, params);
140
+ const params = queryOptionsValidator(RLLEndPoint.LOCATIONS, options);
141
+ return this.query(RLLEndPoint.LOCATIONS, params);
144
142
  }
145
143
  /**
146
144
  * Fetch launch Missions
@@ -160,8 +158,8 @@ class RLLClient {
160
158
  * const response = await client.missions({ name: "Mars 2020" })
161
159
  */
162
160
  missions(options) {
163
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.MISSIONS, options);
164
- return this.query(application_1.RLLEndPoint.MISSIONS, params);
161
+ const params = queryOptionsValidator(RLLEndPoint.MISSIONS, options);
162
+ return this.query(RLLEndPoint.MISSIONS, params);
165
163
  }
166
164
  /**
167
165
  * Fetch launch pads
@@ -183,8 +181,8 @@ class RLLClient {
183
181
  * const response = await client.pads({ country_code: "US" })
184
182
  */
185
183
  pads(options) {
186
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.PADS, options);
187
- return this.query(application_1.RLLEndPoint.PADS, params);
184
+ const params = queryOptionsValidator(RLLEndPoint.PADS, options);
185
+ return this.query(RLLEndPoint.PADS, params);
188
186
  }
189
187
  /**
190
188
  * Fetch launch tags
@@ -204,8 +202,8 @@ class RLLClient {
204
202
  * const response = await client.tags({ text: "Crewed" })
205
203
  */
206
204
  tags(options) {
207
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.TAGS, options);
208
- return this.query(application_1.RLLEndPoint.TAGS, params);
205
+ const params = queryOptionsValidator(RLLEndPoint.TAGS, options);
206
+ return this.query(RLLEndPoint.TAGS, params);
209
207
  }
210
208
  /**
211
209
  * Fetch launch Vehicles
@@ -225,8 +223,7 @@ class RLLClient {
225
223
  * const response = await client.vehicles({ name: "Falcon 9" })
226
224
  */
227
225
  vehicles(options) {
228
- const params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.VEHICLES, options);
229
- return this.query(application_1.RLLEndPoint.VEHICLES, params);
226
+ const params = queryOptionsValidator(RLLEndPoint.VEHICLES, options);
227
+ return this.query(RLLEndPoint.VEHICLES, params);
230
228
  }
231
229
  }
232
- exports.RLLClient = RLLClient;
@@ -1,31 +1,25 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.RLLWatcher = void 0;
7
- const events_1 = __importDefault(require("events"));
8
- const application_1 = require("./types/application");
9
- const utils_1 = require("./utils");
1
+ import { EventEmitter } from "events";
2
+ import { RLLEndPoint, } from "./types/application.js";
3
+ import { error, warn, queryOptionsValidator, formatToRLLISODate, } from "./utils.js";
10
4
  const DEFAULT_INTERVAL_IN_MINS = 5;
11
5
  const MS_IN_MIN = 60000;
12
6
  const intervalValidator = (interval) => {
13
7
  if (typeof interval !== "number" && typeof interval !== "string") {
14
- (0, utils_1.error)("RLLWatcher interval must be a number.");
8
+ error("RLLWatcher interval must be a number.");
15
9
  return DEFAULT_INTERVAL_IN_MINS;
16
10
  }
17
11
  if (typeof interval === "string" &&
18
12
  (isNaN(Number(interval)) || interval === "")) {
19
- (0, utils_1.error)("RLLWatcher interval must be a number.", "type");
13
+ error("RLLWatcher interval must be a number.", "type");
20
14
  return DEFAULT_INTERVAL_IN_MINS;
21
15
  }
22
16
  const typedInterval = Number(interval);
23
17
  if (typedInterval <= 0) {
24
- (0, utils_1.error)("RLLWatcher interval cannot be a negative number or zero. Watcher intervals should be greater than or equal to 1 minute.");
18
+ error("RLLWatcher interval cannot be a negative number or zero. Watcher intervals should be greater than or equal to 1 minute.");
25
19
  return DEFAULT_INTERVAL_IN_MINS;
26
20
  }
27
21
  if (typedInterval < 1) {
28
- (0, utils_1.warn)("RLLWatcher does not accept intervals less than 1. Your watcher will default to 5 minute intervals unless corrected.");
22
+ warn("RLLWatcher does not accept intervals less than 1. Your watcher will default to 5 minute intervals unless corrected.");
29
23
  return DEFAULT_INTERVAL_IN_MINS;
30
24
  }
31
25
  return typedInterval;
@@ -34,15 +28,7 @@ const intervalValidator = (interval) => {
34
28
  * Class representing a RocketLaunch.Live Client Watcher
35
29
  * @class
36
30
  */
37
- class RLLWatcher extends events_1.default {
38
- _untypedOn;
39
- _untypedEmit;
40
- last_call;
41
- launches = new Map();
42
- interval;
43
- params;
44
- timer;
45
- fetcher;
31
+ export class RLLWatcher extends EventEmitter {
46
32
  /**
47
33
  * Create a new RocketLaunch.live Client Watcher
48
34
  *
@@ -68,6 +54,34 @@ class RLLWatcher extends events_1.default {
68
54
  */
69
55
  constructor(fetcher, interval = DEFAULT_INTERVAL_IN_MINS, options) {
70
56
  super();
57
+ this.launches = new Map();
58
+ /**
59
+ * Recursive API Caller to iterate through pages
60
+ *
61
+ * @private
62
+ * @function
63
+ *
64
+ * @param {URLSearchParams} params - Search parameters
65
+ * @param {function(results: RLLResponse<RLLEntity.Launch[]>)} callback - To execute on each page
66
+ *
67
+ * @returns {Promise<void>}
68
+ */
69
+ this.recursivelyFetch = (params, callback) => {
70
+ let page = 1;
71
+ const recursiveFetcher = () => {
72
+ this.emit("call", params);
73
+ return this.fetcher(params).then((results) => {
74
+ callback(results);
75
+ if (results.last_page > page) {
76
+ page++;
77
+ params.set("page", page.toString());
78
+ return recursiveFetcher();
79
+ }
80
+ return;
81
+ });
82
+ };
83
+ return recursiveFetcher();
84
+ };
71
85
  // Reassign default Event Emitter methods
72
86
  this._untypedOn = this.on;
73
87
  this._untypedEmit = this.emit;
@@ -77,37 +91,10 @@ class RLLWatcher extends events_1.default {
77
91
  this.last_call = new Date();
78
92
  this.fetcher = fetcher;
79
93
  this.interval = intervalValidator(interval);
80
- this.params = (0, utils_1.queryOptionsValidator)(application_1.RLLEndPoint.LAUNCHES, options);
94
+ this.params = queryOptionsValidator(RLLEndPoint.LAUNCHES, options);
81
95
  // ignore any limit params as these cause unnecessary API calls and do not serve the Watcher role
82
96
  this.params.delete("limit");
83
97
  }
84
- /**
85
- * Recursive API Caller to iterate through pages
86
- *
87
- * @private
88
- * @function
89
- *
90
- * @param {URLSearchParams} params - Search parameters
91
- * @param {function(results: RLLResponse<RLLEntity.Launch[]>)} callback - To execute on each page
92
- *
93
- * @returns {Promise<void>}
94
- */
95
- recursivelyFetch = (params, callback) => {
96
- let page = 1;
97
- const recursiveFetcher = () => {
98
- this.emit("call", params);
99
- return this.fetcher(params).then((results) => {
100
- callback(results);
101
- if (results.last_page > page) {
102
- page++;
103
- params.set("page", page.toString());
104
- return recursiveFetcher();
105
- }
106
- return;
107
- });
108
- };
109
- return recursiveFetcher();
110
- };
111
98
  /**
112
99
  * Query wrapper to trigger events
113
100
  *
@@ -130,7 +117,7 @@ class RLLWatcher extends events_1.default {
130
117
  this.launches.set(changedLaunch.id, changedLaunch);
131
118
  }
132
119
  };
133
- this.params.set("modified_since", (0, utils_1.formatToRLLISODate)(this.last_call));
120
+ this.params.set("modified_since", formatToRLLISODate(this.last_call));
134
121
  this.recursivelyFetch(new URLSearchParams(this.params), notify)
135
122
  .then(() => {
136
123
  this.last_call = new Date();
@@ -179,4 +166,3 @@ class RLLWatcher extends events_1.default {
179
166
  }
180
167
  }
181
168
  }
182
- exports.RLLWatcher = RLLWatcher;
@@ -1,12 +1,6 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.fetcher = void 0;
7
- const https_1 = __importDefault(require("https"));
1
+ import https from "https";
8
2
  const BASE_URL = "https://fdo.rocketlaunch.live";
9
- const fetcher = (apiKey, endpoint, params, keyInQueryParams) => {
3
+ export const fetcher = (apiKey, endpoint, params, keyInQueryParams) => {
10
4
  const url = new URL("json/" + endpoint, BASE_URL);
11
5
  let headers;
12
6
  if (keyInQueryParams) {
@@ -18,13 +12,13 @@ const fetcher = (apiKey, endpoint, params, keyInQueryParams) => {
18
12
  params.forEach((v, k) => url.searchParams.set(k, v));
19
13
  return query(url, headers);
20
14
  };
21
- exports.fetcher = fetcher;
22
15
  const query = (url, headers) => {
23
16
  return new Promise((resolve, reject) => {
24
- const req = https_1.default.get(url, { headers }, (res) => {
17
+ const req = https.get(url, { headers }, (res) => {
25
18
  let data = [];
26
19
  res.on("data", (chunk) => data.push(chunk));
27
20
  res.on("end", () => {
21
+ var _a;
28
22
  const response = Buffer.concat(data).toString();
29
23
  if (res.statusCode === 200) {
30
24
  resolve(JSON.parse(response));
@@ -32,7 +26,7 @@ const query = (url, headers) => {
32
26
  else {
33
27
  const error = {
34
28
  error: "API Call Failed",
35
- statusCode: res.statusCode ?? null,
29
+ statusCode: (_a = res.statusCode) !== null && _a !== void 0 ? _a : null,
36
30
  message: "RLLC recieved a response from the server but it did not complete as expected.",
37
31
  server_response: JSON.parse(response),
38
32
  };
package/lib/esm/index.mjs CHANGED
@@ -1,14 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rllc = exports.RLLWatcher = exports.RLLClient = exports.RLLEntity = exports.RLLEndPoint = void 0;
4
- const Client_1 = require("./Client");
5
- var application_1 = require("./types/application");
6
- Object.defineProperty(exports, "RLLEndPoint", { enumerable: true, get: function () { return application_1.RLLEndPoint; } });
7
- Object.defineProperty(exports, "RLLEntity", { enumerable: true, get: function () { return application_1.RLLEntity; } });
8
- var Client_2 = require("./Client");
9
- Object.defineProperty(exports, "RLLClient", { enumerable: true, get: function () { return Client_2.RLLClient; } });
10
- var Watcher_1 = require("./Watcher");
11
- Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function () { return Watcher_1.RLLWatcher; } });
1
+ import { RLLClient } from "./Client.js";
2
+ export { RLLEndPoint, RLLEntity, } from "./types/application.js";
3
+ export { RLLClient } from "./Client.js";
4
+ export { RLLWatcher } from "./Watcher.js";
12
5
  /**
13
6
  * Generate a RocketLaunch.Live client
14
7
  *
@@ -26,5 +19,4 @@ Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function (
26
19
  * const MY_KEY = process.env.ROCKETLAUNCH_LIVE_API_KEY
27
20
  * const client = rllc(MY_KEY, { keyInQueryParams: true })
28
21
  */
29
- const rllc = (apiKey, options) => new Client_1.RLLClient(apiKey, options);
30
- exports.rllc = rllc;
22
+ export const rllc = (apiKey, options) => new RLLClient(apiKey, options);
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,5 +1,5 @@
1
- import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application";
2
- import { RLLWatcher } from "./Watcher";
1
+ import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
2
+ import { RLLWatcher } from "./Watcher.js";
3
3
  /**
4
4
  * Class representing a RocketLaunch.Live client
5
5
  * @class
@@ -82,6 +82,8 @@ export declare class RLLClient {
82
82
  * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
83
83
  * @param {number | string} options.search - Launches matching this search string
84
84
  * @param {number | string} options.slug - Launches matching this unique slug
85
+ * @param {number | string} options.limit - Limit results (default 25, max 25)
86
+ * @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
85
87
  *
86
88
  * @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
87
89
  *
@@ -185,4 +187,3 @@ export declare class RLLClient {
185
187
  */
186
188
  vehicles(options?: RLLQueryConfig.Vehicles): Promise<RLLResponse<RLLEntity.Vehicle[]>>;
187
189
  }
188
- //# sourceMappingURL=Client.d.ts.map
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
- import EventEmitter from "events";
3
- import { RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application";
2
+ /// <reference types="node" />
3
+ import { EventEmitter } from "events";
4
+ import { RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
4
5
  /**
5
6
  * Class representing a RocketLaunch.Live Client Watcher
6
7
  * @class
@@ -78,4 +79,3 @@ export declare class RLLWatcher extends EventEmitter {
78
79
  */
79
80
  stop(): void;
80
81
  }
81
- //# sourceMappingURL=Watcher.d.ts.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RLLQueryParams = exports.RLLEntity = exports.RLLEndPoint = void 0;
4
- var RLLEndPoint;
1
+ export var RLLEndPoint;
5
2
  (function (RLLEndPoint) {
6
3
  RLLEndPoint["COMPANIES"] = "companies";
7
4
  RLLEndPoint["LAUNCHES"] = "launches";
@@ -10,8 +7,8 @@ var RLLEndPoint;
10
7
  RLLEndPoint["PADS"] = "pads";
11
8
  RLLEndPoint["TAGS"] = "tags";
12
9
  RLLEndPoint["VEHICLES"] = "vehicles";
13
- })(RLLEndPoint || (exports.RLLEndPoint = RLLEndPoint = {}));
14
- var RLLEntity;
10
+ })(RLLEndPoint || (RLLEndPoint = {}));
11
+ export var RLLEntity;
15
12
  (function (RLLEntity) {
16
13
  let LaunchResult;
17
14
  (function (LaunchResult) {
@@ -21,8 +18,8 @@ var RLLEntity;
21
18
  LaunchResult[LaunchResult["PARTIAL_FAILURE"] = 2] = "PARTIAL_FAILURE";
22
19
  LaunchResult[LaunchResult["IN_FLIGHT_ABORT_CREWED"] = 3] = "IN_FLIGHT_ABORT_CREWED";
23
20
  })(LaunchResult = RLLEntity.LaunchResult || (RLLEntity.LaunchResult = {}));
24
- })(RLLEntity || (exports.RLLEntity = RLLEntity = {}));
25
- exports.RLLQueryParams = {
21
+ })(RLLEntity || (RLLEntity = {}));
22
+ export const RLLQueryParams = {
26
23
  id: true,
27
24
  page: true,
28
25
  name: true,
@@ -1,2 +1,2 @@
1
+ /// <reference types="node" />
1
2
  export declare const fetcher: <T>(apiKey: string, endpoint: string, params: URLSearchParams, keyInQueryParams: boolean) => Promise<T>;
2
- //# sourceMappingURL=fetcher.d.ts.map
@@ -1,9 +1,9 @@
1
- import { RLLClient } from "./Client";
2
- import { RLLClientOptions } from "./types/application";
3
- export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application";
4
- export { ISO3166Alpha2 } from "./types/standards";
5
- export { RLLClient } from "./Client";
6
- export { RLLWatcher } from "./Watcher";
1
+ import { RLLClient } from "./Client.js";
2
+ import { RLLClientOptions } from "./types/application.js";
3
+ export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application.js";
4
+ export { ISO3166Alpha2 } from "./types/standards.js";
5
+ export { RLLClient } from "./Client.js";
6
+ export { RLLWatcher } from "./Watcher.js";
7
7
  /**
8
8
  * Generate a RocketLaunch.Live client
9
9
  *
@@ -22,4 +22,3 @@ export { RLLWatcher } from "./Watcher";
22
22
  * const client = rllc(MY_KEY, { keyInQueryParams: true })
23
23
  */
24
24
  export declare const rllc: (apiKey: string, options?: RLLClientOptions) => RLLClient;
25
- //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isValidStateCode = exports.isValidCountryCode = exports.usStateCodes = exports.countryCodes = void 0;
4
- exports.countryCodes = {
1
+ export const countryCodes = {
5
2
  AF: "AF",
6
3
  AL: "AL",
7
4
  DZ: "DZ",
@@ -252,7 +249,7 @@ exports.countryCodes = {
252
249
  ZW: "ZW",
253
250
  AX: "AX",
254
251
  };
255
- exports.usStateCodes = {
252
+ export const usStateCodes = {
256
253
  AL: "AL",
257
254
  AK: "AK",
258
255
  AZ: "AZ",
@@ -311,11 +308,9 @@ exports.usStateCodes = {
311
308
  UM: "UM",
312
309
  VI: "VI",
313
310
  };
314
- const isValidCountryCode = (code) => {
315
- return !!exports.countryCodes[code];
311
+ export const isValidCountryCode = (code) => {
312
+ return !!countryCodes[code];
316
313
  };
317
- exports.isValidCountryCode = isValidCountryCode;
318
- const isValidStateCode = (code) => {
319
- return !!exports.usStateCodes[code];
314
+ export const isValidStateCode = (code) => {
315
+ return !!usStateCodes[code];
320
316
  };
321
- exports.isValidStateCode = isValidStateCode;
@@ -1,4 +1,4 @@
1
- import { ISO3166Alpha2 } from "./standards";
1
+ import { ISO3166Alpha2 } from "./standards.js";
2
2
  export declare enum RLLEndPoint {
3
3
  COMPANIES = "companies",
4
4
  LAUNCHES = "launches",
@@ -204,4 +204,3 @@ export type RLLError = {
204
204
  message: string;
205
205
  server_response: string | null;
206
206
  };
207
- //# sourceMappingURL=application.d.ts.map
@@ -314,4 +314,3 @@ export declare namespace ISO3166Alpha2 {
314
314
  type CountryCode = keyof typeof countryCodes;
315
315
  type StateCodeUS = keyof typeof usStateCodes;
316
316
  }
317
- //# sourceMappingURL=standards.d.ts.map
@@ -1,4 +1,5 @@
1
- import { RLLEndPoint, RLLQueryConfig } from "./types/application";
1
+ /// <reference types="node" />
2
+ import { RLLEndPoint, RLLQueryConfig } from "./types/application.js";
2
3
  export declare const formatToRLLISODate: (date: Date) => string;
3
4
  export declare const apiKeyValidator: (apiKey: any) => string;
4
5
  export declare const optionsValidator: (options: {
@@ -9,4 +10,3 @@ export declare const optionsValidator: (options: {
9
10
  export declare const queryOptionsValidator: (resource: RLLEndPoint, options?: RLLQueryConfig.Companies | RLLQueryConfig.Launches | RLLQueryConfig.Locations | RLLQueryConfig.Missions | RLLQueryConfig.Pads | RLLQueryConfig.Tags | RLLQueryConfig.Vehicles) => URLSearchParams;
10
11
  export declare const warn: (msg: string) => void;
11
12
  export declare const error: (msg: string, type?: "type" | "range" | "error") => void;
12
- //# sourceMappingURL=utils.d.ts.map
package/lib/esm/utils.js CHANGED
@@ -1,46 +1,40 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.error = exports.warn = exports.queryOptionsValidator = exports.optionsValidator = exports.apiKeyValidator = exports.formatToRLLISODate = void 0;
4
- const standards_1 = require("./types/standards");
1
+ import { isValidCountryCode, isValidStateCode } from "./types/standards.js";
5
2
  const getLeadingZero = (month, offset = 0) => {
6
3
  const str = "0".concat((month + offset).toString());
7
4
  return str.slice(-2);
8
5
  };
9
- const formatToRLLISODate = (date) => {
6
+ export const formatToRLLISODate = (date) => {
10
7
  return date.toISOString().slice(0, 19).concat("Z");
11
8
  };
12
- exports.formatToRLLISODate = formatToRLLISODate;
13
- const apiKeyValidator = (apiKey) => {
9
+ export const apiKeyValidator = (apiKey) => {
14
10
  if (apiKey === undefined) {
15
- (0, exports.error)("RLL Client requires API Key", "type");
11
+ error("RLL Client requires API Key", "type");
16
12
  }
17
13
  if (typeof apiKey !== "string") {
18
- (0, exports.error)("RLL Client API Key must be a string", "type");
14
+ error("RLL Client API Key must be a string", "type");
19
15
  }
20
16
  const trimmedKey = apiKey.trim();
21
17
  if (trimmedKey === "") {
22
- (0, exports.error)("RLL Client API Key cannot be an empty string", "type");
18
+ error("RLL Client API Key cannot be an empty string", "type");
23
19
  }
24
20
  const validator = trimmedKey.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
25
21
  if (validator === null) {
26
- (0, exports.error)("RLL Client API Key appears malformed. RLL Client API Keys are in UUID format.", "type");
22
+ error("RLL Client API Key appears malformed. RLL Client API Keys are in UUID format.", "type");
27
23
  }
28
24
  return trimmedKey;
29
25
  };
30
- exports.apiKeyValidator = apiKeyValidator;
31
- const optionsValidator = (options) => {
26
+ export const optionsValidator = (options) => {
32
27
  for (const option in options) {
33
28
  if (option !== "keyInQueryParams") {
34
- (0, exports.warn)(`RLL Client options do not accept a "${option}" property. This property will be ignored.`);
29
+ warn(`RLL Client options do not accept a "${option}" property. This property will be ignored.`);
35
30
  }
36
31
  else {
37
32
  if (typeof options[option] !== "boolean") {
38
- (0, exports.error)("RLL Client configuration option 'keyInQueryParams' must be a boolean.", "type");
33
+ error("RLL Client configuration option 'keyInQueryParams' must be a boolean.", "type");
39
34
  }
40
35
  }
41
36
  }
42
37
  };
43
- exports.optionsValidator = optionsValidator;
44
38
  const validators = {
45
39
  string: (option) => {
46
40
  if (typeof option === "number") {
@@ -75,7 +69,7 @@ const validators = {
75
69
  if (typeof option !== "string") {
76
70
  throw "Must be a string";
77
71
  }
78
- if (!(0, standards_1.isValidCountryCode)(option)) {
72
+ if (!isValidCountryCode(option)) {
79
73
  throw "Invalid country code. Country codes should follow ISO 3166-1 A2 convention, like 'US'.";
80
74
  }
81
75
  return option;
@@ -84,7 +78,7 @@ const validators = {
84
78
  if (typeof option !== "string") {
85
79
  throw "Must be a string";
86
80
  }
87
- if (!(0, standards_1.isValidStateCode)(option)) {
81
+ if (!isValidStateCode(option)) {
88
82
  throw "Invalid United States State Code. State Codes should follow ISO 3166-2 convention, like 'FL'.";
89
83
  }
90
84
  return option;
@@ -130,7 +124,7 @@ const validators = {
130
124
  else {
131
125
  date = option;
132
126
  }
133
- return (0, exports.formatToRLLISODate)(date);
127
+ return formatToRLLISODate(date);
134
128
  },
135
129
  limit: (option) => {
136
130
  const num = validators.number(option);
@@ -209,7 +203,7 @@ const optionsMap = {
209
203
  name: validators.string,
210
204
  },
211
205
  };
212
- const queryOptionsValidator = (resource, options) => {
206
+ export const queryOptionsValidator = (resource, options) => {
213
207
  const params = new URLSearchParams();
214
208
  if (options === undefined) {
215
209
  return params;
@@ -222,19 +216,19 @@ const queryOptionsValidator = (resource, options) => {
222
216
  typeof options === "function" ||
223
217
  options === null ||
224
218
  Array.isArray(options)) {
225
- (0, exports.error)("Invalid type for query options. Must be an object.");
219
+ error("Invalid type for query options. Must be an object.");
226
220
  }
227
221
  if ((options.id || "slug" in options || "cospar_id" in options) &&
228
222
  Object.keys(options).length > 1) {
229
- (0, exports.warn)("Using 'id', 'slug', or 'cospar_id' as query parameters generally returns a single result. Combining it with other parameters may not be achieving the result you expect.");
223
+ warn("Using 'id', 'slug', or 'cospar_id' as query parameters generally returns a single result. Combining it with other parameters may not be achieving the result you expect.");
230
224
  }
231
225
  for (const option in options) {
232
226
  if (!(option in optionsMap[resource])) {
233
- (0, exports.warn)(`Parameter "${option}" is not a valid option for the ${resource} endpoint. It will be ignored.`);
227
+ warn(`Parameter "${option}" is not a valid option for the ${resource} endpoint. It will be ignored.`);
234
228
  continue;
235
229
  }
236
230
  if (options[option] === undefined) {
237
- (0, exports.warn)(`Parameter "${option}" is undefined and will be ignored.`);
231
+ warn(`Parameter "${option}" is undefined and will be ignored.`);
238
232
  continue;
239
233
  }
240
234
  try {
@@ -242,15 +236,13 @@ const queryOptionsValidator = (resource, options) => {
242
236
  params.set(option, o);
243
237
  }
244
238
  catch (err) {
245
- (0, exports.error)(`Malformed query parameter for resource "${resource}" and parameter: "${option}": ${err}.`, "type");
239
+ error(`Malformed query parameter for resource "${resource}" and parameter: "${option}": ${err}.`, "type");
246
240
  }
247
241
  }
248
242
  return params;
249
243
  };
250
- exports.queryOptionsValidator = queryOptionsValidator;
251
- const warn = (msg) => console.warn(`[RLL Client]: ${msg}`);
252
- exports.warn = warn;
253
- const error = (msg, type = "error") => {
244
+ export const warn = (msg) => console.warn(`[RLL Client]: ${msg}`);
245
+ export const error = (msg, type = "error") => {
254
246
  switch (type) {
255
247
  case "error": {
256
248
  throw new Error(`[RLL Client]: ${msg}`);
@@ -263,4 +255,3 @@ const error = (msg, type = "error") => {
263
255
  }
264
256
  }
265
257
  };
266
- exports.error = error;
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "rocket-launch-live-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A Node.JS client for interacting with the RocketLaunch.Live API",
5
5
  "types": "./lib/cjs/types/index.d.ts",
6
6
  "main": "./lib/cjs/index.js",
7
+ "module": "./lib/mjs/index.js",
7
8
  "scripts": {
8
9
  "clear": "rm -rf ./lib",
9
- "build": "npm run clear && npm run build:esm && npm run build:cjs",
10
+ "build": "npm run clear && npm run build:esm && npm run build:cjs && ./build-fixup",
10
11
  "build:esm": "tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs",
11
12
  "build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
12
13
  "prepublish": "npm run build",
13
- "test": "mocha",
14
- "test:watch": "mocha --watch"
14
+ "test": "vitest",
15
+ "reset": "rm -rf lib && rm rocket-launch-live-client-*.tgz && npm run build && npm pack"
15
16
  },
16
17
  "repository": {
17
18
  "type": "git",
@@ -30,23 +31,21 @@
30
31
  },
31
32
  "homepage": "https://github.com/mendahu/rocket-launch-live-client#readme",
32
33
  "devDependencies": {
33
- "@types/chai": "^4.3.5",
34
- "@types/chai-as-promised": "^7.1.5",
35
- "@types/mocha": "^10.0.1",
36
34
  "@types/node": "^20.5.6",
37
35
  "@types/sinon": "^10.0.16",
38
- "chai": "^4.3.8",
39
- "chai-as-promised": "^7.1.1",
40
36
  "dotenv": "^16.3.1",
41
- "mocha": "^10.2.0",
42
37
  "nock": "^13.3.3",
43
38
  "sinon": "^15.2.0",
44
39
  "ts-node": "^10.9.1",
45
- "typescript": "^5.2.2"
40
+ "typescript": "^5.2.2",
41
+ "vitest": "^0.34.3"
46
42
  },
47
43
  "files": [
48
44
  "lib/**/*"
49
45
  ],
46
+ "engines": {
47
+ "node": ">=14.17.0"
48
+ },
50
49
  "exports": {
51
50
  ".": {
52
51
  "import": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../src/Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,SAAS,EACT,cAAc,EACd,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC;;;GAGG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAEZ;IAEF;;;;;;;OAOG;gBACS,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAiBtD;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,KAAK;IASb;;;;;;;;;OASG;IACI,KAAK,CACV,QAAQ,CAAC,EAAE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":["../../../src/Watcher.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAEL,SAAS,EAET,cAAc,EAEd,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAqD7B;;;GAGG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,UAAU,CAGR;IACV,OAAO,CAAC,YAAY,CAA0D;IAC9E,OAAO,CAAC,SAAS,CAAO;IACjB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAa;IAC3D,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,KAAK,CAA6B;IAC1C,OAAO,CAAC,OAAO,CAE+B;IAE9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;gBAED,OAAO,EAAE,CACP,MAAM,EAAE,eAAe,KACpB,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,EAC7C,QAAQ,GAAE,MAAM,GAAG,MAAiC,EACpD,OAAO,CAAC,EAAE,cAAc,CAAC,QAAQ;IA4BnC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB,CAsBtB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAyBb;;;;;;;OAOG;IACI,KAAK,IAAI,IAAI;IAoBpB;;;;;;;OAOG;IACI,IAAI,IAAI,IAAI;CAKpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/fetcher.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,cACV,MAAM,YACJ,MAAM,UACR,eAAe,oBACL,OAAO,eAc1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACL,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,WAAY,MAAM,YAAY,gBAAgB,KAAG,SAClC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../src/types/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAU,SAAS;QACjB,EAAE,EAAE,MAAM,CAAC;KACZ;IAED,MAAM,WAAW,OAAO;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,aAAa,CAAC,WAAW,GAAG,EAAE,CAAC;KACtC;IAED,MAAM,WAAW,KAAK;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC;KAClC;IAED,MAAM,WAAW,OAAQ,SAAQ,SAAS;QACxC,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;KACnB;IAED,MAAM,MAAM,YAAY;QACtB,OAAO,KAAK;QACZ,OAAO,IAAI;QACX,OAAO,IAAI;QACX,eAAe,IAAI;QACnB,sBAAsB,IAAI;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;IAEpD,KAAY,WAAW,GAAG,MAAM,OAAO,YAAY,CAAC;CACrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAQlE,eAAO,MAAM,kBAAkB,SAAU,IAAI,KAAG,MAE/C,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,GAAG,KAAG,MA2B7C,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;MAEzB,IAeH,CAAC;AAkLF,eAAO,MAAM,qBAAqB,aACtB,WAAW,YAEjB,eAAe,SAAS,GACxB,eAAe,QAAQ,GACvB,eAAe,SAAS,GACxB,eAAe,QAAQ,GACvB,eAAe,IAAI,GACnB,eAAe,IAAI,GACnB,eAAe,QAAQ,KAC1B,eAwDF,CAAC;AAEF,eAAO,MAAM,IAAI,QAAS,MAAM,SAAyC,CAAC;AAE1E,eAAO,MAAM,KAAK,QACX,MAAM,SACL,MAAM,GAAG,OAAO,GAAG,OAAO,KAC/B,IAYF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../src/Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,SAAS,EACT,cAAc,EACd,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC;;;GAGG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAEZ;IAEF;;;;;;;OAOG;gBACS,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAiBtD;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,KAAK;IASb;;;;;;;;;OASG;IACI,KAAK,CACV,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAC1B,OAAO,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AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAEL,SAAS,EAET,cAAc,EAEd,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAqD7B;;;GAGG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,UAAU,CAGR;IACV,OAAO,CAAC,YAAY,CAA0D;IAC9E,OAAO,CAAC,SAAS,CAAO;IACjB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAa;IAC3D,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,KAAK,CAA6B;IAC1C,OAAO,CAAC,OAAO,CAE+B;IAE9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;gBAED,OAAO,EAAE,CACP,MAAM,EAAE,eAAe,KACpB,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,EAC7C,QAAQ,GAAE,MAAM,GAAG,MAAiC,EACpD,OAAO,CAAC,EAAE,cAAc,CAAC,QAAQ;IA4BnC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB,CAsBtB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAyBb;;;;;;;OAOG;IACI,KAAK,IAAI,IAAI;IAoBpB;;;;;;;OAOG;IACI,IAAI,IAAI,IAAI;CAKpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/fetcher.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,cACV,MAAM,YACJ,MAAM,UACR,eAAe,oBACL,OAAO,eAc1B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACL,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,WAAY,MAAM,YAAY,gBAAgB,KAAG,SAClC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../src/types/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAU,SAAS;QACjB,EAAE,EAAE,MAAM,CAAC;KACZ;IAED,MAAM,WAAW,OAAO;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,aAAa,CAAC,WAAW,GAAG,EAAE,CAAC;KACtC;IAED,MAAM,WAAW,KAAK;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC;KAClC;IAED,MAAM,WAAW,OAAQ,SAAQ,SAAS;QACxC,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;KACnB;IAED,MAAM,MAAM,YAAY;QACtB,OAAO,KAAK;QACZ,OAAO,IAAI;QACX,OAAO,IAAI;QACX,eAAe,IAAI;QACnB,sBAAsB,IAAI;KAC3B;IAED,MAAM,WAAW,KAAM,SA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