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

djedi-json

Package Overview
Dependencies
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djedi-json - npm Package Compare versions

Comparing version 0.5.10 to 0.5.11

4

build/contexts/editcontext.d.ts
import React, { RefObject } from 'react';
import { Path } from '../core/Tree/types';
import { NodeContentType, NodeTreeItem } from '../types';

@@ -12,3 +13,4 @@ export declare type EditContextType = {

editing: boolean;
move: (steps: number) => void;
shift: (steps: number) => void;
move: (to: Path) => void;
};

@@ -15,0 +17,0 @@ declare const EditContext: React.Context<EditContextType>;

import { NodeTreeItem } from '../../types';
import { TreeReducerAction } from './types';
export declare const reducer: (state: NodeTreeItem, action: TreeReducerAction) => any;
export declare const reducer: (state: NodeTreeItem, action: TreeReducerAction) => NodeTreeItem;
export default reducer;

@@ -0,1 +1,3 @@

import { NodeTreeItem } from "../../types";
export declare type Path = string[] | string;
export declare type ReplaceAction = {

@@ -11,3 +13,3 @@ type: 'replace';

payload: NodeTreeItem;
path: string[] | string;
path: Path;
};

@@ -17,13 +19,13 @@ export declare type AddAction = {

payload: NodeTreeItem;
path: string[] | string;
path: Path;
};
export declare type DeleteAction = {
type: 'delete';
path: string[] | string;
path: Path;
};
export declare type MoveAction = {
type: 'move';
path: string[] | string;
steps: number;
from: Path;
to: Path;
};
export declare type TreeReducerAction = MoveAction | ReplaceAction | EmptyAction | PatchAction | DeleteAction | AddAction;
export declare type TreeReducerAction = ReplaceAction | EmptyAction | PatchAction | DeleteAction | AddAction | MoveAction;
{
"name": "djedi-json",
"version": "0.5.10",
"version": "0.5.11",
"main": "build/index.js",

@@ -5,0 +5,0 @@ "module": "build/index.esm.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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