typings-core
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -141,3 +141,3 @@ "use strict"; | ||
}, | ||
location: url_1.resolve(rc_1.default.registryURL, path) | ||
location: path_2.joinUrl(rc_1.default.registryURL, path) | ||
}; | ||
@@ -144,0 +144,0 @@ } |
@@ -7,2 +7,3 @@ import { ResolutionMap } from '../interfaces'; | ||
export declare function normalizeSlashes(path: string): string; | ||
export declare function joinUrl(from: string, to: string): string; | ||
export declare function resolveFrom(from: string, to: string): string; | ||
@@ -9,0 +10,0 @@ export declare function relativeTo(from: string, to: string): string; |
@@ -26,2 +26,6 @@ "use strict"; | ||
exports.normalizeSlashes = normalizeSlashes; | ||
function joinUrl(from, to) { | ||
return from.replace(/\/$/, '') + "/" + to.replace(/^\//, ''); | ||
} | ||
exports.joinUrl = joinUrl; | ||
function resolveFrom(from, to) { | ||
@@ -28,0 +32,0 @@ if (isHttp(to)) { |
"use strict"; | ||
var Promise = require('any-promise'); | ||
var url_1 = require('url'); | ||
var path_1 = require('./utils/path'); | ||
var fs_1 = require('./utils/fs'); | ||
@@ -11,3 +11,3 @@ var parse_1 = require('./utils/parse'); | ||
var path = "entries/" + encodeURIComponent(meta.source) + "/" + encodeURIComponent(meta.name); | ||
return resolve(fs_1.readJsonFrom(url_1.resolve(rc_1.default.registryURL, path))); | ||
return resolve(fs_1.readJsonFrom(path_1.joinUrl(rc_1.default.registryURL, path))); | ||
}); | ||
@@ -23,3 +23,3 @@ } | ||
} | ||
return resolve(fs_1.readJsonFrom(url_1.resolve(rc_1.default.registryURL, path))); | ||
return resolve(fs_1.readJsonFrom(path_1.joinUrl(rc_1.default.registryURL, path))); | ||
}); | ||
@@ -26,0 +26,0 @@ } |
{ | ||
"name": "typings-core", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "The logic of Typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/typings.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303885
2647