UNPKG

verdaccio

Version:

A lightweight private npm proxy registry

12 lines (10 loc) 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.spliceURL = spliceURL; // @flow function spliceURL(...args) { return Array.from(args).reduce((lastResult, current) => lastResult + current).replace(/([^:])(\/)+(.)/g, `$1/$3`); } //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9zdHJpbmcudHMiXSwibmFtZXMiOlsic3BsaWNlVVJMIiwiYXJncyIsIkFycmF5IiwiZnJvbSIsInJlZHVjZSIsImxhc3RSZXN1bHQiLCJjdXJyZW50IiwicmVwbGFjZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBRU8sU0FBU0EsU0FBVCxDQUFtQixHQUFHQyxJQUF0QixFQUE4QztBQUNuRCxTQUFPQyxLQUFLLENBQUNDLElBQU4sQ0FBV0YsSUFBWCxFQUNKRyxNQURJLENBQ0csQ0FBQ0MsVUFBRCxFQUFhQyxPQUFiLEtBQXlCRCxVQUFVLEdBQUdDLE9BRHpDLEVBRUpDLE9BRkksQ0FFSSxpQkFGSixFQUV3QixPQUZ4QixDQUFQO0FBR0QiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuXG5leHBvcnQgZnVuY3Rpb24gc3BsaWNlVVJMKC4uLmFyZ3M6IHN0cmluZ1tdKTogc3RyaW5nIHtcbiAgcmV0dXJuIEFycmF5LmZyb20oYXJncylcbiAgICAucmVkdWNlKChsYXN0UmVzdWx0LCBjdXJyZW50KSA9PiBsYXN0UmVzdWx0ICsgY3VycmVudClcbiAgICAucmVwbGFjZSgvKFteOl0pKFxcLykrKC4pL2csIGAkMS8kM2ApO1xufVxuIl19