This repository was archived by the owner on Aug 30, 2022. It is now read-only.
File tree 3 files changed +5
-8
lines changed
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jupyter-js-services" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.1.0 " ,
4
4
"description" : " Client APIs for the Jupyter services REST APIs" ,
5
5
"main" : " lib/index.js" ,
6
6
"typings" : " lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ interface IContentsOpts {
38
38
format ?: string ;
39
39
40
40
/**
41
- * The file contents , or whether to include the file contents.
41
+ * The file content , or whether to include the file contents.
42
42
*
43
43
* #### Notes
44
- * Can either contain the contents of a file for upload, or a boolean
44
+ * Can either contain the content of a file for upload, or a boolean
45
45
* indicating whether to include contents in the response.
46
46
*/
47
- content ?: string | boolean ;
47
+ content ?: any ;
48
48
49
49
/**
50
50
* The file extension, including a leading `.`.
@@ -118,7 +118,7 @@ interface IContentsModel {
118
118
/**
119
119
* The file content.
120
120
*/
121
- content ?: string ;
121
+ content ?: any ;
122
122
123
123
/**
124
124
* The format of the file `content`.
Original file line number Diff line number Diff line change @@ -36,14 +36,12 @@ export
36
36
function validateCommMessage ( msg : IKernelMessage ) : boolean {
37
37
for ( var i = 0 ; i < COMM_FIELDS . length ; i ++ ) {
38
38
if ( ! msg . content . hasOwnProperty ( COMM_FIELDS [ i ] ) ) {
39
- console . log ( '*****invalid' , COMM_FIELDS [ i ] ) ;
40
39
return false ;
41
40
}
42
41
}
43
42
if ( msg . header . msg_type === 'comm_open' ) {
44
43
if ( ! msg . content . hasOwnProperty ( 'target_name' ) ||
45
44
typeof msg . content . target_name !== 'string' ) {
46
- console . log ( '***TARGET NAME' ) ;
47
45
return false ;
48
46
}
49
47
if ( msg . content . hasOwnProperty ( 'target_module' ) &&
@@ -53,7 +51,6 @@ function validateCommMessage(msg: IKernelMessage): boolean {
53
51
}
54
52
}
55
53
if ( typeof msg . content . comm_id !== 'string' ) {
56
- console . log ( "COMM_ID" )
57
54
return false ;
58
55
}
59
56
return true ;
You can’t perform that action at this time.
0 commit comments