@nteract/actions
Advanced tools
Comparing version 2.10.0-alpha.0 to 2.10.0
@@ -89,5 +89,3 @@ import { | ||
expect( | ||
actions.unhideAll({ outputHidden: false, contentRef }) | ||
).toEqual({ | ||
expect(actions.unhideAll({ outputHidden: false, contentRef })).toEqual({ | ||
type: actionTypes.UNHIDE_ALL, | ||
@@ -101,5 +99,3 @@ payload: { | ||
expect( | ||
actions.unhideAll({ inputHidden: false, contentRef }) | ||
).toEqual({ | ||
expect(actions.unhideAll({ inputHidden: false, contentRef })).toEqual({ | ||
type: actionTypes.UNHIDE_ALL, | ||
@@ -113,5 +109,3 @@ payload: { | ||
expect( | ||
actions.unhideAll({ contentRef }) | ||
).toEqual({ | ||
expect(actions.unhideAll({ contentRef })).toEqual({ | ||
type: actionTypes.UNHIDE_ALL, | ||
@@ -256,8 +250,8 @@ payload: { | ||
describe("setKernelspecInfo", () => { | ||
test("creates a SET_KERNELSPEC_INFO action", () => { | ||
describe("setKernelMetadata", () => { | ||
test("creates a SET_KERNEL_METADATA action", () => { | ||
const kernelInfo = { name: "japanese" }; | ||
const contentRef = createContentRef(); | ||
expect(actions.setKernelspecInfo({ kernelInfo, contentRef })).toEqual({ | ||
type: actionTypes.SET_KERNELSPEC_INFO, | ||
expect(actions.setKernelMetadata({ kernelInfo, contentRef })).toEqual({ | ||
type: actionTypes.SET_KERNEL_METADATA, | ||
payload: { | ||
@@ -264,0 +258,0 @@ contentRef, |
@@ -19,5 +19,5 @@ import { ContentRef, KernelspecProps } from "@nteract/types"; | ||
}) => actionTypes.FetchKernelspecsFailed; | ||
export declare function setKernelspecInfo(payload: { | ||
export declare function setKernelMetadata(payload: { | ||
kernelInfo: any; | ||
contentRef: ContentRef; | ||
}): actionTypes.SetKernelspecInfo; | ||
}): actionTypes.SetKernelMetadata; |
@@ -25,8 +25,8 @@ "use strict"; | ||
// for the notebook document | ||
function setKernelspecInfo(payload) { | ||
function setKernelMetadata(payload) { | ||
return { | ||
type: actionTypes.SET_KERNELSPEC_INFO, | ||
type: actionTypes.SET_KERNEL_METADATA, | ||
payload | ||
}; | ||
} | ||
exports.setKernelspecInfo = setKernelspecInfo; | ||
exports.setKernelMetadata = setKernelMetadata; |
@@ -1,2 +0,2 @@ | ||
import { ContentRef, HostRef, KernelspecInfo, KernelspecProps, KernelspecsRef } from "@nteract/types"; | ||
import { ContentRef, HostRef, KernelspecProps, KernelspecRecord, KernelspecsRef } from "@nteract/types"; | ||
export declare const FETCH_KERNELSPECS = "CORE/FETCH_KERNELSPECS"; | ||
@@ -30,9 +30,9 @@ export interface FetchKernelspecs { | ||
} | ||
export declare const SET_KERNELSPEC_INFO = "SET_KERNELSPEC_INFO"; | ||
export interface SetKernelspecInfo { | ||
type: "SET_KERNELSPEC_INFO"; | ||
export declare const SET_KERNEL_METADATA = "SET_KERNEL_METADATA"; | ||
export interface SetKernelMetadata { | ||
type: "SET_KERNEL_METADATA"; | ||
payload: { | ||
kernelInfo: KernelspecInfo; | ||
kernelInfo: KernelspecRecord; | ||
contentRef: ContentRef; | ||
}; | ||
} |
@@ -6,4 +6,2 @@ "use strict"; | ||
exports.FETCH_KERNELSPECS_FAILED = "CORE/FETCH_KERNELSPECS_FAILED"; | ||
// "legacy" action that pushes kernelspec info back up | ||
// for the notebook document | ||
exports.SET_KERNELSPEC_INFO = "SET_KERNELSPEC_INFO"; | ||
exports.SET_KERNEL_METADATA = "SET_KERNEL_METADATA"; |
{ | ||
"name": "@nteract/actions", | ||
"version": "2.10.0-alpha.0", | ||
"version": "2.10.0", | ||
"description": "A collection of actions", | ||
@@ -16,9 +16,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@nteract/commutable": "^7.2.0-alpha.0", | ||
"@nteract/messaging": "^6.2.1-alpha.0", | ||
"@nteract/types": "^4.4.3-alpha.0", | ||
"@nteract/commutable": "^7.2.0", | ||
"@nteract/messaging": "^6.2.1", | ||
"@nteract/types": "^4.4.3", | ||
"immutable": "^4.0.0-rc.12", | ||
"rx-jupyter": "^5.4.6-alpha.0" | ||
"rx-jupyter": "^5.4.6" | ||
}, | ||
"gitHead": "da3ca70a37be9970dc1d6afa7b3518a0f53a9ae7" | ||
"gitHead": "fbd63230a3712a82cf97e05aa445aa986c6ddd1f" | ||
} |
@@ -38,10 +38,10 @@ import { | ||
// for the notebook document | ||
export function setKernelspecInfo(payload: { | ||
export function setKernelMetadata(payload: { | ||
kernelInfo: any; | ||
contentRef: ContentRef; | ||
}): actionTypes.SetKernelspecInfo { | ||
}): actionTypes.SetKernelMetadata { | ||
return { | ||
type: actionTypes.SET_KERNELSPEC_INFO, | ||
type: actionTypes.SET_KERNEL_METADATA, | ||
payload | ||
}; | ||
} |
import { | ||
ContentRef, | ||
HostRef, | ||
KernelspecInfo, | ||
KernelspecProps, | ||
KernelspecRecord, | ||
KernelspecsRef | ||
@@ -38,11 +38,9 @@ } from "@nteract/types"; | ||
// "legacy" action that pushes kernelspec info back up | ||
// for the notebook document | ||
export const SET_KERNELSPEC_INFO = "SET_KERNELSPEC_INFO"; | ||
export interface SetKernelspecInfo { | ||
type: "SET_KERNELSPEC_INFO"; | ||
export const SET_KERNEL_METADATA = "SET_KERNEL_METADATA"; | ||
export interface SetKernelMetadata { | ||
type: "SET_KERNEL_METADATA"; | ||
payload: { | ||
kernelInfo: KernelspecInfo; | ||
kernelInfo: KernelspecRecord; | ||
contentRef: ContentRef; | ||
}; | ||
} |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
742501
5474
Updated@nteract/commutable@^7.2.0
Updated@nteract/messaging@^6.2.1
Updated@nteract/types@^4.4.3
Updatedrx-jupyter@^5.4.6