@nocobase/license-kit 0.2.9 → 0.2.11
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 +1 -0
- package/index.js +2 -1
- package/package.json +17 -17
package/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface Pair {
|
|
|
41
41
|
}
|
|
42
42
|
export declare function createKeyPair(): Pair
|
|
43
43
|
export declare function encryptWithPublicKey(dataStr: string, publicKeyPem: string): string
|
|
44
|
+
export declare function encrypt(dataStr: string): string
|
|
44
45
|
export declare function decryptWithPrivateKey(encryptedDataBase64: string, privateKeyPem: string): string
|
|
45
46
|
export declare function createSignature(dataStr: string, privateKey: string): string
|
|
46
47
|
export declare function verifySignature(dataStr: string, publicKeyPem: string, signatureStr: string): boolean
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { getEnvAsync, getInstanceIdWithPublicKeyAsync, getInstanceIdAsync, instanceIdDecrypt, createKeyPair, encryptWithPublicKey, decryptWithPrivateKey, createSignature, verifySignature, keyEncrypt, keyDecrypt } = nativeBinding
|
|
313
|
+
const { getEnvAsync, getInstanceIdWithPublicKeyAsync, getInstanceIdAsync, instanceIdDecrypt, createKeyPair, encryptWithPublicKey, encrypt, decryptWithPrivateKey, createSignature, verifySignature, keyEncrypt, keyDecrypt } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.getEnvAsync = getEnvAsync
|
|
316
316
|
module.exports.getInstanceIdWithPublicKeyAsync = getInstanceIdWithPublicKeyAsync
|
|
@@ -318,6 +318,7 @@ module.exports.getInstanceIdAsync = getInstanceIdAsync
|
|
|
318
318
|
module.exports.instanceIdDecrypt = instanceIdDecrypt
|
|
319
319
|
module.exports.createKeyPair = createKeyPair
|
|
320
320
|
module.exports.encryptWithPublicKey = encryptWithPublicKey
|
|
321
|
+
module.exports.encrypt = encrypt
|
|
321
322
|
module.exports.decryptWithPrivateKey = decryptWithPrivateKey
|
|
322
323
|
module.exports.createSignature = createSignature
|
|
323
324
|
module.exports.verifySignature = verifySignature
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/license-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"napi": {
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"url": "git+https://github.com/nocobase/license-kit.git"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@nocobase/license-kit-win32-x64-msvc": "0.2.
|
|
61
|
-
"@nocobase/license-kit-darwin-x64": "0.2.
|
|
62
|
-
"@nocobase/license-kit-linux-x64-gnu": "0.2.
|
|
63
|
-
"@nocobase/license-kit-darwin-arm64": "0.2.
|
|
64
|
-
"@nocobase/license-kit-android-arm64": "0.2.
|
|
65
|
-
"@nocobase/license-kit-linux-arm64-gnu": "0.2.
|
|
66
|
-
"@nocobase/license-kit-linux-arm64-musl": "0.2.
|
|
67
|
-
"@nocobase/license-kit-win32-arm64-msvc": "0.2.
|
|
68
|
-
"@nocobase/license-kit-linux-arm-gnueabihf": "0.2.
|
|
69
|
-
"@nocobase/license-kit-linux-arm-musleabihf": "0.2.
|
|
70
|
-
"@nocobase/license-kit-linux-x64-musl": "0.2.
|
|
71
|
-
"@nocobase/license-kit-freebsd-x64": "0.2.
|
|
72
|
-
"@nocobase/license-kit-win32-ia32-msvc": "0.2.
|
|
73
|
-
"@nocobase/license-kit-android-arm-eabi": "0.2.
|
|
74
|
-
"@nocobase/license-kit-darwin-universal": "0.2.
|
|
75
|
-
"@nocobase/license-kit-linux-riscv64-gnu": "0.2.
|
|
60
|
+
"@nocobase/license-kit-win32-x64-msvc": "0.2.11",
|
|
61
|
+
"@nocobase/license-kit-darwin-x64": "0.2.11",
|
|
62
|
+
"@nocobase/license-kit-linux-x64-gnu": "0.2.11",
|
|
63
|
+
"@nocobase/license-kit-darwin-arm64": "0.2.11",
|
|
64
|
+
"@nocobase/license-kit-android-arm64": "0.2.11",
|
|
65
|
+
"@nocobase/license-kit-linux-arm64-gnu": "0.2.11",
|
|
66
|
+
"@nocobase/license-kit-linux-arm64-musl": "0.2.11",
|
|
67
|
+
"@nocobase/license-kit-win32-arm64-msvc": "0.2.11",
|
|
68
|
+
"@nocobase/license-kit-linux-arm-gnueabihf": "0.2.11",
|
|
69
|
+
"@nocobase/license-kit-linux-arm-musleabihf": "0.2.11",
|
|
70
|
+
"@nocobase/license-kit-linux-x64-musl": "0.2.11",
|
|
71
|
+
"@nocobase/license-kit-freebsd-x64": "0.2.11",
|
|
72
|
+
"@nocobase/license-kit-win32-ia32-msvc": "0.2.11",
|
|
73
|
+
"@nocobase/license-kit-android-arm-eabi": "0.2.11",
|
|
74
|
+
"@nocobase/license-kit-darwin-universal": "0.2.11",
|
|
75
|
+
"@nocobase/license-kit-linux-riscv64-gnu": "0.2.11"
|
|
76
76
|
}
|
|
77
77
|
}
|