Socket
Socket
Sign inDemoInstall

@dxos/util

Package Overview
Dependencies
Maintainers
9
Versions
2987
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.6.11-alpha.0 to 2.6.13-alpha.0

4

dist/src/json.js

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

exports.jsonReplacer = void 0;
const util_1 = require("util");
const crypto_1 = require("@dxos/crypto");

@@ -14,2 +15,5 @@ /**

// TODO(burdon): Why is this represented as { type: 'Buffer', data }
if (value !== null && typeof value === 'object' && typeof value[util_1.inspect.custom] === 'function') {
return value[util_1.inspect.custom]();
}
if (value !== null && typeof value === 'object' && value.type === 'Buffer' && Array.isArray(value.data)) {

@@ -16,0 +20,0 @@ if (value.data.length === 32) {

4

package.json
{
"name": "@dxos/util",
"version": "2.6.11-alpha.0",
"version": "2.6.13-alpha.0",
"description": "Utilities to be moved to other repos.",

@@ -66,3 +66,3 @@ "homepage": "https://github.com/dxos/echo/tree/master/packages/echo#readme",

},
"gitHead": "93e68a57c284b6b05745eeb28adbe58b03d8887c"
"gitHead": "d01a8862fe9951ba7e7acfeaf23bc9cdc34863b4"
}

@@ -5,2 +5,4 @@ //

import { inspect } from 'util';
import { humanize, keyToString } from '@dxos/crypto';

@@ -13,2 +15,6 @@

// TODO(burdon): Why is this represented as { type: 'Buffer', data }
if (value !== null && typeof value === 'object' && typeof value[inspect.custom] === 'function') {
return value[inspect.custom]();
}
if (value !== null && typeof value === 'object' && value.type === 'Buffer' && Array.isArray(value.data)) {

@@ -15,0 +21,0 @@ if (value.data.length === 32) {

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