@upstash/redis 0.1.22 → 1.0.0-alpha.0

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.
Files changed (51) hide show
  1. package/dist/chunk-RYSRH3HC.mjs +1084 -0
  2. package/dist/commands.d.ts +205 -0
  3. package/dist/commands.js +1201 -0
  4. package/dist/commands.mjs +218 -0
  5. package/dist/index.d.ts +1001 -0
  6. package/dist/index.js +1750 -0
  7. package/dist/index.mjs +858 -0
  8. package/dist/zunionstore-f1aa0b4a.d.ts +689 -0
  9. package/package.json +1 -84
  10. package/README.md +0 -103
  11. package/dist/main/src/client.d.ts +0 -25
  12. package/dist/main/src/client.d.ts.map +0 -1
  13. package/dist/main/src/client.js +0 -748
  14. package/dist/main/src/client.js.map +0 -1
  15. package/dist/main/src/index.d.ts +0 -73
  16. package/dist/main/src/index.d.ts.map +0 -1
  17. package/dist/main/src/index.js +0 -124
  18. package/dist/main/src/index.js.map +0 -1
  19. package/dist/main/src/type.d.ts +0 -466
  20. package/dist/main/src/type.d.ts.map +0 -1
  21. package/dist/main/src/type.js +0 -3
  22. package/dist/main/src/type.js.map +0 -1
  23. package/dist/main/utils/helper.d.ts +0 -5
  24. package/dist/main/utils/helper.d.ts.map +0 -1
  25. package/dist/main/utils/helper.js +0 -20
  26. package/dist/main/utils/helper.js.map +0 -1
  27. package/dist/module/src/client.d.ts +0 -25
  28. package/dist/module/src/client.d.ts.map +0 -1
  29. package/dist/module/src/client.js +0 -743
  30. package/dist/module/src/client.js.map +0 -1
  31. package/dist/module/src/index.d.ts +0 -73
  32. package/dist/module/src/index.d.ts.map +0 -1
  33. package/dist/module/src/index.js +0 -5
  34. package/dist/module/src/index.js.map +0 -1
  35. package/dist/module/src/type.d.ts +0 -466
  36. package/dist/module/src/type.d.ts.map +0 -1
  37. package/dist/module/src/type.js +0 -2
  38. package/dist/module/src/type.js.map +0 -1
  39. package/dist/module/utils/helper.d.ts +0 -5
  40. package/dist/module/utils/helper.d.ts.map +0 -1
  41. package/dist/module/utils/helper.js +0 -13
  42. package/dist/module/utils/helper.js.map +0 -1
  43. package/dist/umd/upstash-redis.js +0 -1
  44. package/jest.config.js +0 -5
  45. package/src/client.ts +0 -1232
  46. package/src/index.ts +0 -233
  47. package/src/type.ts +0 -1194
  48. package/tsconfig.json +0 -18
  49. package/tsconfig.module.json +0 -7
  50. package/utils/helper.ts +0 -17
  51. package/webpack.config.js +0 -34
package/tsconfig.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "include": ["src", "types"],
3
- "exclude": ["node_modules/**/*.ts"],
4
- "compilerOptions": {
5
- "declaration": true,
6
- "declarationMap": true,
7
- "module": "CommonJS",
8
- "outDir": "dist/main",
9
- "sourceMap": true,
10
- "target": "ES2019",
11
- "strict": true,
12
- "esModuleInterop": true,
13
- "moduleResolution": "Node",
14
- "forceConsistentCasingInFileNames": true,
15
- "stripInternal": true,
16
- "allowSyntheticDefaultImports": true
17
- }
18
- }
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "compilerOptions": {
4
- "module": "ES2015",
5
- "outDir": "dist/module"
6
- }
7
- }
package/utils/helper.ts DELETED
@@ -1,17 +0,0 @@
1
- export function sleep(ms: number = 1000) {
2
- return new Promise((resolve) => setTimeout(resolve, ms));
3
- }
4
-
5
- export function isFunction(functionToCheck: any): boolean {
6
- return (
7
- functionToCheck && {}.toString.call(functionToCheck) === '[object Function]'
8
- );
9
- }
10
-
11
- export function isObject(objectToCheck: any): boolean {
12
- return typeof objectToCheck === 'object' && objectToCheck !== null;
13
- }
14
-
15
- export function isString(stringToCheck: any): boolean {
16
- return typeof stringToCheck === 'string';
17
- }
package/webpack.config.js DELETED
@@ -1,34 +0,0 @@
1
- const webpack = require('webpack');
2
- const path = require('path');
3
-
4
- module.exports = {
5
- mode: 'production',
6
- entry: './src/index.ts',
7
- output: {
8
- path: path.resolve(__dirname, 'dist/umd'),
9
- filename: 'upstash-redis.js',
10
- library: {
11
- type: 'umd',
12
- name: 'upstash',
13
- },
14
- },
15
- module: {
16
- rules: [
17
- {
18
- test: /\.ts$/,
19
- loader: 'ts-loader',
20
- options: {
21
- transpileOnly: true,
22
- },
23
- },
24
- ],
25
- },
26
- resolve: {
27
- extensions: ['.ts', '.js', '.json'],
28
- },
29
- plugins: [
30
- new webpack.DefinePlugin({
31
- process: 'process/browser',
32
- }),
33
- ],
34
- };