cipher-kit 0.0.3 → 0.0.5
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/dist/chunk-65XPPPAR.cjs +216 -0
- package/dist/chunk-65XPPPAR.cjs.map +1 -0
- package/dist/chunk-F52DT5C4.js +70 -0
- package/dist/chunk-F52DT5C4.js.map +1 -0
- package/dist/chunk-IMSNCUFU.cjs +84 -0
- package/dist/chunk-IMSNCUFU.cjs.map +1 -0
- package/dist/chunk-PKIT6YQN.js +137 -0
- package/dist/chunk-PKIT6YQN.js.map +1 -0
- package/dist/chunk-RF735UV3.cjs +153 -0
- package/dist/chunk-RF735UV3.cjs.map +1 -0
- package/dist/{chunk-GYFL6RUD.js → chunk-UYBB4K56.js} +49 -43
- package/dist/chunk-UYBB4K56.js.map +1 -0
- package/dist/index.cjs +36 -76
- package/dist/index.d.cts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +3 -3
- package/dist/node.cjs +35 -19
- package/dist/node.d.cts +7 -8
- package/dist/node.d.ts +7 -8
- package/dist/node.js +2 -2
- package/dist/types-C7UlGfO2.d.cts +46 -0
- package/dist/types-C7UlGfO2.d.ts +46 -0
- package/dist/web-api.cjs +35 -19
- package/dist/web-api.d.cts +6 -7
- package/dist/web-api.d.ts +6 -7
- package/dist/web-api.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-72PZBMQR.js +0 -48
- package/dist/chunk-72PZBMQR.js.map +0 -1
- package/dist/chunk-GYFL6RUD.js.map +0 -1
- package/dist/chunk-KFZLZJ2J.cjs +0 -209
- package/dist/chunk-KFZLZJ2J.cjs.map +0 -1
- package/dist/chunk-MMHTEI3Q.js +0 -125
- package/dist/chunk-MMHTEI3Q.js.map +0 -1
- package/dist/chunk-WB7F34SY.cjs +0 -140
- package/dist/chunk-WB7F34SY.cjs.map +0 -1
- package/dist/chunk-WD5FWRQ4.cjs +0 -58
- package/dist/chunk-WD5FWRQ4.cjs.map +0 -1
- package/dist/utils-D8fOvyw5.d.cts +0 -35
- package/dist/utils-D8fOvyw5.d.ts +0 -35
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import nodeCrypto, { webcrypto } from 'node:crypto';
|
|
2
|
-
|
|
3
|
-
type WebApiKey = webcrypto.CryptoKey;
|
|
4
|
-
type NodeKey = nodeCrypto.KeyObject;
|
|
5
|
-
type EncodingFormat = 'base64' | 'base64url' | 'hex' | 'utf8';
|
|
6
|
-
|
|
7
|
-
interface ResultErr {
|
|
8
|
-
readonly message: string;
|
|
9
|
-
readonly description: string;
|
|
10
|
-
}
|
|
11
|
-
type Result<T, E = ResultErr> = T extends object ? ({
|
|
12
|
-
readonly [K in keyof T]: T[K];
|
|
13
|
-
} & {
|
|
14
|
-
readonly success: true;
|
|
15
|
-
readonly error?: undefined;
|
|
16
|
-
}) | ({
|
|
17
|
-
readonly [K in keyof T]?: undefined;
|
|
18
|
-
} & {
|
|
19
|
-
readonly success: false;
|
|
20
|
-
readonly error: E;
|
|
21
|
-
}) : {
|
|
22
|
-
readonly success: true;
|
|
23
|
-
readonly result: T;
|
|
24
|
-
readonly error?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
readonly success: false;
|
|
27
|
-
readonly error: E;
|
|
28
|
-
readonly result?: undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
declare const ENCRYPTED_REGEX: RegExp;
|
|
32
|
-
declare const ENCRYPTED_NODE_REGEX: RegExp;
|
|
33
|
-
declare const ENCRYPTED_WEB_REGEX: RegExp;
|
|
34
|
-
|
|
35
|
-
export { ENCRYPTED_NODE_REGEX as E, type NodeKey as N, type Result as R, type WebApiKey as W, ENCRYPTED_REGEX as a, ENCRYPTED_WEB_REGEX as b, type EncodingFormat as c };
|
package/dist/utils-D8fOvyw5.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import nodeCrypto, { webcrypto } from 'node:crypto';
|
|
2
|
-
|
|
3
|
-
type WebApiKey = webcrypto.CryptoKey;
|
|
4
|
-
type NodeKey = nodeCrypto.KeyObject;
|
|
5
|
-
type EncodingFormat = 'base64' | 'base64url' | 'hex' | 'utf8';
|
|
6
|
-
|
|
7
|
-
interface ResultErr {
|
|
8
|
-
readonly message: string;
|
|
9
|
-
readonly description: string;
|
|
10
|
-
}
|
|
11
|
-
type Result<T, E = ResultErr> = T extends object ? ({
|
|
12
|
-
readonly [K in keyof T]: T[K];
|
|
13
|
-
} & {
|
|
14
|
-
readonly success: true;
|
|
15
|
-
readonly error?: undefined;
|
|
16
|
-
}) | ({
|
|
17
|
-
readonly [K in keyof T]?: undefined;
|
|
18
|
-
} & {
|
|
19
|
-
readonly success: false;
|
|
20
|
-
readonly error: E;
|
|
21
|
-
}) : {
|
|
22
|
-
readonly success: true;
|
|
23
|
-
readonly result: T;
|
|
24
|
-
readonly error?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
readonly success: false;
|
|
27
|
-
readonly error: E;
|
|
28
|
-
readonly result?: undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
declare const ENCRYPTED_REGEX: RegExp;
|
|
32
|
-
declare const ENCRYPTED_NODE_REGEX: RegExp;
|
|
33
|
-
declare const ENCRYPTED_WEB_REGEX: RegExp;
|
|
34
|
-
|
|
35
|
-
export { ENCRYPTED_NODE_REGEX as E, type NodeKey as N, type Result as R, type WebApiKey as W, ENCRYPTED_REGEX as a, ENCRYPTED_WEB_REGEX as b, type EncodingFormat as c };
|