Socket
Socket
Sign inDemoInstall

@truffle/dashboard-message-bus-common

Package Overview
Dependencies
0
Maintainers
14
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

5

dist/utils.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createMessage = exports.base64ToJson = exports.jsonToBase64 = void 0;
const buffer_1 = require("buffer");
/**

@@ -9,3 +10,3 @@ * Convert any JS object or value to a base64 representation of it

const stringifiedJson = JSON.stringify(json);
const buffer = Buffer.from(stringifiedJson);
const buffer = buffer_1.Buffer.from(stringifiedJson);
const base64 = buffer.toString("base64");

@@ -20,3 +21,3 @@ return base64;

const base64ToJson = (base64) => {
const buffer = Buffer.from(base64, "base64");
const buffer = buffer_1.Buffer.from(base64, "base64");
const stringifiedJson = buffer.toString("utf8");

@@ -23,0 +24,0 @@ const json = JSON.parse(stringifiedJson);

4

package.json
{
"name": "@truffle/dashboard-message-bus-common",
"version": "0.1.1",
"version": "0.1.2",
"description": "Message types that are used when communicating with the Truffle dashboard message bus",

@@ -35,3 +35,3 @@ "main": "dist/index.js",

},
"gitHead": "d30ce8fcd3a84044c04ac7466d4b3be2b4e8ae48"
"gitHead": "76fec0004b4cdba773dc131044977f1e2efbf9fc"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc