@dxos/keys
Advanced tools
Comparing version 0.1.42-next.6e229fb to 0.1.45-next.45667d4
@@ -1,1 +0,1 @@ | ||
{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25136,"imports":[{"path":"@dxos/node-std/assert","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"randombytes","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}]},"packages/common/keys/src/types.ts":{"bytes":553,"imports":[]},"packages/common/keys/src/index.ts":{"bytes":463,"imports":[{"path":"packages/common/keys/src/public-key.ts","kind":"import-statement","original":"./public-key"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement","original":"./types"}]}},"outputs":{"packages/common/keys/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12155},"packages/common/keys/dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/node-std/assert","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"randombytes","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"exports":["PUBLIC_KEY_LENGTH","PublicKey","SECRET_KEY_LENGTH"],"entryPoint":"packages/common/keys/src/index.ts","inputs":{"packages/common/keys/src/public-key.ts":{"bytesInOutput":6296},"packages/common/keys/src/index.ts":{"bytesInOutput":0}},"bytes":6472}}} | ||
{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25144,"imports":[{"path":"@dxos/node-std/assert","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"randombytes","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}]},"packages/common/keys/src/types.ts":{"bytes":553,"imports":[]},"packages/common/keys/src/index.ts":{"bytes":463,"imports":[{"path":"packages/common/keys/src/public-key.ts","kind":"import-statement","original":"./public-key"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement","original":"./types"}]}},"outputs":{"packages/common/keys/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12160},"packages/common/keys/dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/node-std/assert","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"randombytes","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"exports":["PUBLIC_KEY_LENGTH","PublicKey","SECRET_KEY_LENGTH"],"entryPoint":"packages/common/keys/src/index.ts","inputs":{"packages/common/keys/src/public-key.ts":{"bytesInOutput":6296},"packages/common/keys/src/index.ts":{"bytesInOutput":0}},"bytes":6472}}} |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25136,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:util","kind":"import-statement","external":true},{"path":"randombytes","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}]},"packages/common/keys/src/types.ts":{"bytes":553,"imports":[]},"packages/common/keys/src/index.ts":{"bytes":463,"imports":[{"path":"packages/common/keys/src/public-key.ts","kind":"import-statement","original":"./public-key"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement","original":"./types"}]}},"outputs":{"packages/common/keys/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12307},"packages/common/keys/dist/lib/node/index.cjs":{"imports":[{"path":"node:assert","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"randombytes","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/keys/src/index.ts","inputs":{"packages/common/keys/src/index.ts":{"bytesInOutput":215},"packages/common/keys/src/public-key.ts":{"bytesInOutput":6484}},"bytes":8356}}} | ||
{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25144,"imports":[{"path":"node:assert","kind":"import-statement","external":true},{"path":"node:util","kind":"import-statement","external":true},{"path":"randombytes","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}]},"packages/common/keys/src/types.ts":{"bytes":553,"imports":[]},"packages/common/keys/src/index.ts":{"bytes":463,"imports":[{"path":"packages/common/keys/src/public-key.ts","kind":"import-statement","original":"./public-key"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement","original":"./types"}]}},"outputs":{"packages/common/keys/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12312},"packages/common/keys/dist/lib/node/index.cjs":{"imports":[{"path":"node:assert","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"randombytes","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/keys/src/index.ts","inputs":{"packages/common/keys/src/index.ts":{"bytesInOutput":215},"packages/common/keys/src/public-key.ts":{"bytesInOutput":6484}},"bytes":8356}}} |
@@ -10,3 +10,3 @@ /// <reference types="node" /> | ||
*/ | ||
export declare type PublicKeyLike = PublicKey | Buffer | Uint8Array | ArrayBuffer | string; | ||
export type PublicKeyLike = PublicKey | Buffer | Uint8Array | ArrayBuffer | string; | ||
/** | ||
@@ -13,0 +13,0 @@ * The purpose of this class is to assure consistent use of keys throughout the project. |
/// <reference types="node" /> | ||
export declare type KeyPair = { | ||
export type KeyPair = { | ||
publicKey: Buffer; | ||
@@ -4,0 +4,0 @@ secretKey: Buffer; |
{ | ||
"name": "@dxos/keys", | ||
"version": "0.1.42-next.6e229fb", | ||
"version": "0.1.45-next.45667d4", | ||
"description": "Key utils and definitions.", | ||
@@ -20,4 +20,4 @@ "homepage": "https://dxos.org", | ||
"randombytes": "^2.1.0", | ||
"@dxos/debug": "0.1.42-next.6e229fb", | ||
"@dxos/node-std": "0.1.42-next.6e229fb" | ||
"@dxos/debug": "0.1.45-next.45667d4", | ||
"@dxos/node-std": "0.1.45-next.45667d4" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
@@ -50,3 +50,3 @@ // | ||
expect(PublicKey.from(new Uint8Array(32)).toHex()).to.equal( | ||
'0000000000000000000000000000000000000000000000000000000000000000' | ||
'0000000000000000000000000000000000000000000000000000000000000000', | ||
); | ||
@@ -53,0 +53,0 @@ }); |
@@ -214,3 +214,3 @@ // | ||
'cyanBright', | ||
'whiteBright' | ||
'whiteBright', | ||
]; | ||
@@ -220,3 +220,3 @@ const color = colors[this.getInsecureHash(colors.length)]; | ||
return `PublicKey(${printControlCode(inspect.colors[color]![0])}${this.truncate()}${printControlCode( | ||
inspect.colors.reset![0] | ||
inspect.colors.reset![0], | ||
)})`; | ||
@@ -242,3 +242,3 @@ } | ||
'darkcyan', | ||
'black' | ||
'black', | ||
]; | ||
@@ -252,5 +252,5 @@ const color = colors[this.getInsecureHash(colors.length)]; | ||
['span', { style: `color: ${color};` }, this.truncate()], | ||
['span', {}, ')'] | ||
['span', {}, ')'], | ||
]; | ||
} | ||
}, | ||
}; | ||
@@ -257,0 +257,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
59317
+ Added@dxos/debug@0.1.45-next.45667d4(transitive)
+ Added@dxos/node-std@0.1.45-next.45667d4(transitive)
- Removed@dxos/debug@0.1.42-next.6e229fb(transitive)
- Removed@dxos/node-std@0.1.42-next.6e229fb(transitive)