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 11import { 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 ;
35
46export const snapshotToData = (
57 snapshot : database . DataSnapshot ,
Original file line number Diff line number Diff line change 11{
22 "name" : " react-firebase-hooks" ,
3- "version" : " 1.2.0-rc.4 " ,
3+ "version" : " 1.2.0-rc.5 " ,
44 "description" : " React Hooks for Firebase" ,
55 "author" : " CS Frequency Limited (https://csfrequency.com)" ,
66 "license" : " Apache-2.0" ,
4343 },
4444 "main" : " dist/index.cjs.js" ,
4545 "module" : " dist/index.esm.js" ,
46- "dependencies" : {
47- "isobject" : " ^3.0.1"
48- },
46+ "dependencies" : {},
4947 "devDependencies" : {
5048 "@types/react" : " ^16.8.3" ,
5149 "firebase" : " ^5.5.6" ,
Original file line number Diff line number Diff line change @@ -573,11 +573,6 @@ isobject@^2.0.0:
573573 dependencies :
574574 isarray "1.0.0"
575575
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-
581576582577 version "2.2.1"
583578 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