@big-whale-labs/botcaster
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -1,2 +0,2 @@ | ||
import { getItem, init, setItem } from 'node-persist'; | ||
import nodePersist from 'node-persist'; | ||
let initialized = false; | ||
@@ -6,3 +6,3 @@ async function checkInitialized() { | ||
return; | ||
await init(); | ||
await nodePersist.init(); | ||
initialized = true; | ||
@@ -13,8 +13,8 @@ } | ||
await checkInitialized(); | ||
await setItem(key, currentNotificationId); | ||
await nodePersist.setItem(key, currentNotificationId); | ||
} | ||
export async function getCurrentNotificationId() { | ||
await checkInitialized(); | ||
return getItem(key); | ||
return nodePersist.getItem(key); | ||
} | ||
//# sourceMappingURL=currentNotificationId.js.map |
{ | ||
"name": "@big-whale-labs/botcaster", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Farcaster bot framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
9084