This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +34
-25
lines changed Expand file tree Collapse file tree 9 files changed +34
-25
lines changed Original file line number Diff line number Diff line change 2525 "nativescript-angular" : " ~8.0.3" ,
2626 "nativescript-camera" : " ~4.5.0" ,
2727 "nativescript-imagepicker" : " ~6.3.0" ,
28- "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.1 .tgz" ,
28+ "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.2 .tgz" ,
2929 "nativescript-theme-core" : " ~1.0.6" ,
3030 "reflect-metadata" : " ~0.1.13" ,
3131 "rxjs" : " ~6.5.2" ,
Original file line number Diff line number Diff line change 99 }
1010 },
1111 "dependencies" : {
12- "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.1 .tgz" ,
12+ "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.2 .tgz" ,
1313 "nativescript-theme-core" : " ~1.0.6" ,
1414 "nativescript-unit-test-runner" : " 0.7.0" ,
1515 "tns-core-modules" : " ~6.3.2"
Original file line number Diff line number Diff line change 1414 }
1515 },
1616 "dependencies" : {
17- "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.1 .tgz" ,
17+ "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.2 .tgz" ,
1818 "nativescript-theme-core" : " ~1.0.6" ,
1919 "nativescript-vue" : " ~2.4.0" ,
2020 "tns-core-modules" : " ~6.3.2"
Original file line number Diff line number Diff line change 1010 },
1111 "dependencies" : {
1212 "firebase-functions" : " ^2.0.5" ,
13- "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.1 .tgz" ,
13+ "nativescript-plugin-firebase" : " file:../publish/package/nativescript-plugin-firebase-10.5.2 .tgz" ,
1414 "nativescript-theme-core" : " ^1.0.4" ,
1515 "nativescript-unit-test-runner" : " 0.7.0" ,
1616 "tns-core-modules" : " ~6.3.2"
Original file line number Diff line number Diff line change 11{
22 "name" : " nativescript-plugin-firebase" ,
3- "version" : " 10.5.1 " ,
3+ "version" : " 10.5.2 " ,
44 "description" : " Fire. Base. Firebase!" ,
55 "main" : " firebase" ,
66 "typings" : " index.d.ts" ,
Original file line number Diff line number Diff line change 11import * as perf from "./performance" ;
2+
23export const performance = perf ;
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ export class FirebaseTrace {
4747}
4848
4949export class FirebaseHttpMetric {
50- constructor ( private nativeHttpMetric : com . google . firebase . perf . metrics . HttpMetric ) { }
50+ constructor ( private nativeHttpMetric : com . google . firebase . perf . metrics . HttpMetric ) {
51+ }
5152
5253 setRequestPayloadSize ( size : number ) {
5354 this . nativeHttpMetric . setRequestPayloadSize ( size ) ;
Original file line number Diff line number Diff line change 11export declare class FirebaseTrace {
22 setValue ( attribute : string , value : string ) : void ;
3+
34 getValue ( attribute : string ) : string ;
5+
46 getAttributes ( ) : { [ field : string ] : any } ;
7+
58 removeAttribute ( attribute : string ) : void ;
9+
610 incrementMetric ( metric : string , by : number ) : void ;
11+
712 stop ( ) : void ;
813}
914
1015export declare function startTrace ( name : string ) : FirebaseTrace ;
1116
1217export declare class FirebaseHttpMetric {
1318 setRequestPayloadSize ( size : number ) : void ;
19+
1420 setHttpResponseCode ( responseCode : number ) : void ;
21+
1522 stop ( ) : void ;
1623}
1724
Original file line number Diff line number Diff line change @@ -44,35 +44,35 @@ export class FirebaseHttpMetric {
4444 }
4545
4646 setRequestPayloadSize ( size : number ) {
47- this . nativeHttpMetric . requestPayloadSize = size ;
47+ this . nativeHttpMetric . requestPayloadSize = size ;
4848 }
4949
5050 setHttpResponseCode ( responseCode : number ) {
51- this . nativeHttpMetric . responseCode = responseCode ;
51+ this . nativeHttpMetric . responseCode = responseCode ;
5252 }
5353
5454 stop ( ) : void {
55- this . nativeHttpMetric . stop ( ) ;
55+ this . nativeHttpMetric . stop ( ) ;
5656 }
5757}
5858
5959function getHttpMethodFromString ( method : string ) : FIRHTTPMethod {
6060 switch ( method ) {
61- case 'GET' :
62- return FIRHTTPMethod . GET ;
63- case 'PUT' :
64- return FIRHTTPMethod . PUT ;
65- case 'POST' :
66- return FIRHTTPMethod . POST ;
67- case 'DELETE' :
68- return FIRHTTPMethod . DELETE ;
69- case 'HEAD' :
70- return FIRHTTPMethod . HEAD ;
71- case 'PATCH' :
72- return FIRHTTPMethod . PATCH ;
73- case 'OPTIONS' :
74- return FIRHTTPMethod . OPTIONS ;
75- default :
76- return null ;
61+ case 'GET' :
62+ return FIRHTTPMethod . GET ;
63+ case 'PUT' :
64+ return FIRHTTPMethod . PUT ;
65+ case 'POST' :
66+ return FIRHTTPMethod . POST ;
67+ case 'DELETE' :
68+ return FIRHTTPMethod . DELETE ;
69+ case 'HEAD' :
70+ return FIRHTTPMethod . HEAD ;
71+ case 'PATCH' :
72+ return FIRHTTPMethod . PATCH ;
73+ case 'OPTIONS' :
74+ return FIRHTTPMethod . OPTIONS ;
75+ default :
76+ return null ;
7777 }
7878}
You can’t perform that action at this time.
0 commit comments