Comparing version 0.2.64 to 0.2.65
@@ -0,2 +1,4 @@ | ||
export function testEncryption(tc: t.TestCase): Promise<void>; | ||
export function testReapeatEncryption(tc: t.TestCase): Promise<void>; | ||
export function testImportExport(tc: t.TestCase): Promise<void>; | ||
export function testEncryptionPerformance(tc: t.TestCase): Promise<void>; | ||
@@ -3,0 +5,0 @@ export function testConsistentKeyGeneration(_tc: t.TestCase): Promise<void>; |
@@ -0,2 +1,4 @@ | ||
export function testEncryption(tc: t.TestCase): Promise<void>; | ||
export function testReapeatEncryption(tc: t.TestCase): Promise<void>; | ||
export function testImportExport(tc: t.TestCase): Promise<void>; | ||
export function testEncryptionPerformance(tc: t.TestCase): Promise<void>; | ||
@@ -3,0 +5,0 @@ export function testConsistentKeyGeneration(_tc: t.TestCase): Promise<void>; |
@@ -49,2 +49,3 @@ export { production } from "./environment.js"; | ||
export function fails(f: () => void): void; | ||
export function failsAsync(f: () => Promise<any>): Promise<void>; | ||
export function runTests(tests: { | ||
@@ -51,0 +52,0 @@ [x: string]: { |
{ | ||
"name": "lib0", | ||
"version": "0.2.64", | ||
"version": "0.2.65", | ||
"description": "", | ||
@@ -81,8 +81,20 @@ "sideEffects": false, | ||
}, | ||
"./crypto": { | ||
"types": "./crypto.d.ts", | ||
"module": "./crypto.js", | ||
"import": "./crypto.js", | ||
"require": "./dist/crypto.cjs" | ||
"./crypto/aes-gcm": { | ||
"types": "./crypto/aes-gcm.d.ts", | ||
"module": "./crypto/aes-gcm.js", | ||
"import": "./crypto/aes-gcm.js", | ||
"require": "./dist/crypto/aes-gcm.cjs" | ||
}, | ||
"./crypto/ecdsa": { | ||
"types": "./crypto/ecdsa.d.ts", | ||
"module": "./crypto/ecdsa.js", | ||
"import": "./crypto/ecdsa.js", | ||
"require": "./dist/crypto/ecdsa.cjs" | ||
}, | ||
"./crypto/rsa-oaep": { | ||
"types": "./crypto/rsa-oaep.d.ts", | ||
"module": "./crypto/rsa-oaep.js", | ||
"import": "./crypto/rsa-oaep.js", | ||
"require": "./dist/crypto/rsa-oaep.cjs" | ||
}, | ||
"./decoding.js": "./decoding.js", | ||
@@ -89,0 +101,0 @@ "./dist/decoding.cjs": "./dist/decoding.cjs", |
@@ -49,2 +49,3 @@ export { production } from "./environment.js"; | ||
export function fails(f: () => void): void; | ||
export function failsAsync(f: () => Promise<any>): Promise<void>; | ||
export function runTests(tests: { | ||
@@ -51,0 +52,0 @@ [x: string]: { |
@@ -550,2 +550,16 @@ /** | ||
/** | ||
* @param {function():Promise<any>} f | ||
* @throws {TestError} | ||
*/ | ||
export const failsAsync = async f => { | ||
try { | ||
await f() | ||
} catch (_err) { | ||
log.print(log.GREEN, '⇖ This Error was expected') | ||
return | ||
} | ||
fail('Expected this to fail') | ||
} | ||
/** | ||
* @param {Object<string, Object<string, function(TestCase):void|Promise<any>>>} tests | ||
@@ -552,0 +566,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
583
1530806
19571