Socket
Socket
Sign inDemoInstall

@terra-money/terra.js

Package Overview
Dependencies
Maintainers
5
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@terra-money/terra.js - npm Package Compare versions

Comparing version 0.4.15 to 0.4.16

2

dist/extension/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Extension = void 0;
var LocalMessageDuplexStream = require('post-message-stream');
// Singleton class for communicating between page and extension

@@ -12,2 +11,3 @@ var Extension = /** @class */ (function () {

Extension.instance = this;
var LocalMessageDuplexStream = require('post-message-stream');
this.inpageStream = new LocalMessageDuplexStream({

@@ -14,0 +14,0 @@ name: 'station:inpage',

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.hashAmino = void 0;
var crypto = __importStar(require("crypto"));
var SHA256_1 = __importDefault(require("crypto-js/SHA256"));
var enc_base64_1 = __importDefault(require("crypto-js/enc-base64"));
/*

@@ -38,10 +23,5 @@ DEPRECATED (was used by crypto-js)

function hashAmino(txData) {
return crypto
.createHash('sha256')
.update(Buffer.from(txData, 'base64'))
.digest('hex')
.toString()
.toUpperCase();
return SHA256_1.default(enc_base64_1.default.parse(txData)).toString().toUpperCase();
}
exports.hashAmino = hashAmino;
//# sourceMappingURL=hash.js.map
{
"version": "0.4.15",
"version": "0.4.16",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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