Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

lib0

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib0 - npm Package Compare versions

Comparing version 0.2.64 to 0.2.65

coverage/tmp/coverage-64278-1678297615727-0.json

2

crypto.test.d.ts

@@ -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]: {

24

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc