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

rx-jupyter

Package Overview
Dependencies
Maintainers
16
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rx-jupyter - npm Package Compare versions

Comparing version 5.3.2 to 5.3.3

10

lib/base.d.ts
import { AjaxRequest, AjaxResponse } from "rxjs/ajax";
import { ServerConfig } from "@nteract/types";
export declare const normalizeBaseURL: (url?: string) => string;
export interface ServerConfig {
endpoint?: string;
url?: string;
token?: string;
xsrfToken?: string;
crossDomain?: boolean;
ajaxOptions?: Partial<AjaxRequest>;
wsProtocol?: string | string[];
}
/**

@@ -13,0 +5,0 @@ * Creates an AJAX request to connect to a given server. This function

@@ -6,5 +6,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module rx-jupyter
*/
/** tslint:disable:jsdoc-format */

@@ -11,0 +8,0 @@ const js_cookie_1 = __importDefault(require("js-cookie"));

@@ -1,8 +0,4 @@

/**
* @module rx-jupyter
*/
import { BookstoreDataModel } from "@nteract/types";
import { BookstoreDataModel, ServerConfig } from "@nteract/types";
import { Observable } from "rxjs";
import { AjaxResponse } from "rxjs/ajax";
import { ServerConfig } from "./base";
/**

@@ -9,0 +5,0 @@ * Creates an AjaxObservable for publishing content to `Bookstore`

6

lib/contents.d.ts

@@ -1,8 +0,6 @@

/**
* @module rx-jupyter
*/
import { Notebook } from "@nteract/commutable";
import { Observable } from "rxjs";
import { AjaxResponse } from "rxjs/ajax";
import { JupyterAjaxResponse, ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
import { JupyterAjaxResponse } from "./base";
export declare type FileType = "directory" | "file" | "notebook";

@@ -9,0 +7,0 @@ /*********************************************

@@ -1,7 +0,3 @@

/**
* @module rx-jupyter
*/
import { AjaxResponse } from "rxjs/ajax";
import { ServerConfig as _ServerConfig } from "./base";
export declare type ServerConfig = _ServerConfig;
import { ServerConfig } from "@nteract/types";
import { Observable } from "rxjs";

@@ -21,3 +17,3 @@ import * as bookstore from "./bookstore";

*/
export declare const apiVersion: (serverConfig: _ServerConfig) => Observable<AjaxResponse>;
export declare const apiVersion: (serverConfig: ServerConfig) => Observable<AjaxResponse>;
/**

@@ -30,3 +26,3 @@ * Creates an AjaxObservable for shutting down a notebook server.

*/
export declare const shutdown: (serverConfig: _ServerConfig) => Observable<AjaxResponse>;
export declare const shutdown: (serverConfig: ServerConfig) => Observable<AjaxResponse>;
export { kernels, kernelspecs, sessions, bookstore, contents, terminals };

@@ -10,5 +10,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module rx-jupyter
*/
const ajax_1 = require("rxjs/ajax");

@@ -15,0 +12,0 @@ const base_1 = require("./base");

@@ -1,6 +0,3 @@

/**
* @module rx-jupyter
*/
import { Subject } from "rxjs";
import { ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
/**

@@ -7,0 +4,0 @@ * Creates an AjaxObservable for listing running kernels.

@@ -6,5 +6,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module rx-jupyter
*/
const rxjs_1 = require("rxjs");

@@ -11,0 +8,0 @@ const ajax_1 = require("rxjs/ajax");

@@ -1,7 +0,4 @@

/**
* @module rx-jupyter
*/
import { Observable } from "rxjs";
import { AjaxResponse } from "rxjs/ajax";
import { ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
/**

@@ -8,0 +5,0 @@ * Creates an AjaxObservable for listing avaialble kernelspecs.

@@ -1,7 +0,4 @@

/**
* @module rx-jupyter
*/
import { Observable } from "rxjs";
import { AjaxResponse } from "rxjs/ajax";
import { ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
/**

@@ -8,0 +5,0 @@ * Creates an AjaxObservable for listing available sessions.

@@ -1,7 +0,4 @@

/**
* @module rx-jupyter
*/
import { Observable } from "rxjs";
import { AjaxResponse } from "rxjs/ajax";
import { ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
/**

@@ -8,0 +5,0 @@ * List all available running terminals.

{
"name": "rx-jupyter",
"version": "5.3.2",
"version": "5.3.3",
"description": "RxJS 5 bindings for the Jupyter Notebook API",

@@ -21,4 +21,4 @@ "main": "lib/index.js",

"dependencies": {
"@nteract/commutable": "^7.1.3",
"@nteract/messaging": "^6.1.2",
"@nteract/commutable": "^7.1.4",
"@nteract/messaging": "^6.1.3",
"js-cookie": "^2.2.0",

@@ -30,2 +30,3 @@ "rxjs": "^6.3.3",

"devDependencies": {
"@nteract/types": "^4.4.0",
"@types/js-cookie": "^2.2.0",

@@ -35,3 +36,3 @@ "@types/url-join": "^4.0.0",

},
"gitHead": "1c68a935dceeeae515f9decc81c6194798a86164"
"gitHead": "81f0f5c66e0b9ab194719cb0c09eaf7329cd623c"
}

@@ -1,20 +0,8 @@

/**
* @module rx-jupyter
*/
/** tslint:disable:jsdoc-format */
import Cookies from "js-cookie";
import { AjaxRequest, AjaxResponse } from "rxjs/ajax";
import { ServerConfig } from "@nteract/types";
export const normalizeBaseURL = (url = "") => url.replace(/\/+$/, "");
export interface ServerConfig {
endpoint?: string;
url?: string;
token?: string;
xsrfToken?: string;
crossDomain?: boolean;
ajaxOptions?: Partial<AjaxRequest>;
wsProtocol?: string | string[];
}
/**

@@ -21,0 +9,0 @@ * Creates an AJAX request to connect to a given server. This function

@@ -1,6 +0,3 @@

/**
* @module rx-jupyter
*/
// Vendor modules
import { BookstoreDataModel } from "@nteract/types";
import { BookstoreDataModel, ServerConfig } from "@nteract/types";
import { Observable } from "rxjs";

@@ -11,3 +8,3 @@ import { ajax, AjaxResponse } from "rxjs/ajax";

// Local modules
import { createAJAXSettings, ServerConfig } from "./base";
import { createAJAXSettings } from "./base";

@@ -14,0 +11,0 @@ const formURI = (path: string) => urljoin("/api/bookstore/published", path);

@@ -1,10 +0,8 @@

/**
* @module rx-jupyter
*/
import { Notebook } from "@nteract/commutable";
import querystring from "querystring";
import { Observable } from "rxjs";
import { ajax, AjaxRequest, AjaxResponse } from "rxjs/ajax";
import { ajax, AjaxResponse } from "rxjs/ajax";
import urljoin from "url-join";
import { createAJAXSettings, JupyterAjaxResponse, ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
import { createAJAXSettings, JupyterAjaxResponse } from "./base";

@@ -11,0 +9,0 @@ const formURI = (path: string) => urljoin("/api/contents/", path);

@@ -1,10 +0,5 @@

/**
* @module rx-jupyter
*/
import { ajax, AjaxResponse } from "rxjs/ajax";
import { createAJAXSettings, ServerConfig as _ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
import { createAJAXSettings } from "./base";
// Workaround an issue with re-exporting an interface by type aliasing it
export type ServerConfig = _ServerConfig;
import { Observable } from "rxjs";

@@ -11,0 +6,0 @@ import * as bookstore from "./bookstore";

@@ -1,4 +0,1 @@

/**
* @module rx-jupyter
*/
import { Subject, Subscriber } from "rxjs";

@@ -10,4 +7,5 @@ import { ajax } from "rxjs/ajax";

import URLSearchParams from "url-search-params";
import { createAJAXSettings, ServerConfig } from "./base";
import { createAJAXSettings } from "./base";
import { ServerConfig } from "@nteract/types";
import { JupyterMessage } from "@nteract/messaging";

@@ -14,0 +12,0 @@

@@ -1,7 +0,5 @@

/**
* @module rx-jupyter
*/
import { Observable } from "rxjs";
import { ajax, AjaxResponse } from "rxjs/ajax";
import { createAJAXSettings, ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
import { createAJAXSettings } from "./base";

@@ -8,0 +6,0 @@ /**

@@ -1,7 +0,5 @@

/**
* @module rx-jupyter
*/
import { Observable } from "rxjs";
import { ajax, AjaxResponse } from "rxjs/ajax";
import { createAJAXSettings, ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
import { createAJAXSettings } from "./base";

@@ -8,0 +6,0 @@ /**

@@ -1,4 +0,1 @@

/**
* @module rx-jupyter
*/
import { Observable } from "rxjs";

@@ -8,3 +5,4 @@ import { ajax, AjaxResponse } from "rxjs/ajax";

import { createAJAXSettings, normalizeBaseURL, ServerConfig } from "./base";
import { ServerConfig } from "@nteract/types";
import { createAJAXSettings, normalizeBaseURL } from "./base";

@@ -11,0 +9,0 @@ const formURI = (path: string) => urljoin("/api/terminals/", path);

@@ -8,3 +8,3 @@ {

"include": ["src"],
"references": [{ "path": "../commutable" }, { "path": "../messaging" }]
"references": [{ "path": "../commutable" }, { "path": "../messaging" }, { "path": "../types" }]
}
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