Skip to content

Commit ad7c854

Browse files
committed
Regenerate snippets
1 parent 578630d commit ad7c854

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

snippets/auth-next/anonymous/auth_anon_sign_in.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ signInAnonymously(auth)
1515
const errorCode = error.code;
1616
const errorMessage = error.message;
1717
// ...
18-
})
18+
});
1919
// [END auth_anon_sign_in_modular]

snippets/auth-next/custom/auth_sign_in_custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ signInWithCustomToken(auth, token)
1616
const errorCode = error.code;
1717
const errorMessage = error.message;
1818
// ...
19-
})
19+
});
2020
// [END auth_sign_in_custom_modular]

snippets/auth-next/service-worker-sessions/auth_svc_intercept.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const getBodyContent = (req) => {
3232

3333
self.addEventListener('fetch', (event) => {
3434
/** @type {FetchEvent} */
35-
let evt = event;
35+
const evt = event;
3636

3737
const requestProcessor = (idToken) => {
3838
let req = evt.request;
@@ -46,7 +46,7 @@ self.addEventListener('fetch', (event) => {
4646
const headers = new Headers();
4747
req.headers.forEach((val, key) => {
4848
headers.append(key, val);
49-
})
49+
});
5050
// Add ID token to header.
5151
headers.append('Authorization', 'Bearer ' + idToken);
5252
processRequestPromise = getBodyContent(req).then((body) => {

snippets/auth-next/service-worker-sessions/auth_svc_listen_activate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// To make edits to the snippets in this file, please edit the source
55

66
// [START auth_svc_listen_activate_modular]
7-
self.addEventListener('activate', event => {
7+
self.addEventListener('activate', (event) => {
88
event.waitUntil(clients.claim());
99
});
1010
// [END auth_svc_listen_activate_modular]

snippets/firestore-next/test-firestore/city_custom_object.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ var cityConverter = {
2222
name: city.name,
2323
state: city.state,
2424
country: city.country
25-
}
25+
};
2626
},
2727
fromFirestore: function(snapshot, options){
2828
const data = snapshot.data(options);
29-
return new City(data.name, data.state, data.country)
29+
return new City(data.name, data.state, data.country);
3030
}
31-
}
31+
};
3232
// [END city_custom_object_modular]

snippets/firestore-next/test-firestore/delete_collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import { collection, query, orderBy, limit, getDocs, writeBatch } from "firebase/firestore";
1212

1313
function deleteCollection(db, collectionRef, batchSize) {
14-
const q = query(collectionRef, orderBy('__name__'), limit(batchSize))
14+
const q = query(collectionRef, orderBy('__name__'), limit(batchSize));
1515

1616
return new Promise(function(resolve) {
1717
deleteQueryBatch(db, q, batchSize, resolve);

snippets/firestore-next/test-firestore/enable_network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// [START enable_network_modular]
77
import { enableNetwork } from "firebase/firestore";
88

9-
await enableNetwork(db)
9+
await enableNetwork(db);
1010
// Do online actions
1111
// [START_EXCLUDE]
1212
console.log("Network enabled!");

snippets/firestore-next/test-firestore/get_custom_object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ if (docSnap.exists()) {
1414
// Use a City instance method
1515
console.log(city.toString());
1616
} else {
17-
console.log("No such document!")
17+
console.log("No such document!");
1818
}
1919
// [END get_custom_object_modular]

snippets/firestore-next/test-firestore/listen_for_users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const q = query(collection(db, "users"), where("born", "<", 1900));
1010
const unsubscribe = onSnapshot(q, (snapshot) => {
1111
console.log("Current users born before 1900:");
1212
snapshot.forEach(function (userSnapshot) {
13-
console.log(userSnapshot.data())
13+
console.log(userSnapshot.data());
1414
});
1515
});
1616
// [END listen_for_users_modular]

snippets/firestore-next/test-solution-aggregation/sample_doc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const arinellDoc = {
88
name: 'Arinell Pizza',
99
avgRating: 4.65,
1010
numRatings: 683
11-
}
11+
};
1212
// [END sample_doc_modular]

0 commit comments

Comments
 (0)