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

bin-wrapper-china

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-wrapper-china - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

2

package.json
{
"name": "bin-wrapper-china",
"version": "0.0.0",
"version": "0.0.1",
"description": "Binary mirror download link replacement for mainland China",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -11,13 +11,15 @@ const {

const replaceMaps = Object.values(mirrors)
.filter(
({ replaceHostMap, replaceHost, host }) =>
replaceHostMap || (replaceHost && host)
)
.map(
({ replaceHostMap, replaceHost = [], host }) =>
replaceHostMap ||
toArray(replaceHost).reduce((io, key) => ({ ...io, [key]: host }), {})
)
.flatMap(io => Object.entries(io));
const replaceMaps = Object.entries(
Object.values(mirrors)
.filter(
({ replaceHostMap, replaceHost, host }) =>
replaceHostMap || (replaceHost && host)
)
.map(
({ replaceHostMap, replaceHost = [], host }) =>
replaceHostMap ||
toArray(replaceHost).reduce((io, key) => ({ ...io, [key]: host }), {})
)
.reduce((io, obj) => ({ ...io, ...obj }), {})
);

@@ -24,0 +26,0 @@ module.exports = function urlReplacer(url) {

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