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

@nteract/actions

Package Overview
Dependencies
Maintainers
16
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nteract/actions - npm Package Compare versions

Comparing version 2.10.0-alpha.0 to 2.10.0

20

__tests__/actions-spec.ts

@@ -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

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