Socket
Socket
Sign inDemoInstall

@dxos/util

Package Overview
Dependencies
Maintainers
23
Versions
3018
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/util - npm Package Compare versions

Comparing version 2.17.2 to 2.17.3

dist/src/isNotNullOrUndefined.d.ts

4

dist/src/complex.js

@@ -110,3 +110,3 @@ "use strict";

var _a;
return callbackfn((_a = this._values.get(primitive)) !== null && _a !== void 0 ? _a : debug_1.raise(new Error('Map corrupted.')), key, this);
return callbackfn((_a = this._values.get(primitive)) !== null && _a !== void 0 ? _a : (0, debug_1.raise)(new Error('Map corrupted.')), key, this);
});

@@ -132,3 +132,3 @@ }

for (const [primitive, key] of this._keys) {
const value = (_a = this._values.get(primitive)) !== null && _a !== void 0 ? _a : debug_1.raise(new Error('Map corrupted.'));
const value = (_a = this._values.get(primitive)) !== null && _a !== void 0 ? _a : (0, debug_1.raise)(new Error('Map corrupted.'));
yield [key, value];

@@ -135,0 +135,0 @@ }

@@ -8,7 +8,7 @@ "use strict";

const complex_1 = require("../src/complex");
const PulicKeySet = complex_1.makeSet(crypto_1.keyToString);
const PulicKeySet = (0, complex_1.makeSet)(crypto_1.keyToString);
test('ComplexSet', () => {
const key1 = crypto_1.randomBytes();
const key2 = crypto_1.randomBytes();
const key3 = crypto_1.randomBytes();
const key1 = (0, crypto_1.randomBytes)();
const key2 = (0, crypto_1.randomBytes)();
const key3 = (0, crypto_1.randomBytes)();
const set = new PulicKeySet([key1]);

@@ -30,7 +30,7 @@ expect(set.has(key1)).toBe(true);

});
const PulicKeyMap = complex_1.makeMap(crypto_1.keyToString);
const PulicKeyMap = (0, complex_1.makeMap)(crypto_1.keyToString);
test('ComplexMap', () => {
const key1 = crypto_1.randomBytes();
const key2 = crypto_1.randomBytes();
const key3 = crypto_1.randomBytes();
const key1 = (0, crypto_1.randomBytes)();
const key2 = (0, crypto_1.randomBytes)();
const key3 = (0, crypto_1.randomBytes)();
const map = new PulicKeyMap([[key1, 'a']]);

@@ -37,0 +37,0 @@ expect(map.has(key1)).toBe(true);

@@ -10,2 +10,3 @@ export * from './complex';

export * from './typeguards';
export * from './isNotNullOrUndefined';
//# sourceMappingURL=index.d.ts.map

@@ -25,2 +25,3 @@ "use strict";

__exportStar(require("./typeguards"), exports);
__exportStar(require("./isNotNullOrUndefined"), exports);
//# sourceMappingURL=index.js.map

@@ -20,3 +20,3 @@ "use strict";

const key = Buffer.from(value.data);
return `[${crypto_1.humanize(key)}]:[${crypto_1.keyToString(key)}]`;
return `[${(0, crypto_1.humanize)(key)}]:[${(0, crypto_1.keyToString)(key)}]`;
}

@@ -23,0 +23,0 @@ else {

@@ -21,3 +21,3 @@ "use strict";

getOrInit(key) {
assert_1.default(key);
(0, assert_1.default)(key);
if (this.has(key)) {

@@ -24,0 +24,0 @@ return this.get(key);

{
"name": "@dxos/util",
"version": "2.17.2",
"version": "2.17.3",
"description": "Temporary bucket for misc functions, which should graduate into separate packages.",

@@ -27,4 +27,4 @@ "bugs": {

"dependencies": {
"@dxos/crypto": "2.17.2",
"@dxos/debug": "2.17.2",
"@dxos/crypto": "2.17.3",
"@dxos/debug": "2.17.3",
"@types/node": "^14.0.9"

@@ -31,0 +31,0 @@ },

@@ -14,1 +14,2 @@ //

export * from './typeguards';
export * from './isNotNullOrUndefined';

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