@maiyunnet/kebab 2.0.11 → 2.0.12

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/index.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * ------------------------
9
9
  */
10
10
  /** --- 当前系统版本号 --- */
11
- export declare const VER = "2.0.11";
11
+ export declare const VER = "2.0.12";
12
12
  /** --- 框架根目录,以 / 结尾 --- */
13
13
  export declare const ROOT_PATH: string;
14
14
  export declare const LIB_PATH: string;
package/index.js CHANGED
@@ -11,7 +11,7 @@
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MOD_CWD = exports.FTMP_CWD = exports.IND_CWD = exports.WWW_CWD = exports.LOG_CWD = exports.LIB_CWD = exports.VHOST_CWD = exports.CERT_CWD = exports.CONF_CWD = exports.ROOT_CWD = exports.SYS_PATH = exports.LIB_PATH = exports.ROOT_PATH = exports.VER = void 0;
13
13
  /** --- 当前系统版本号 --- */
14
- exports.VER = '2.0.11';
14
+ exports.VER = '2.0.12';
15
15
  // --- 服务端用的路径 ---
16
16
  /** --- /xxx/xxx --- */
17
17
  const dirname = __dirname.replace(/\\/g, '/');
package/lib/crypto.d.ts CHANGED
@@ -39,25 +39,25 @@ export declare function verify(data: crypto.BinaryLike, object: crypto.KeyLike |
39
39
  * @param key 公钥
40
40
  * @param buffer 数据
41
41
  */
42
- export declare function publicEncrypt(key: crypto.RsaPublicKey | crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
42
+ export declare function publicEncrypt(key: crypto.RsaPublicKey | crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
43
43
  /**
44
44
  * --- 非对称私钥加密 ---
45
45
  * @param key 私钥
46
46
  * @param buffer 数据
47
47
  */
48
- export declare function privateEncrypt(key: crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
48
+ export declare function privateEncrypt(key: crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
49
49
  /**
50
50
  * --- 非对称公钥解密 ---
51
51
  * @param key 公钥
52
52
  * @param buffer 数据
53
53
  */
54
- export declare function publicDecrypt(key: crypto.RsaPublicKey | crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
54
+ export declare function publicDecrypt(key: crypto.RsaPublicKey | crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
55
55
  /**
56
56
  * --- 非对称私钥解密 ---
57
57
  * @param key 私钥
58
58
  * @param buffer 数据
59
59
  */
60
- export declare function privateDecrypt(key: crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
60
+ export declare function privateDecrypt(key: crypto.RsaPrivateKey | crypto.KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
61
61
  export declare const AES_256_ECB = "aes-256-ecb";
62
62
  export declare const AES_256_CBC = "aes-256-cbc";
63
63
  export declare const AES_256_CFB = "aes-256-cfb";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiyunnet/kebab",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Simple, easy-to-use, and fully-featured Node.js framework that is ready-to-use out of the box.",
5
5
  "keywords": [
6
6
  "kebab",