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

@jupyterlab/coreutils

Package Overview
Dependencies
Maintainers
8
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/coreutils - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

lib/url.d.ts

@@ -47,2 +47,6 @@ import { JSONObject } from '@phosphor/coreutils';

* Test whether the url is a local url.
*
* #### Notes
* This function returns `false` for any fully qualified url, including
* `data:`, `file:`, and `//` protocol URLs.
*/

@@ -49,0 +53,0 @@ function isLocal(url: string): boolean;

8

lib/url.js

@@ -87,8 +87,12 @@ "use strict";

* Test whether the url is a local url.
*
* #### Notes
* This function returns `false` for any fully qualified url, including
* `data:`, `file:`, and `//` protocol URLs.
*/
function isLocal(url) {
var _a = parse(url), host = _a.host, protocol = _a.protocol;
return protocol !== 'data:' && host === location.host || host === '';
var protocol = parse(url).protocol;
return url.toLowerCase().indexOf(protocol) !== 0 && url.indexOf('//') !== 0;
}
URLExt.isLocal = isLocal;
})(URLExt = exports.URLExt || (exports.URLExt = {}));
{
"name": "@jupyterlab/coreutils",
"version": "1.0.6",
"version": "1.0.7",
"description": "JupyterLab - Core Utilities",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/jupyterlab/jupyterlab",

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