@grammyjs/storage-file
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -13,4 +13,4 @@ /// <reference types="node" /> | ||
export declare const path: { | ||
resolve: (...pathSegments: string[]) => string; | ||
resolve: (...paths: string[]) => string; | ||
}; | ||
export declare const cwd: () => string; |
import { StorageAdapter } from './deps.node.js'; | ||
declare type Serializer<Session> = (input: Session) => string; | ||
declare type Deserializer<Session> = (input: string) => Session; | ||
type Serializer<Session> = (input: Session) => string; | ||
type Deserializer<Session> = (input: string) => Session; | ||
interface ConstructorOptions<Session> { | ||
@@ -5,0 +5,0 @@ dirName?: string; |
@@ -13,4 +13,4 @@ /// <reference types="node" /> | ||
export declare const path: { | ||
resolve: (...pathSegments: string[]) => string; | ||
resolve: (...paths: string[]) => string; | ||
}; | ||
export declare const cwd: () => string; |
import { StorageAdapter } from './deps.node.js'; | ||
declare type Serializer<Session> = (input: Session) => string; | ||
declare type Deserializer<Session> = (input: string) => Session; | ||
type Serializer<Session> = (input: Session) => string; | ||
type Deserializer<Session> = (input: string) => Session; | ||
interface ConstructorOptions<Session> { | ||
@@ -5,0 +5,0 @@ dirName?: string; |
{ | ||
"name": "@grammyjs/storage-file", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"private": false, | ||
@@ -20,2 +20,10 @@ "description": "File storage for grammY library.", | ||
], | ||
"scripts": { | ||
"test": "tsx __tests__/node.ts", | ||
"test:deno": "deno test --allow-write --no-check --allow-read --unstable ./__tests__/deno.ts", | ||
"prebuild": "rimraf dist", | ||
"build": "deno2node tsconfig.cjs.json && deno2node tsconfig.esm.json && pnpm postbuild", | ||
"postbuild": "tsx ../../tools/postBuildFixup.ts --path=dist", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path ." | ||
}, | ||
"repository": { | ||
@@ -32,13 +40,6 @@ "type": "git", | ||
"devDependencies": { | ||
"grammy": "^1.5.4", | ||
"@grammyjs/storage-utils": "1.0.3" | ||
"@grammyjs/storage-utils": "2.1.0", | ||
"grammy": "^1.5.4" | ||
}, | ||
"scripts": { | ||
"test": "tsx __tests__/node.ts", | ||
"test:deno": "deno test --allow-write --no-check --allow-read --unstable ./__tests__/deno.ts", | ||
"prebuild": "rimraf dist", | ||
"build": "deno2node tsconfig.cjs.json && deno2node tsconfig.esm.json && pnpm postbuild", | ||
"postbuild": "tsx ../../tools/postBuildFixup.ts --path=dist", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path ." | ||
} | ||
} | ||
"gitHead": "a7758c4f957f103a14832088c6858d693c444576" | ||
} |
24122
14
300