UNPKG

ran-boilerplate

Version:

React . Apollo (GraphQL) . Next.js Toolkit

37 lines (32 loc) 1.07 kB
/* * Copyright 2017, Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 'use strict'; var firestoreClient = require('./firestore_client'); var gax = require('google-gax'); var extend = require('extend'); function v1beta1(options) { options = extend( { scopes: v1beta1.ALL_SCOPES, }, options ); var gaxGrpc = gax.grpc(options); return firestoreClient(gaxGrpc); } v1beta1.SERVICE_ADDRESS = firestoreClient.SERVICE_ADDRESS; v1beta1.ALL_SCOPES = firestoreClient.ALL_SCOPES; module.exports = v1beta1;