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

bitcore-lib-doge

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcore-lib-doge - npm Package Compare versions

Comparing version 8.25.28 to 8.25.30

13

lib/networks.js

@@ -28,2 +28,5 @@ 'use strict';

function removeNetwork(network) {
if (typeof network !== 'object') {
network = get(network);
}
for (var i = 0; i < networks.length; i++) {

@@ -35,3 +38,11 @@ if (networks[i] === network) {

for (var key in networkMaps) {
if (networkMaps[key] === network) {
if (networkMaps[key].length) {
const index = networkMaps[key].indexOf(network);
if (index >= 0) {
networkMaps[key].splice(index, 1);
}
if (networkMaps[key].length === 0) {
delete networkMaps[key];
}
} else if (networkMaps[key] === network) {
delete networkMaps[key];

@@ -38,0 +49,0 @@ }

4

package.json
{
"name": "bitcore-lib-doge",
"version": "8.25.28",
"version": "8.25.30",
"description": "A pure and powerful JavaScript Dogecoin library.",

@@ -55,3 +55,3 @@ "author": "BitPay <dev@bitpay.com>",

"license": "MIT",
"gitHead": "713d540373cd442327f7fed479c2b69dfd239ab7"
"gitHead": "b1848c67d201a06bb9f306040b2520dc8b35356b"
}

@@ -399,3 +399,2 @@ 'use strict';

var script = Script.buildPublicKeyHashOut(new Address(address));
console.log(script);
Address(script, Networks.livenet).toString().should.equal(address);

@@ -402,0 +401,0 @@ });

@@ -67,4 +67,5 @@ 'use strict';

it('can remove a custom network', function() {
networks.remove('customnet');
Object.keys(networks).should.not.contain('customnet');
networks.remove(customnet);
var net = networks.get('customnet');
should.equal(net, undefined);
});

@@ -89,5 +90,12 @@

should.not.exist(network);
networks.remove(custom);
});
it('can remove a custom network by name', function() {
var net = networks.get('somenet');
should.exist(net);
networks.remove('somenet');
var net = networks.get('somenet');
should.equal(net, undefined);
});
var constants = ['name', 'alias', 'pubkeyhash', 'scripthash', 'xpubkey', 'xprivkey'];

@@ -94,0 +102,0 @@

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