Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 5fb847e

Browse files
cleanup
1 parent 14bec6e commit 5fb847e

File tree

6 files changed

+148
-145
lines changed

6 files changed

+148
-145
lines changed

demo-ng/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"nativescript-angular": "^6.1.0",
2626
"nativescript-camera": "^4.0.2",
2727
"nativescript-imagepicker": "~6.0.4",
28-
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.4.tgz",
28+
"nativescript-plugin-firebase": "file:../publish/package/nativescript-plugin-firebase-7.1.5.tgz",
2929
"nativescript-theme-core": "~1.0.4",
3030
"reflect-metadata": "~0.1.10",
3131
"rxjs": "~6.0.0 || >=6.1.0",

src/app/database/util/NextPushId.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* this by using the previous random bits but "incrementing" them by 1 (only
1515
* in the case of a timestamp collision).
1616
*/
17-
export const nextPushId = (function() {
17+
export const nextPushId = (function () {
1818
// Modeled after base64 web-safe chars, but ordered by ASCII.
1919
const PUSH_CHARS =
2020
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz';
@@ -29,7 +29,7 @@ export const nextPushId = (function() {
2929
// we'll use those same characters except "incremented" by one.
3030
const lastRandChars: number[] = [];
3131

32-
return function(now: number) {
32+
return function (now: number) {
3333
const duplicateTime = now === lastPushTime;
3434
lastPushTime = now;
3535

src/firebase-common.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ import * as mlkit from "./mlkit";
88

99
// note that this implementation is overridden for iOS
1010
export class FieldValue {
11-
constructor(
12-
public type: firestore.FieldValueType,
13-
public value: any,
14-
) { }
11+
constructor(public type: firestore.FieldValueType,
12+
public value: any) {
13+
}
1514

1615
static serverTimestamp = () => "SERVER_TIMESTAMP";
1716
static arrayUnion = (fields: Array<any>) => new FieldValue("ARRAY_UNION", fields);
1817
static arrayRemove = (fields: Array<any>) => new FieldValue("ARRAY_REMOVE", fields);
1918
}
2019

2120
export class GeoPoint {
22-
constructor(public latitude: number, public longitude: number) {
21+
constructor(public latitude: number,
22+
public longitude: number) {
2323
}
2424
}
2525

@@ -206,12 +206,10 @@ export const firebase: any = {
206206
export abstract class DocumentSnapshot implements firestore.DocumentSnapshot {
207207
public data: () => firestore.DocumentData;
208208

209-
constructor(
210-
public id: string,
211-
public exists: boolean,
212-
documentData: firestore.DocumentData,
213-
public ref: firestore.DocumentReference,
214-
) {
209+
constructor(public id: string,
210+
public exists: boolean,
211+
documentData: firestore.DocumentData,
212+
public ref: firestore.DocumentReference) {
215213
this.data = () => exists ? documentData : undefined;
216214
}
217215
}

0 commit comments

Comments
 (0)