New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jupyterlab/services

Package Overview
Dependencies
Maintainers
16
Versions
403
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyterlab/services - npm Package Compare versions

Comparing version 4.1.0-alpha.1 to 4.1.0-alpha.2

10

lib/contents/index.d.ts

@@ -217,2 +217,5 @@ import { ModelDB } from '@jupyterlab/observables';

* file path on the server.
*
* #### Notes
* The returned URL may include a query parameter.
*/

@@ -347,2 +350,5 @@ getDownloadUrl(path: string): Promise<string>;

* file path on the server.
*
* #### Notes
* The returned URL may include a query parameter.
*/

@@ -527,2 +533,4 @@ getDownloadUrl(localPath: string): Promise<string>;

* It is expected that the path contains no relative paths.
*
* The returned URL may include a query parameter.
*/

@@ -709,2 +717,4 @@ getDownloadUrl(path: string): Promise<string>;

* It is expected that the path contains no relative paths.
*
* The returned URL may include a query parameter.
*/

@@ -711,0 +721,0 @@ getDownloadUrl(localPath: string): Promise<string>;

13

lib/contents/index.js

@@ -189,2 +189,4 @@ "use strict";

* It is expected that the path contains no relative paths.
*
* The returned URL may include a query parameter.
*/

@@ -493,6 +495,15 @@ getDownloadUrl(path) {

* It is expected that the path contains no relative paths.
*
* The returned URL may include a query parameter.
*/
getDownloadUrl(localPath) {
let baseUrl = this.serverSettings.baseUrl;
return Promise.resolve(coreutils_1.URLExt.join(baseUrl, FILES_URL, coreutils_1.URLExt.encodeParts(localPath)));
let url = coreutils_1.URLExt.join(baseUrl, FILES_URL, coreutils_1.URLExt.encodeParts(localPath));
const xsrfTokenMatch = document.cookie.match('\\b_xsrf=([^;]*)\\b');
if (xsrfTokenMatch) {
const fullurl = new URL(url);
fullurl.searchParams.append('_xsrf', xsrfTokenMatch[1]);
url = fullurl.toString();
}
return Promise.resolve(url);
}

@@ -499,0 +510,0 @@ /**

@@ -690,3 +690,3 @@ import { nbformat } from '@jupyterlab/coreutils';

/**
* An `execute_request` message on the `
* An `execute_request` message on the `'shell'` channel.
*/

@@ -781,2 +781,14 @@ interface IExecuteRequestMsg extends IShellMessage<'execute_request'> {

content: {
/**
* The comm target name to filter returned comms
*/
target_name?: string;
/**
* Filter for returned comms
*
* @deprecated - this is a non-standard field. Use target_name instead
*
* #### Notes
* See https://github.com/jupyterlab/jupyterlab/issues/6947
*/
target?: string;

@@ -783,0 +795,0 @@ };

@@ -12,2 +12,13 @@ "use strict";

function createMessage(options) {
// Backwards compatibility workaround for services 4.0 defining the wrong
// comm_info_request content. This should be removed with the deprecated
// `target` content option in services 5.0. See
// https://github.com/jupyterlab/jupyterlab/issues/6947
if (options.msgType === 'comm_info_request') {
const content = options.content;
if (content.target_name === undefined) {
content.target_name = content.target;
}
delete content.target;
}
return {

@@ -14,0 +25,0 @@ buffers: options.buffers || [],

8

package.json
{
"name": "@jupyterlab/services",
"version": "4.1.0-alpha.1",
"version": "4.1.0-alpha.2",
"description": "Client APIs for the Jupyter services REST APIs",

@@ -44,4 +44,4 @@ "keywords": [

"dependencies": {
"@jupyterlab/coreutils": "^3.1.0-alpha.1",
"@jupyterlab/observables": "^2.3.0-alpha.1",
"@jupyterlab/coreutils": "^3.1.0-alpha.2",
"@jupyterlab/observables": "^2.3.0-alpha.2",
"@phosphor/algorithm": "^1.1.3",

@@ -67,3 +67,3 @@ "@phosphor/coreutils": "^1.3.1",

},
"gitHead": "a35d9378bf3b18772212f3cae247daa139da8722"
"gitHead": "4a56efd6860d2a54301eea426b8d9eb2fdc170b0"
}

Sorry, the diff of this file is too big to display

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