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

typings-core

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typings-core - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

dist/utils/parse.js

@@ -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

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