@grammyjs/storage-deta
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -36,3 +36,6 @@ "use strict"; | ||
key = `/${encodeURIComponent(key)}`; | ||
return await (await this.request("GET", key)).json(); | ||
const res = await this.request("GET", key); | ||
if (!res.ok) | ||
return undefined; | ||
return await res.json(); | ||
} | ||
@@ -39,0 +42,0 @@ async write(key, value) { |
{ | ||
"name": "@grammyjs/storage-deta", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "deta.sh storage adapter for grammY", | ||
@@ -5,0 +5,0 @@ "main": "out/mod.js", |
@@ -42,3 +42,3 @@ # Deta.sh Base storage adapter for [grammY](https://github.com/grammyjs/grammY) | ||
SessionFlavor, | ||
} from "https://deno.land/x/grammy@v1.4.3/mod.ts"; | ||
} from "https://deno.land/x/grammy/mod.ts"; | ||
import { DetaAdapter } from "https://deno.land/x/grammy_storage_deta/mod.ts"; | ||
@@ -45,0 +45,0 @@ |
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
6840
85