@upstash/redis 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -32
- package/dist/main/client.d.ts +5 -8
- package/dist/main/client.js +121 -182
- package/dist/main/types.d.ts +0 -10
- package/dist/module/client.d.ts +5 -8
- package/dist/module/client.js +121 -182
- package/dist/module/types.d.ts +0 -10
- package/package.json +3 -3
- package/src/client.ts +126 -212
- package/src/types.ts +0 -11
package/dist/module/types.d.ts
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
export declare type ClientObjectProps = {
|
|
2
2
|
url?: undefined | string;
|
|
3
3
|
token?: undefined | string;
|
|
4
|
-
edgeUrl?: undefined | string;
|
|
5
|
-
readFromEdge?: boolean;
|
|
6
4
|
requestOptions?: undefined | RequestInit;
|
|
7
5
|
};
|
|
8
|
-
export declare type EdgeCacheType = null | 'miss' | 'hit';
|
|
9
6
|
export declare type ReturnType = {
|
|
10
7
|
data: string | number | [] | any;
|
|
11
8
|
error: string | null;
|
|
12
|
-
metadata?: {
|
|
13
|
-
edge: boolean;
|
|
14
|
-
cache: EdgeCacheType;
|
|
15
|
-
};
|
|
16
9
|
};
|
|
17
10
|
export declare type MethodReturn = Promise<ReturnType>;
|
|
18
|
-
export declare type RequestConfig = undefined | {
|
|
19
|
-
edge?: boolean;
|
|
20
|
-
};
|
|
21
11
|
export declare type Part = string | boolean | number;
|
|
22
12
|
declare type Auth1 = (options?: ClientObjectProps) => void;
|
|
23
13
|
declare type Auth2 = (url?: string, token?: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstash/redis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
|
|
5
5
|
"author": "Adem ilter <adem@upstash.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"size-limit": [
|
|
38
38
|
{
|
|
39
39
|
"path": "dist/main/index-cjs.js",
|
|
40
|
-
"limit": "
|
|
40
|
+
"limit": "3 KB"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"path": "dist/module/index.js",
|
|
44
|
-
"limit": "
|
|
44
|
+
"limit": "3 KB"
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"prettier": {
|