File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { database } from 'firebase' ;
2
- import * as isObject from 'isobject' ;
2
+
3
+ const isObject = ( val : any ) =>
4
+ val != null && typeof val === 'object' && Array . isArray ( val ) === false ;
3
5
4
6
export const snapshotToData = (
5
7
snapshot : database . DataSnapshot ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-firebase-hooks" ,
3
- "version" : " 1.2.0-rc.4 " ,
3
+ "version" : " 1.2.0-rc.5 " ,
4
4
"description" : " React Hooks for Firebase" ,
5
5
"author" : " CS Frequency Limited (https://csfrequency.com)" ,
6
6
"license" : " Apache-2.0" ,
43
43
},
44
44
"main" : " dist/index.cjs.js" ,
45
45
"module" : " dist/index.esm.js" ,
46
- "dependencies" : {
47
- "isobject" : " ^3.0.1"
48
- },
46
+ "dependencies" : {},
49
47
"devDependencies" : {
50
48
"@types/react" : " ^16.8.3" ,
51
49
"firebase" : " ^5.5.6" ,
Original file line number Diff line number Diff line change @@ -573,11 +573,6 @@ isobject@^2.0.0:
573
573
dependencies :
574
574
isarray "1.0.0"
575
575
576
- isobject@^3.0.1 :
577
- version "3.0.1"
578
- resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
579
- integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
580
-
581
576
582
577
version "2.2.1"
583
578
resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9"
You can’t perform that action at this time.
0 commit comments