@nteract/actions
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -194,3 +194,4 @@ import { | ||
contentRef, | ||
selectNextKernel: false | ||
selectNextKernel: false, | ||
opts: { headers: { "Content-Type": "application/json" } } | ||
}) | ||
@@ -204,3 +205,4 @@ ).toEqual({ | ||
contentRef, | ||
selectNextKernel: false | ||
selectNextKernel: false, | ||
opts: { headers: { "Content-Type": "application/json" } } | ||
} | ||
@@ -643,2 +645,18 @@ }); | ||
test("creates a SAVE action with opts", () => { | ||
const contentRef = createContentRef(); | ||
expect( | ||
actions.save({ | ||
contentRef, | ||
opts: { headers: { "Content-Type": "application/json" } } | ||
}) | ||
).toEqual({ | ||
type: actionTypes.SAVE, | ||
payload: { | ||
contentRef, | ||
opts: { headers: { "Content-Type": "application/json" } } | ||
} | ||
}); | ||
}); | ||
test("creates a SAVE_AS action", () => { | ||
@@ -645,0 +663,0 @@ const contentRef = createContentRef(); |
@@ -8,5 +8,6 @@ /** | ||
export declare const changeContentName: (payload: { | ||
contentRef: string; | ||
filepath: string; | ||
contentRef: string; | ||
prevFilePath: string; | ||
opts?: object | undefined; | ||
}) => actionTypes.ChangeContentName; | ||
@@ -30,2 +31,3 @@ export declare const changeContentNameFulfilled: (payload: { | ||
contentRef: string; | ||
opts?: object | undefined; | ||
}) => actionTypes.FetchContent; | ||
@@ -48,5 +50,3 @@ export declare const fetchContentFulfilled: (payload: { | ||
}): actionTypes.ChangeFilenameAction; | ||
export declare function downloadContent(payload: { | ||
contentRef: ContentRef; | ||
}): actionTypes.DownloadContent; | ||
export declare function downloadContent(payload: actionTypes.DownloadContent["payload"]): actionTypes.DownloadContent; | ||
export declare function downloadContentFailed(payload: { | ||
@@ -58,5 +58,3 @@ contentRef: ContentRef; | ||
}): actionTypes.DownloadContentFulfilled; | ||
export declare function save(payload: { | ||
contentRef: ContentRef; | ||
}): actionTypes.Save; | ||
export declare function save(payload: actionTypes.Save["payload"]): actionTypes.Save; | ||
export declare function saveAs(payload: { | ||
@@ -63,0 +61,0 @@ filepath: string; |
@@ -25,14 +25,4 @@ /** | ||
}): actionTypes.LaunchKernelAction; | ||
export declare function changeKernelByName(payload: { | ||
kernelSpecName: any; | ||
oldKernelRef?: KernelRef | null; | ||
contentRef: ContentRef; | ||
}): actionTypes.ChangeKernelByName; | ||
export declare function launchKernelByName(payload: { | ||
kernelSpecName: any; | ||
cwd: string; | ||
kernelRef: KernelRef; | ||
selectNextKernel: boolean; | ||
contentRef: ContentRef; | ||
}): actionTypes.LaunchKernelByNameAction; | ||
export declare function changeKernelByName(payload: actionTypes.ChangeKernelByName["payload"]): actionTypes.ChangeKernelByName; | ||
export declare function launchKernelByName(payload: actionTypes.LaunchKernelByNameAction["payload"]): actionTypes.LaunchKernelByNameAction; | ||
export declare function kernelRawStdout(payload: { | ||
@@ -46,6 +36,3 @@ text: string; | ||
}): actionTypes.KernelRawStderr; | ||
export declare function killKernel(payload: { | ||
restarting: boolean; | ||
kernelRef?: KernelRef | null; | ||
}): actionTypes.KillKernelAction; | ||
export declare function killKernel(payload: actionTypes.KillKernelAction["payload"]): actionTypes.KillKernelAction; | ||
export declare function killKernelFailed(payload: { | ||
@@ -58,5 +45,3 @@ error: Error; | ||
}): actionTypes.KillKernelSuccessful; | ||
export declare function interruptKernel(payload: { | ||
kernelRef?: KernelRef | null; | ||
}): actionTypes.InterruptKernel; | ||
export declare function interruptKernel(payload: actionTypes.InterruptKernel["payload"]): actionTypes.InterruptKernel; | ||
export declare function interruptKernelSuccessful(payload: { | ||
@@ -63,0 +48,0 @@ kernelRef?: KernelRef | null; |
@@ -9,2 +9,3 @@ /** | ||
hostRef: string; | ||
opts?: object | undefined; | ||
}) => actionTypes.FetchKernelspecs; | ||
@@ -11,0 +12,0 @@ export declare const fetchKernelspecsFulfilled: (payload: { |
@@ -12,2 +12,3 @@ /** | ||
prevFilePath: string; | ||
opts?: object; | ||
}; | ||
@@ -43,2 +44,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -74,2 +76,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -96,2 +99,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -98,0 +102,0 @@ } |
@@ -75,2 +75,3 @@ /** | ||
kernelRef?: KernelRef | null; | ||
opts?: object; | ||
}; | ||
@@ -100,2 +101,3 @@ } | ||
kernelRef?: KernelRef | null; | ||
opts?: object; | ||
}; | ||
@@ -165,2 +167,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -177,2 +180,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -179,0 +183,0 @@ } |
@@ -11,2 +11,3 @@ /** | ||
hostRef: HostRef; | ||
opts?: object; | ||
}; | ||
@@ -13,0 +14,0 @@ } |
{ | ||
"name": "@nteract/actions", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A collection of actions", | ||
@@ -20,5 +20,5 @@ "main": "lib/index.js", | ||
"immutable": "^4.0.0-rc.12", | ||
"rx-jupyter": "^5.0.3" | ||
"rx-jupyter": "^5.0.4" | ||
}, | ||
"gitHead": "f0674a4a768f63931c28077b4737395d2765e7f7" | ||
"gitHead": "8f86648c6e4523f1dd5dd532e9c8f2c1105d6827" | ||
} |
@@ -10,7 +10,5 @@ /** | ||
export const changeContentName = (payload: { | ||
filepath: string; | ||
contentRef: ContentRef; | ||
prevFilePath: string; | ||
}): actionTypes.ChangeContentName => ({ | ||
export const changeContentName = ( | ||
payload: actionTypes.ChangeContentName["payload"] | ||
): actionTypes.ChangeContentName => ({ | ||
type: actionTypes.CHANGE_CONTENT_NAME, | ||
@@ -78,5 +76,5 @@ payload | ||
export function downloadContent(payload: { | ||
contentRef: ContentRef; | ||
}): actionTypes.DownloadContent { | ||
export function downloadContent( | ||
payload: actionTypes.DownloadContent["payload"] | ||
): actionTypes.DownloadContent { | ||
return { | ||
@@ -106,3 +104,3 @@ type: actionTypes.DOWNLOAD_CONTENT, | ||
export function save(payload: { contentRef: ContentRef }): actionTypes.Save { | ||
export function save(payload: actionTypes.Save["payload"]): actionTypes.Save { | ||
return { | ||
@@ -109,0 +107,0 @@ type: actionTypes.SAVE, |
@@ -52,7 +52,5 @@ /** | ||
export function changeKernelByName(payload: { | ||
kernelSpecName: any; | ||
oldKernelRef?: KernelRef | null; | ||
contentRef: ContentRef; | ||
}): actionTypes.ChangeKernelByName { | ||
export function changeKernelByName( | ||
payload: actionTypes.ChangeKernelByName["payload"] | ||
): actionTypes.ChangeKernelByName { | ||
return { | ||
@@ -64,9 +62,5 @@ type: actionTypes.CHANGE_KERNEL_BY_NAME, | ||
export function launchKernelByName(payload: { | ||
kernelSpecName: any; | ||
cwd: string; | ||
kernelRef: KernelRef; | ||
selectNextKernel: boolean; | ||
contentRef: ContentRef; | ||
}): actionTypes.LaunchKernelByNameAction { | ||
export function launchKernelByName( | ||
payload: actionTypes.LaunchKernelByNameAction["payload"] | ||
): actionTypes.LaunchKernelByNameAction { | ||
return { | ||
@@ -98,6 +92,5 @@ type: actionTypes.LAUNCH_KERNEL_BY_NAME, | ||
export function killKernel(payload: { | ||
restarting: boolean; | ||
kernelRef?: KernelRef | null; | ||
}): actionTypes.KillKernelAction { | ||
export function killKernel( | ||
payload: actionTypes.KillKernelAction["payload"] | ||
): actionTypes.KillKernelAction { | ||
return { | ||
@@ -129,5 +122,5 @@ type: actionTypes.KILL_KERNEL, | ||
export function interruptKernel(payload: { | ||
kernelRef?: KernelRef | null; | ||
}): actionTypes.InterruptKernel { | ||
export function interruptKernel( | ||
payload: actionTypes.InterruptKernel["payload"] | ||
): actionTypes.InterruptKernel { | ||
return { | ||
@@ -134,0 +127,0 @@ type: actionTypes.INTERRUPT_KERNEL, |
@@ -13,6 +13,5 @@ /** | ||
export const fetchKernelspecs = (payload: { | ||
kernelspecsRef: KernelspecsRef; | ||
hostRef: HostRef; | ||
}): actionTypes.FetchKernelspecs => ({ | ||
export const fetchKernelspecs = ( | ||
payload: actionTypes.FetchKernelspecs["payload"] | ||
): actionTypes.FetchKernelspecs => ({ | ||
type: actionTypes.FETCH_KERNELSPECS, | ||
@@ -19,0 +18,0 @@ payload |
@@ -13,2 +13,3 @@ /** | ||
prevFilePath: string; | ||
opts?: object; | ||
}; | ||
@@ -48,2 +49,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -82,2 +84,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -103,2 +106,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -105,0 +109,0 @@ } |
@@ -91,2 +91,3 @@ /** | ||
kernelRef?: KernelRef | null; | ||
opts?: object; | ||
}; | ||
@@ -119,2 +120,3 @@ } | ||
kernelRef?: KernelRef | null; | ||
opts?: object; | ||
}; | ||
@@ -191,2 +193,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -204,2 +207,3 @@ } | ||
contentRef: ContentRef; | ||
opts?: object; | ||
}; | ||
@@ -206,0 +210,0 @@ } |
@@ -18,2 +18,3 @@ /** | ||
hostRef: HostRef; | ||
opts?: object; | ||
}; | ||
@@ -20,0 +21,0 @@ } |
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
172142
4978
Updatedrx-jupyter@^5.0.4