Socket
Socket
Sign inDemoInstall

@dxos/keys

Package Overview
Dependencies
Maintainers
13
Versions
2234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/keys - npm Package Compare versions

Comparing version 0.1.18 to 0.1.19

dist/lib/browser/index.mjs.map

2

dist/lib/browser/meta.json

@@ -1,1 +0,1 @@

{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25259,"imports":[]},"packages/common/keys/src/types.ts":{"bytes":625,"imports":[]},"packages/common/keys/src/index.ts":{"bytes":531,"imports":[{"path":"packages/common/keys/src/public-key.ts","kind":"import-statement"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement"}]}},"outputs":{"packages/common/keys/dist/lib/browser/index.mjs":{"imports":[],"exports":["PUBLIC_KEY_LENGTH","PublicKey","SECRET_KEY_LENGTH"],"entryPoint":"packages/common/keys/src/index.ts","inputs":{"packages/common/keys/src/public-key.ts":{"bytesInOutput":4621},"packages/common/keys/src/index.ts":{"bytesInOutput":0}},"bytes":4762}}}
{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25980,"imports":[]},"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"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement"}]}},"outputs":{"packages/common/keys/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12741},"packages/common/keys/dist/lib/browser/index.mjs":{"imports":[],"exports":["PUBLIC_KEY_LENGTH","PublicKey","SECRET_KEY_LENGTH"],"entryPoint":"packages/common/keys/src/index.ts","inputs":{"packages/common/keys/src/public-key.ts":{"bytesInOutput":4776},"packages/common/keys/src/index.ts":{"bytesInOutput":0}},"bytes":4952}}}

@@ -1,1 +0,1 @@

{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25259,"imports":[]},"packages/common/keys/src/types.ts":{"bytes":625,"imports":[]},"packages/common/keys/src/index.ts":{"bytes":531,"imports":[{"path":"packages/common/keys/src/public-key.ts","kind":"import-statement"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement"}]}},"outputs":{"packages/common/keys/dist/lib/node/index.cjs":{"imports":[],"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":4816}},"bytes":6367}}}
{"inputs":{"packages/common/keys/src/public-key.ts":{"bytes":25980,"imports":[]},"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"},{"path":"packages/common/keys/src/types.ts","kind":"import-statement"}]}},"outputs":{"packages/common/keys/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12903},"packages/common/keys/dist/lib/node/index.cjs":{"imports":[],"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":4971}},"bytes":6557}}}

@@ -37,2 +37,3 @@ /// <reference types="node" />

static random(): PublicKey;
static randomSequence(): Generator<PublicKey>;
/**

@@ -39,0 +40,0 @@ * Tests if provided values is an instance of PublicKey.

{
"name": "@dxos/keys",
"version": "0.1.18",
"version": "0.1.19",
"description": "Key utils and definitions.",

@@ -20,4 +20,4 @@ "homepage": "https://dxos.org",

"randombytes": "^2.1.0",
"@dxos/debug": "0.1.18",
"@dxos/node-std": "0.1.18"
"@dxos/debug": "0.1.19",
"@dxos/node-std": "0.1.19"
},

@@ -24,0 +24,0 @@ "devDependencies": {

@@ -82,2 +82,10 @@ //

static *randomSequence(): Generator<PublicKey> {
for (let i = 0; i < 1_0000; i++) {
// Counter just to protect against infinite loops.
yield PublicKey.random();
}
throw new Error('Too many keys requested');
}
/**

@@ -84,0 +92,0 @@ * Tests if provided values is an instance of PublicKey.

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