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

@nteract/actions

Package Overview
Dependencies
Maintainers
15
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.4.0 to 2.5.0

lib/actions/hosts.d.ts

5

lib/actions/contents.d.ts

@@ -5,4 +5,7 @@ /**

import { ContentRef, KernelRef, KernelspecInfo } from "@nteract/types";
import { contents } from "rx-jupyter";
import * as actionTypes from "../actionTypes";
import { contents } from "rx-jupyter";
export declare const toggleHeaderEditor: (payload: {
contentRef: string;
}) => actionTypes.ToggleHeaderEditor;
export declare const changeContentName: (payload: {

@@ -9,0 +12,0 @@ filepath: string;

@@ -10,3 +10,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
// Local modules
const actionTypes = __importStar(require("../actionTypes"));
exports.toggleHeaderEditor = (payload) => ({
type: actionTypes.TOGGLE_HEADER_EDITOR,
payload
});
exports.changeContentName = (payload) => ({

@@ -13,0 +18,0 @@ type: actionTypes.CHANGE_CONTENT_NAME,

6

lib/actions/index.d.ts

@@ -5,6 +5,7 @@ /**

import { CellId, JSONObject, MediaBundle, OnDiskOutput } from "@nteract/commutable";
import { ContentRef, HeaderDataProps, KernelRef, LanguageInfoMetadata, PayloadMessage } from "@nteract/types";
import * as actionTypes from "../actionTypes";
import { ContentRef, KernelRef, LanguageInfoMetadata, PayloadMessage } from "@nteract/types";
export * from "./cells";
export * from "./contents";
export * from "./hosts";
export * from "./kernels";

@@ -60,2 +61,5 @@ export * from "./kernelspecs";

}): actionTypes.OverwriteMetadataField;
export declare function overwriteMetadataFields(payload: Partial<HeaderDataProps> & Partial<{
contentRef: ContentRef;
}>): actionTypes.OverwriteMetadataFields;
export declare function deleteMetadataField(payload: {

@@ -62,0 +66,0 @@ field: string;

"use strict";
/**
* @module actions
*/
function __export(m) {

@@ -13,5 +16,7 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];

Object.defineProperty(exports, "__esModule", { value: true });
// Local modules
const actionTypes = __importStar(require("../actionTypes"));
__export(require("./cells"));
__export(require("./contents"));
__export(require("./hosts"));
__export(require("./kernels"));

@@ -41,2 +46,9 @@ __export(require("./kernelspecs"));

