@jupyterlab/services
Advanced tools
Comparing version 0.34.2 to 0.34.3
@@ -134,6 +134,2 @@ import { JSONObject } from 'phosphor/lib/algorithm/json'; | ||
format?: string; | ||
/** | ||
* Media attachments (e.g. inline images). | ||
*/ | ||
attachments?: IAttachments; | ||
} | ||
@@ -152,2 +148,6 @@ /** | ||
metadata: IRawCellMetadata; | ||
/** | ||
* Cell attachments. | ||
*/ | ||
attachments?: IAttachments; | ||
} | ||
@@ -162,2 +162,6 @@ /** | ||
cell_type: 'markdown'; | ||
/** | ||
* Cell attachments. | ||
*/ | ||
attachments?: IAttachments; | ||
} | ||
@@ -176,6 +180,2 @@ /** | ||
scrolled?: boolean | 'auto'; | ||
/** | ||
* Media attachments (e.g. inline images). | ||
*/ | ||
attachments?: IAttachments; | ||
} | ||
@@ -182,0 +182,0 @@ /** |
@@ -113,2 +113,7 @@ // Copyright (c) Jupyter Development Team. | ||
exports.jsonToQueryString = jsonToQueryString; | ||
function _getCookie(name) { | ||
// from tornado docs: http://www.tornadoweb.org/en/stable/guide/security.html | ||
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b"); | ||
return r ? r[1] : void 0; | ||
} | ||
/** | ||
@@ -144,2 +149,8 @@ * Asynchronous XMLHTTPRequest handler. | ||
} | ||
if (typeof document !== 'undefined' && document.cookie) { | ||
var xsrfToken = _getCookie('_xsrf'); | ||
if (xsrfToken !== void 0) { | ||
xhr.setRequestHeader('X-XSRFToken', xsrfToken); | ||
} | ||
} | ||
if (ajaxSettings.requestHeaders !== void 0) { | ||
@@ -146,0 +157,0 @@ for (var prop in ajaxSettings.requestHeaders) { |
{ | ||
"name": "@jupyterlab/services", | ||
"version": "0.34.2", | ||
"version": "0.34.3", | ||
"description": "Client APIs for the Jupyter services REST APIs", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"typedoc": "^0.5.0", | ||
"typescript": "^2.0.7", | ||
"typescript": "~2.0.7", | ||
"webpack": "^1.13.1", | ||
@@ -30,0 +30,0 @@ "ws": "^1.0.1", |
Sorry, the diff of this file is too big to display
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
741140
21697