File tree Expand file tree Collapse file tree 5 files changed +2603
-7781
lines changed
functions/testapp/Assets/Firebase/Sample/Functions/.functions Expand file tree Collapse file tree 5 files changed +2603
-7781
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ node_modules /
2
+ .DS_Store
Original file line number Diff line number Diff line change 15
15
*/
16
16
'use strict' ;
17
17
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 ( ) ;
21
21
22
22
// Adds two numbers to each other.
23
- exports . addNumbers = functions . https . onCall ( ( data ) => {
23
+ exports . addNumbers = functions . https . onCall ( ( data , context ) => {
24
24
// Numbers passed from the client.
25
25
const firstNumber = data . firstNumber ;
26
26
const secondNumber = data . secondNumber ;
You can’t perform that action at this time.
0 commit comments