exports.overwriteMetadataField = overwriteMetadataField;
function overwriteMetadataFields(payload) {
return {
type: actionTypes.OVERWRITE_METADATA_FIELDS,
payload
};
}
exports.overwriteMetadataFields = overwriteMetadataFields;
function deleteMetadataField(payload) {

@@ -43,0 +55,0 @@ return {

@@ -5,2 +5,9 @@ /**

import { ContentRef, KernelRef, KernelspecInfo } from "@nteract/types";
export declare const TOGGLE_HEADER_EDITOR = "CORE/TOGGLE_HEADER_EDITOR";
export interface ToggleHeaderEditor {
type: "CORE/TOGGLE_HEADER_EDITOR";
payload: {
contentRef: ContentRef;
};
}
export declare const CHANGE_CONTENT_NAME = "CORE/CHANGE_CONTENT_NAME";

@@ -7,0 +14,0 @@ export interface ChangeContentName {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TOGGLE_HEADER_EDITOR = "CORE/TOGGLE_HEADER_EDITOR";
exports.CHANGE_CONTENT_NAME = "CORE/CHANGE_CONTENT_NAME";

@@ -4,0 +5,0 @@ exports.CHANGE_CONTENT_NAME_FULFILLED = "CORE/CHANGE_CONTENT_NAME_FULFILLED";

@@ -5,3 +5,3 @@ /**

import { CellId, JSONObject, MediaBundle, OnDiskOutput } from "@nteract/commutable";
import { ContentRef, HostRef, KernelRef, PayloadMessage } from "@nteract/types";
import { ContentRef, HeaderDataProps, HostRef, KernelRef, PayloadMessage } from "@nteract/types";
import { HostRecord } from "@nteract/types";

@@ -12,4 +12,12 @@ import { LanguageInfoMetadata } from "@nteract/types";

export * from "./contents";
export * from "./hosts";
export * from "./kernels";
export * from "./kernelspecs";
export declare const OVERWRITE_METADATA_FIELDS = "CORE/OVERWRITE_METADATA_FIELDS";
export interface OverwriteMetadataFields {
type: "CORE/OVERWRITE_METADATA_FIELDS";
payload: Partial<HeaderDataProps> & Partial<{
contentRef: ContentRef;
}>;
}
export interface ErrorAction<T extends string> {

@@ -16,0 +24,0 @@ type: T;

"use strict";
/**
* @module actions
*/
function __export(m) {

@@ -8,4 +11,6 @@ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];

__export(require("./contents"));
__export(require("./hosts"));
__export(require("./kernels"));
__export(require("./kernelspecs"));
exports.OVERWRITE_METADATA_FIELDS = "CORE/OVERWRITE_METADATA_FIELDS";
exports.OPEN_MODAL = "CORE/OPEN_MODAL";

@@ -12,0 +17,0 @@ exports.CLOSE_MODAL = "CORE/CLOSE_MODAL";

{
"name": "@nteract/actions",
"version": "2.4.0",
"version": "2.5.0",
"description": "A collection of actions",

@@ -16,9 +16,9 @@ "main": "lib/index.js",

"dependencies": {
"@nteract/commutable": "^7.1.0",
"@nteract/messaging": "^6.0.4",
"@nteract/types": "^4.1.0",
"@nteract/commutable": "^7.1.1",
"@nteract/messaging": "^6.0.5",
"@nteract/types": "^4.2.0",
"immutable": "^4.0.0-rc.12",
"rx-jupyter": "^5.1.0"
"rx-jupyter": "^5.2.0"
},
"gitHead": "f63a01c4067b05541ebddd3932345d7102ea3e5b"
"gitHead": "7ce2f58970920ef40415b992c94d48d4eb0ebfd6"
}
/**
* @module actions
*/
// Vendor modules
import { ContentRef, KernelRef, KernelspecInfo } from "@nteract/types";
import { contents } from "rx-jupyter";
// Local modules
import * as actionTypes from "../actionTypes";
import { contents } from "rx-jupyter";
export const toggleHeaderEditor = (payload: {
contentRef: ContentRef;
}): actionTypes.ToggleHeaderEditor => ({
type: actionTypes.TOGGLE_HEADER_EDITOR,
payload
});

@@ -10,0 +18,0 @@ export const changeContentName = (payload: {

/**
* @module actions
*/
// Vendor modules
import {

@@ -10,7 +12,5 @@ CellId,

} from "@nteract/commutable";
import * as actionTypes from "../actionTypes";
import {
ContentRef,
HeaderDataProps,
HostId,

@@ -23,4 +23,8 @@ HostRef,

// Local modules
import * as actionTypes from "../actionTypes";
export * from "./cells";
export * from "./contents";
export * from "./hosts";
export * from "./kernels";

@@ -69,2 +73,11 @@ export * from "./kernelspecs";

export function overwriteMetadataFields(
payload: Partial<HeaderDataProps> & Partial<{ contentRef: ContentRef }>
): actionTypes.OverwriteMetadataFields {
return {
type: actionTypes.OVERWRITE_METADATA_FIELDS,
payload
};
}
export function deleteMetadataField(payload: {

@@ -136,3 +149,5 @@ field: string;

export const loadConfig = () => ({ type: actionTypes.LOAD_CONFIG });
export const saveConfig = () => ({ type: actionTypes.SAVE_CONFIG });
export const doneSavingConfig = () => ({

@@ -139,0 +154,0 @@ type: actionTypes.DONE_SAVING_CONFIG

@@ -6,2 +6,10 @@ /**

export const TOGGLE_HEADER_EDITOR = "CORE/TOGGLE_HEADER_EDITOR";
export interface ToggleHeaderEditor {
type: "CORE/TOGGLE_HEADER_EDITOR";
payload: {
contentRef: ContentRef;
};
}
export const CHANGE_CONTENT_NAME = "CORE/CHANGE_CONTENT_NAME";

@@ -8,0 +16,0 @@ export interface ChangeContentName {

/**
* @module actions
*/
// Vendor modules
import {
CellId,
ImmutableJSONType,
JSONObject,

@@ -11,6 +12,5 @@ MediaBundle,

} from "@nteract/commutable";
import {
ContentRef,
HostRecordProps,
HeaderDataProps,
HostRef,

@@ -22,3 +22,2 @@ KernelRef,

import { LanguageInfoMetadata } from "@nteract/types";
import { System as NotificationSystem } from "react-notification-system";

@@ -28,5 +27,12 @@

export * from "./contents";
export * from "./hosts";
export * from "./kernels";
export * from "./kernelspecs";
export const OVERWRITE_METADATA_FIELDS = "CORE/OVERWRITE_METADATA_FIELDS";
export interface OverwriteMetadataFields {
type: "CORE/OVERWRITE_METADATA_FIELDS";
payload: Partial<HeaderDataProps> & Partial<{ contentRef: ContentRef }>;
}
export interface ErrorAction<T extends string> {

@@ -33,0 +39,0 @@ type: T;

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