UNPKG

@webfaas/webfaas-plugin-packageregistry-npm

Version:
27 lines 742 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const webfaas_core_1 = require("@webfaas/webfaas-core"); class PackageRegistryConfig { constructor(url, httpConfig, token) { if (url) { this.url = url; } else { this.url = "https://registry.npmjs.org"; } if (httpConfig) { this.httpConfig = httpConfig; } else { this.httpConfig = new webfaas_core_1.ClientHTTPConfig(); } if (token) { this.token = token; } else { this.token = ""; } } } exports.PackageRegistryConfig = PackageRegistryConfig; //# sourceMappingURL=PackageRegistryConfig.js.map