@terra-money/terra.js
Advanced tools
Comparing version 0.4.15 to 0.4.16-beta.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Extension = void 0; | ||
var LocalMessageDuplexStream = require('post-message-stream'); | ||
var LocalMessageDuplexStream = /** @class */ (function () { | ||
function LocalMessageDuplexStream(options) { | ||
var a = options.name; | ||
var b = options.target; | ||
} | ||
return LocalMessageDuplexStream; | ||
}()); | ||
// Singleton class for communicating between page and extension | ||
@@ -12,2 +18,3 @@ var Extension = /** @class */ (function () { | ||
Extension.instance = this; | ||
// const LocalMessageDuplexStream = require('post-message-stream'); | ||
this.inpageStream = new LocalMessageDuplexStream({ | ||
@@ -14,0 +21,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-beta.0", | ||
"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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
27
5313288
16277