@quoll/client-lib
Advanced tools
Comparing version 0.4.14 to 0.4.15
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.4.15](https://github.com/mzogheib/quoll/compare/@quoll/client-lib@0.4.14...@quoll/client-lib@0.4.15) (2024-07-07) | ||
**Note:** Version bump only for package @quoll/client-lib | ||
## [0.4.14](https://github.com/mzogheib/quoll/compare/@quoll/client-lib@0.4.13...@quoll/client-lib@0.4.14) (2024-07-06) | ||
@@ -8,0 +12,0 @@ |
@@ -14,3 +14,3 @@ import { FeedName } from "@quoll/lib"; | ||
connect: (name: FeedName) => Promise<string>; | ||
disconnect: (name: FeedName) => Promise<string | undefined>; | ||
disconnect: (name: FeedName) => Promise<void>; | ||
authenticate: (name: FeedName, code: string) => Promise<void>; | ||
@@ -17,0 +17,0 @@ setConnected: (name: FeedName, value: boolean) => void; |
@@ -32,6 +32,4 @@ "use strict"; | ||
updateFeed(name, { isAuthenticating: true }); | ||
// BE may return a message for further, manual instructions | ||
const message = yield feedsService.deauthorize(name); | ||
yield feedsService.deauthorize(name); | ||
updateFeed(name, { isConnected: false, isAuthenticating: false }); | ||
return message; | ||
}), [updateFeed]); | ||
@@ -38,0 +36,0 @@ const authenticate = (0, react_1.useCallback)((name, code) => __awaiter(void 0, void 0, void 0, function* () { |
@@ -9,4 +9,4 @@ import { FeedName } from "@quoll/lib"; | ||
authenticate(feed: FeedName, payload: AuthenticatePayload): Promise<null>; | ||
deauthorize(feed: FeedName): Promise<"Remember to revoke access in the Moves app." | undefined>; | ||
deauthorize(feed: FeedName): Promise<null>; | ||
} | ||
export {}; |
@@ -41,7 +41,2 @@ "use strict"; | ||
params: { feed }, | ||
}).then(() => { | ||
// TODO: this should come from the BE | ||
if (feed === "moves") { | ||
return "Remember to revoke access in the Moves app."; | ||
} | ||
}); | ||
@@ -48,0 +43,0 @@ }); |
{ | ||
"name": "@quoll/client-lib", | ||
"version": "0.4.14", | ||
"version": "0.4.15", | ||
"description": "Shared code for client side packages", | ||
@@ -18,3 +18,3 @@ "repository": "https://github.com/mzogheib/quoll", | ||
"dependencies": { | ||
"@quoll/lib": "^0.4.8", | ||
"@quoll/lib": "^0.4.9", | ||
"react-redux": "^7.2.1", | ||
@@ -32,3 +32,3 @@ "redux": "^4.0.5" | ||
}, | ||
"gitHead": "8af741cd754416a5017590ad2d8d1e0f77528cdb" | ||
"gitHead": "92044fd41149c15925bf7b93645d06d83846637d" | ||
} |
@@ -19,3 +19,3 @@ import { useMemo, useCallback } from "react"; | ||
connect: (name: FeedName) => Promise<string>; | ||
disconnect: (name: FeedName) => Promise<string | undefined>; | ||
disconnect: (name: FeedName) => Promise<void>; | ||
authenticate: (name: FeedName, code: string) => Promise<void>; | ||
@@ -69,7 +69,4 @@ setConnected: (name: FeedName, value: boolean) => void; | ||
updateFeed(name, { isAuthenticating: true }); | ||
// BE may return a message for further, manual instructions | ||
const message = await feedsService.deauthorize(name); | ||
await feedsService.deauthorize(name); | ||
updateFeed(name, { isConnected: false, isAuthenticating: false }); | ||
return message; | ||
}, | ||
@@ -76,0 +73,0 @@ [updateFeed], |
@@ -33,9 +33,4 @@ import { FeedName } from "@quoll/lib"; | ||
params: { feed }, | ||
}).then(() => { | ||
// TODO: this should come from the BE | ||
if (feed === "moves") { | ||
return "Remember to revoke access in the Moves app."; | ||
} | ||
}); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92222
1428
Updated@quoll/lib@^0.4.9