Skip to content

Commit 493bae1

Browse files
committed
fixed changes for gen1 functions
1 parent 3e667f8 commit 493bae1

File tree

5 files changed

+2603
-7781
lines changed

5 files changed

+2603
-7781
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
firebase-debug.log*
8+
firebase-debug.*.log*
9+
10+
# Firebase cache
11+
.firebase/
12+
13+
# Firebase config
14+
15+
# Uncomment this if you'd like others to create their own Firebase project.
16+
# For a team working on the same Firebase project(s), it is recommended to leave
17+
# it commented so all members can deploy to the same project(s) in .firebaserc.
18+
.firebaserc
19+
firebase.json
20+
21+
# Runtime data
22+
pids
23+
*.pid
24+
*.seed
25+
*.pid.lock
26+
27+
# Directory for instrumented libs generated by jscoverage/JSCover
28+
lib-cov
29+
30+
# Coverage directory used by tools like istanbul
31+
coverage
32+
33+
# nyc test coverage
34+
.nyc_output
35+
36+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
37+
.grunt
38+
39+
# Bower dependency directory (https://bower.io/)
40+
bower_components
41+
42+
# node-waf configuration
43+
.lock-wscript
44+
45+
# Compiled binary addons (http://nodejs.org/api/addons.html)
46+
build/Release
47+
48+
# Dependency directories
49+
node_modules/
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional REPL history
58+
.node_repl_history
59+
60+
# Output of 'npm pack'
61+
*.tgz
62+
63+
# Yarn Integrity file
64+
.yarn-integrity
65+
66+
# dotenv environment variables file
67+
.env
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
.DS_Store

functions/testapp/Assets/Firebase/Sample/Functions/.functions/functions/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616
'use strict';
1717

18-
const functions = require('firebase-functions');
19-
const admin = require('firebase-admin');
20-
admin.initializeApp(functions.config().firebase);
18+
const functions = require('firebase-functions/v1');
19+
const admin = require("firebase-admin");
20+
admin.initializeApp();
2121

2222
// Adds two numbers to each other.
23-
exports.addNumbers = functions.https.onCall((data) => {
23+
exports.addNumbers = functions.https.onCall((data, context) => {
2424
// Numbers passed from the client.
2525
const firstNumber = data.firstNumber;
2626
const secondNumber = data.secondNumber;

0 commit comments

Comments
 (0)