@upstash/qstash 0.1.6 → 0.1.8
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 +9 -14
- package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv32.js +0 -0
- package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv64.js +0 -0
- package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/index.js +0 -0
- package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/util.js +0 -0
- package/esm/deps/deno.land/std@0.161.0/crypto/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +3253 -0
- package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/mod.js +0 -0
- package/esm/deps/deno.land/std@0.161.0/crypto/keystack.js +150 -0
- package/esm/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/mod.js +26 -8
- package/esm/deps/deno.land/std@0.161.0/crypto/timing_safe_equal.js +24 -0
- package/esm/deps/deno.land/std@0.161.0/crypto/util.js +27 -0
- package/esm/deps/deno.land/std@0.161.0/encoding/base64.js +122 -0
- package/esm/deps/deno.land/std@0.161.0/encoding/base64url.js +49 -0
- package/esm/deps/deno.land/std@0.161.0/encoding/hex.js +60 -0
- package/esm/deps/deno.land/std@0.161.0/fmt/colors.js +442 -0
- package/esm/deps/deno.land/std@0.161.0/testing/_diff.js +308 -0
- package/esm/deps/deno.land/std@0.161.0/testing/_format.js +23 -0
- package/esm/deps/deno.land/std@0.161.0/testing/asserts.js +615 -0
- package/esm/pkg/client/client.js +1 -1
- package/package.json +2 -2
- package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv32.js +0 -0
- package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv64.js +0 -0
- package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/index.js +0 -0
- package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/util.js +0 -0
- package/script/deps/deno.land/std@0.161.0/crypto/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +3261 -0
- package/script/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/mod.js +0 -0
- package/script/deps/deno.land/std@0.161.0/crypto/keystack.js +177 -0
- package/script/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/mod.js +30 -10
- package/script/deps/deno.land/std@0.161.0/crypto/timing_safe_equal.js +28 -0
- package/script/deps/deno.land/std@0.161.0/crypto/util.js +54 -0
- package/script/deps/deno.land/std@0.161.0/encoding/base64.js +127 -0
- package/script/deps/deno.land/std@0.161.0/encoding/base64url.js +77 -0
- package/script/deps/deno.land/std@0.161.0/encoding/hex.js +65 -0
- package/script/deps/deno.land/std@0.161.0/fmt/colors.js +516 -0
- package/script/deps/deno.land/std@0.161.0/testing/_diff.js +314 -0
- package/script/deps/deno.land/std@0.161.0/testing/_format.js +50 -0
- package/script/deps/deno.land/std@0.161.0/testing/asserts.js +641 -0
- package/script/pkg/client/client.js +1 -1
- package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv32.d.ts +0 -0
- package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/fnv64.d.ts +0 -0
- package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/index.d.ts +0 -0
- package/types/deps/deno.land/{std@0.149.0 → std@0.161.0}/crypto/_fnv/util.d.ts +0 -0
- package/types/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/lib/deno_std_wasm_crypto.generated.d.mts +0 -0
- package/types/deps/deno.land/{std@0.149.0 → std@0.161.0/crypto}/_wasm_crypto/mod.d.ts +0 -0
- package/types/deps/deno.land/std@0.161.0/crypto/keystack.d.ts +47 -0
- package/types/deps/deno.land/std@0.161.0/crypto/mod.d.ts +56 -0
- package/types/deps/deno.land/std@0.161.0/crypto/timing_safe_equal.d.ts +3 -0
- package/types/deps/deno.land/std@0.161.0/crypto/util.d.ts +16 -0
- package/types/deps/deno.land/std@0.161.0/encoding/base64.d.ts +11 -0
- package/types/deps/deno.land/std@0.161.0/encoding/base64url.d.ts +10 -0
- package/types/deps/deno.land/std@0.161.0/encoding/hex.d.ts +7 -0
- package/types/deps/deno.land/std@0.161.0/fmt/colors.d.ts +270 -0
- package/types/deps/deno.land/std@0.161.0/testing/_diff.d.ts +26 -0
- package/types/deps/deno.land/std@0.161.0/testing/_format.d.ts +1 -0
- package/types/deps/deno.land/std@0.161.0/testing/asserts.d.ts +160 -0
- package/types/pkg/client/messages.d.ts +1 -1
- package/types/pkg/receiver.d.ts +1 -1
- package/esm/deps/deno.land/std@0.149.0/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +0 -3159
- package/script/deps/deno.land/std@0.149.0/_wasm_crypto/lib/deno_std_wasm_crypto.generated.mjs +0 -3167
- package/types/deps/deno.land/std@0.149.0/crypto/mod.d.ts +0 -53
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "../../../../_dnt.shims.js";
|
|
2
|
-
import { DigestAlgorithm as WasmDigestAlgorithm } from "../_wasm_crypto/mod.js";
|
|
3
|
-
/**
|
|
4
|
-
* An wrapper for WebCrypto adding support for additional non-standard
|
|
5
|
-
* algorithms, but delegating to the runtime WebCrypto implementation whenever
|
|
6
|
-
* possible.
|
|
7
|
-
*/
|
|
8
|
-
declare const stdCrypto: {
|
|
9
|
-
subtle: {
|
|
10
|
-
/**
|
|
11
|
-
* Returns a new `Promise` object that will digest `data` using the specified
|
|
12
|
-
* `AlgorithmIdentifier`.
|
|
13
|
-
*/
|
|
14
|
-
digest(algorithm: DigestAlgorithm, data: dntShim.BufferSource | AsyncIterable<dntShim.BufferSource> | Iterable<dntShim.BufferSource>): Promise<ArrayBuffer>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a ArrayBuffer with the result of digesting `data` using the
|
|
17
|
-
* specified `AlgorithmIdentifier`.
|
|
18
|
-
*/
|
|
19
|
-
digestSync(algorithm: DigestAlgorithm, data: dntShim.BufferSource | Iterable<dntShim.BufferSource>): ArrayBuffer;
|
|
20
|
-
decrypt: (algorithm: dntShim.AlgorithmIdentifier | dntShim.RsaOaepParams | dntShim.AesCtrParams | dntShim.AesCbcParams | dntShim.AesGcmParams, key: dntShim.CryptoKey, data: dntShim.BufferSource) => Promise<any>;
|
|
21
|
-
deriveBits: (algorithm: dntShim.AlgorithmIdentifier | dntShim.EcdhKeyDeriveParams | dntShim.HkdfParams | dntShim.Pbkdf2Params, baseKey: dntShim.CryptoKey, length: number) => Promise<ArrayBuffer>;
|
|
22
|
-
deriveKey: (algorithm: dntShim.AlgorithmIdentifier | dntShim.EcdhKeyDeriveParams | dntShim.HkdfParams | dntShim.Pbkdf2Params, baseKey: dntShim.CryptoKey, derivedKeyType: dntShim.AlgorithmIdentifier | dntShim.HkdfParams | dntShim.Pbkdf2Params | dntShim.AesDerivedKeyParams | dntShim.HmacImportParams, extractable: boolean, keyUsages: dntShim.KeyUsage[]) => Promise<dntShim.CryptoKey>;
|
|
23
|
-
encrypt: (algorithm: dntShim.AlgorithmIdentifier | dntShim.RsaOaepParams | dntShim.AesCtrParams | dntShim.AesCbcParams | dntShim.AesGcmParams, key: dntShim.CryptoKey, data: dntShim.BufferSource) => Promise<any>;
|
|
24
|
-
exportKey: {
|
|
25
|
-
(format: "jwk", key: dntShim.CryptoKey): Promise<dntShim.JsonWebKey>;
|
|
26
|
-
(format: "raw" | "pkcs8" | "spki", key: dntShim.CryptoKey): Promise<ArrayBuffer>;
|
|
27
|
-
};
|
|
28
|
-
generateKey: {
|
|
29
|
-
(algorithm: dntShim.RsaHashedKeyGenParams | dntShim.EcKeyGenParams, extractable: boolean, keyUsages: readonly dntShim.KeyUsage[]): Promise<dntShim.CryptoKeyPair>;
|
|
30
|
-
(algorithm: dntShim.Pbkdf2Params | dntShim.AesKeyGenParams | dntShim.HmacKeyGenParams, extractable: boolean, keyUsages: readonly dntShim.KeyUsage[]): Promise<dntShim.CryptoKey>;
|
|
31
|
-
(algorithm: dntShim.AlgorithmIdentifier, extractable: boolean, keyUsages: dntShim.KeyUsage[]): Promise<dntShim.CryptoKey | dntShim.CryptoKeyPair>;
|
|
32
|
-
};
|
|
33
|
-
importKey: {
|
|
34
|
-
(format: "jwk", keyData: dntShim.JsonWebKey, algorithm: dntShim.AlgorithmIdentifier | dntShim.HmacImportParams | dntShim.RsaHashedImportParams | dntShim.EcKeyImportParams | dntShim.AesKeyAlgorithm, extractable: boolean, keyUsages: readonly dntShim.KeyUsage[]): Promise<dntShim.CryptoKey>;
|
|
35
|
-
(format: "raw" | "pkcs8" | "spki", keyData: dntShim.BufferSource, algorithm: dntShim.AlgorithmIdentifier | dntShim.HmacImportParams | dntShim.RsaHashedImportParams | dntShim.EcKeyImportParams | dntShim.AesKeyAlgorithm, extractable: boolean, keyUsages: dntShim.KeyUsage[]): Promise<dntShim.CryptoKey>;
|
|
36
|
-
};
|
|
37
|
-
sign: (algorithm: dntShim.AlgorithmIdentifier | dntShim.RsaPssParams | dntShim.EcdsaParams, key: dntShim.CryptoKey, data: dntShim.BufferSource) => Promise<ArrayBuffer>;
|
|
38
|
-
unwrapKey: (format: dntShim.KeyFormat, wrappedKey: dntShim.BufferSource, unwrappingKey: dntShim.CryptoKey, unwrapAlgorithm: dntShim.AlgorithmIdentifier | dntShim.RsaOaepParams | dntShim.AesCtrParams | dntShim.AesCbcParams | dntShim.AesGcmParams, unwrappedKeyAlgorithm: dntShim.AlgorithmIdentifier | dntShim.HmacImportParams | dntShim.RsaHashedImportParams | dntShim.EcKeyImportParams | dntShim.AesKeyAlgorithm, extractable: boolean, keyUsages: dntShim.KeyUsage[]) => Promise<dntShim.CryptoKey>;
|
|
39
|
-
verify: (algorithm: dntShim.AlgorithmIdentifier | dntShim.RsaPssParams | dntShim.EcdsaParams, key: dntShim.CryptoKey, signature: dntShim.BufferSource, data: dntShim.BufferSource) => Promise<boolean>;
|
|
40
|
-
wrapKey: (format: dntShim.KeyFormat, key: dntShim.CryptoKey, wrappingKey: dntShim.CryptoKey, wrapAlgorithm: dntShim.AlgorithmIdentifier | dntShim.RsaOaepParams | dntShim.AesCtrParams | dntShim.AesCbcParams | dntShim.AesGcmParams) => Promise<ArrayBuffer>;
|
|
41
|
-
};
|
|
42
|
-
getRandomValues: <T extends ArrayBufferView | null>(array: T) => T;
|
|
43
|
-
randomUUID: () => string;
|
|
44
|
-
};
|
|
45
|
-
declare const FNVAlgorithms: string[];
|
|
46
|
-
declare type FNVAlgorithms = "FNV32" | "FNV32A" | "FNV64" | "FNV64A";
|
|
47
|
-
declare type DigestAlgorithmName = WasmDigestAlgorithm | FNVAlgorithms;
|
|
48
|
-
declare type DigestAlgorithmObject = {
|
|
49
|
-
name: DigestAlgorithmName;
|
|
50
|
-
length?: number;
|
|
51
|
-
};
|
|
52
|
-
declare type DigestAlgorithm = DigestAlgorithmName | DigestAlgorithmObject;
|
|
53
|
-
export { stdCrypto as crypto };
|