@stevenkellner/team-conduct-api 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stevenkellner/team-conduct-api",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Firebase API for Team Conduct",
5
5
  "license": "MIT",
6
6
  "author": "Steven Kellner",
@@ -13,14 +13,14 @@ export class FirebaseConfiguration {
13
13
 
14
14
  private constructor() {}
15
15
 
16
- public configure(
16
+ public configure(configuration: {
17
17
  baseFirestoreDocument: FirestoreScheme,
18
18
  messaging: Messaging
19
- ) {
19
+ }) {
20
20
  if (this.configured)
21
21
  throw new Error('Configuration is already configured');
22
- this._baseFirestoreDocument = baseFirestoreDocument;
23
- this._messaging = messaging;
22
+ this._baseFirestoreDocument = configuration.baseFirestoreDocument;
23
+ this._messaging = configuration.messaging;
24
24
  this.configured = true;
25
25
  }
26
26