Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grammyjs/storage-deta

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammyjs/storage-deta - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

1

out/adapter.d.ts

@@ -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> {

3

out/adapter.js

@@ -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 @@ }));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc