@grammyjs/storage-deta
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,2 @@ import { StorageAdapter } from "./deps.node.js"; | ||
projectKey: string; | ||
projectId: string; | ||
} | ||
@@ -8,0 +7,0 @@ export declare class DetaAdapter<T> implements StorageAdapter<T> { |
@@ -19,4 +19,5 @@ "use strict"; | ||
this.project = project; | ||
const projectId = project.projectKey.split("_")[0]; | ||
this.rootUrl = | ||
`https://database.deta.sh/v1/${project.projectId}/${project.baseName}/items`; | ||
`https://database.deta.sh/v1/${projectId}/${project.baseName}/items`; | ||
} | ||
@@ -23,0 +24,0 @@ async request(method, key, body) { |
{ | ||
"name": "@grammyjs/storage-deta", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "deta.sh storage adapter for grammY", | ||
@@ -5,0 +5,0 @@ "main": "out/mod.js", |
@@ -21,3 +21,3 @@ # Deta.sh Base storage adapter for [grammY](https://github.com/grammyjs/grammY) | ||
> Set up your Deta Base by creating a Deta project. Copy the Project ID and Project Key here. | ||
> Set up your Deta Base by creating a Deta project. Copy the Project Key to here. | ||
@@ -27,4 +27,3 @@ You should now have: | ||
1. A project key for your Deta.sh project. | ||
2. A project ID for Deta.sh project. | ||
3. A Telegram bot token. | ||
2. A Telegram bot token. | ||
@@ -62,3 +61,2 @@ Put those values into the following example code: | ||
projectKey: "", // <-- Project Key here. | ||
projectId: "", // <-- Project ID here. | ||
}), | ||
@@ -65,0 +63,0 @@ })); |
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
6772
71