Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@taquito/utils

Package Overview
Dependencies
Maintainers
4
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taquito/utils - npm Package Compare versions

Comparing version 16.0.0 to 16.0.1

11

dist/lib/validators.js

@@ -39,7 +39,10 @@ "use strict";

}
// Remove annotation from contract address before doing the validation
const contractAddress = /^(KT1\w{33})(%(.*))?/.exec(value);
if (contractAddress) {
value = contractAddress[1];
// Check whether annotation exist before starting validation
if (value.includes('%')) {
value = value.split('%')[0];
}
const kt1Regex = /^(KT1\w{33})$/;
if (!kt1Regex.test(value) && prefixKey === 'KT1') {
return ValidationResult.INVALID_CHECKSUM;
}
// decodeUnsafe return undefined if decoding fail

@@ -46,0 +49,0 @@ let decoded = bs58check_1.default.decodeUnsafe(value);

@@ -6,5 +6,5 @@ "use strict";

exports.VERSION = {
"commitHash": "49a724eb9d4947e2aed19bfa1462fa7ae7848add",
"version": "16.0.0"
"commitHash": "c050a62135022aa2e61ba6ef72a98f9c89f1682c",
"version": "16.0.1"
};
//# sourceMappingURL=version.js.map

@@ -471,7 +471,10 @@ import { Buffer } from 'buffer';

}
// Remove annotation from contract address before doing the validation
const contractAddress = /^(KT1\w{33})(%(.*))?/.exec(value);
if (contractAddress) {
value = contractAddress[1];
// Check whether annotation exist before starting validation
if (value.includes('%')) {
value = value.split('%')[0];
}
const kt1Regex = /^(KT1\w{33})$/;
if (!kt1Regex.test(value) && prefixKey === 'KT1') {
return ValidationResult.INVALID_CHECKSUM;
}
// decodeUnsafe return undefined if decoding fail

@@ -668,4 +671,4 @@ let decoded = bs58check.decodeUnsafe(value);

const VERSION = {
"commitHash": "49a724eb9d4947e2aed19bfa1462fa7ae7848add",
"version": "16.0.0"
"commitHash": "c050a62135022aa2e61ba6ef72a98f9c89f1682c",
"version": "16.0.1"
};

@@ -672,0 +675,0 @@

@@ -476,7 +476,10 @@ (function (global, factory) {

}
// Remove annotation from contract address before doing the validation
const contractAddress = /^(KT1\w{33})(%(.*))?/.exec(value);
if (contractAddress) {
value = contractAddress[1];
// Check whether annotation exist before starting validation
if (value.includes('%')) {
value = value.split('%')[0];
}
const kt1Regex = /^(KT1\w{33})$/;
if (!kt1Regex.test(value) && prefixKey === 'KT1') {
return exports.ValidationResult.INVALID_CHECKSUM;
}
// decodeUnsafe return undefined if decoding fail

@@ -673,4 +676,4 @@ let decoded = bs58check__default["default"].decodeUnsafe(value);

const VERSION = {
"commitHash": "49a724eb9d4947e2aed19bfa1462fa7ae7848add",
"version": "16.0.0"
"commitHash": "c050a62135022aa2e61ba6ef72a98f9c89f1682c",
"version": "16.0.1"
};

@@ -677,0 +680,0 @@

{
"name": "@taquito/utils",
"version": "16.0.0",
"version": "16.0.1",
"description": "converts michelson data and types into convenient JS/TS objects",

@@ -105,3 +105,3 @@ "keywords": [

},
"gitHead": "2febd6cb324c08f1aecbde6500814a867c48d112"
"gitHead": "4683257c69df56e48fd8bee23ea3e19491919e4a"
}

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