use-lunch-money
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,9 +0,15 @@ | ||
import { LMUserType } from './src/useLunchMoney'; | ||
interface LMProfile { | ||
firstName: string; | ||
lastName: string; | ||
} | ||
declare class LunchMoney { | ||
constructor(); | ||
profile: LMProfile; | ||
getProfile(): void; | ||
} | ||
declare global { | ||
interface Window { | ||
lunchMoney: { | ||
getProfile: () => void; | ||
profile: LMUserType; | ||
}; | ||
LunchMoney: LunchMoney; | ||
} | ||
@@ -10,0 +16,0 @@ } |
{ | ||
"name": "use-lunch-money", | ||
"version": "1.1.0", | ||
"description": "A starter for creating a new React hook", | ||
"version": "1.1.1", | ||
"description": "Lunch Money profile react hook", | ||
"author": { | ||
"name": "Dylan Bathurst", | ||
"email": "hello@colbyfayock.com", | ||
"url": "https://twitter.com/colbyfayock" | ||
"email": "dylanbathurst@gmail.com", | ||
"url": "https://twitter.com/dylanbathurst" | ||
}, | ||
@@ -30,6 +30,6 @@ "keywords": [ | ||
"type": "git", | ||
"url": "https://github.com/colbyfayock/use-lunch-money" | ||
"url": "https://github.com/dylanbathurst/use-lunch-money" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/colbyfayock/use-lunch-money/issues" | ||
"url": "https://github.com/dylanbathurst/use-lunch-money/issues" | ||
}, | ||
@@ -36,0 +36,0 @@ "dependencies": { |
@@ -33,4 +33,4 @@ "use strict"; | ||
try { | ||
window.lunchMoney.getProfile(); | ||
var profile = window.lunchMoney.profile; | ||
window.LunchMoney.getProfile(); | ||
var profile = window.LunchMoney.profile; | ||
@@ -42,3 +42,3 @@ if (profile) { | ||
} | ||
}, [window.lunchMoney.profile]); | ||
}, [window.LunchMoney.profile]); | ||
return lmLocalUser; | ||
@@ -45,0 +45,0 @@ }; |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
4136
4
61