New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@meteorwallet/utils

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meteorwallet/utils - npm Package Compare versions

Comparing version 0.26.0 to 0.27.0

19

dist/esm/apdu/apdu.utils.js

@@ -63,7 +63,12 @@ import { buffer_utils } from "../buffer/buffer.utils";

}
dataBufferPart = data ? Buffer.concat([dataBufferPart, data]) : dataBufferPart;
dataBufferPart = data
? Buffer.concat([Uint8Array.from(dataBufferPart), Uint8Array.from(data)])
: dataBufferPart;
if (le != null) {
if (le < 257) {
// 1 byte
dataBufferPart = Buffer.concat([dataBufferPart, Buffer.alloc(1)]);
dataBufferPart = Buffer.concat([
Uint8Array.from(dataBufferPart),
Uint8Array.from(Buffer.alloc(1)),
]);
dataBufferPart[dataBufferPart.length - 1] = le === 256 ? 0 : le;

@@ -73,3 +78,6 @@ }

// 2 bytes
dataBufferPart = Buffer.concat([dataBufferPart, Buffer.alloc(2)]);
dataBufferPart = Buffer.concat([
Uint8Array.from(dataBufferPart),
Uint8Array.from(Buffer.alloc(2)),
]);
if (le === 65536) {

@@ -89,3 +97,6 @@ dataBufferPart.writeUIntBE(0, dataBufferPart.length - 2, 2);

if (dataBufferPart != null) {
return Buffer.concat([Buffer.from([cla, ins, p1, p2]), dataBufferPart]);
return Buffer.concat([
Uint8Array.from(Buffer.from([cla, ins, p1, p2])),
Uint8Array.from(dataBufferPart),
]);
}

@@ -92,0 +103,0 @@ return Buffer.from([cla, ins, p1, p2]);

{
"name": "@meteorwallet/utils",
"version": "0.26.0",
"version": "0.27.0",
"description": "Utility functions used in Meteor Wallet",

@@ -18,10 +18,25 @@ "files": [

"./*": {
"types": "./dist/esm/*.d.ts",
"types": [
"./dist/esm/*.d.ts",
"./dist/esm/*/index.d.ts"
],
"import": {
"types": "./dist/esm/*.d.ts",
"default": "./dist/esm/*.js"
"types": [
"./dist/esm/*.d.ts",
"./dist/esm/*/index.d.ts"
],
"default": [
"./dist/esm/*.js",
"./dist/esm/*/index.js"
]
},
"require": {
"types": "./dist/esm/*.d.ts",
"default": "./dist/esm/*.js"
"types": [
"./dist/esm/*.d.ts",
"./dist/esm/*/index.d.ts"
],
"default": [
"./dist/esm/*.js",
"./dist/esm/*/index.js"
]
}

@@ -28,0 +43,0 @@ }

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