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

@milkdown/ctx

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@milkdown/ctx - npm Package Compare versions

Comparing version 7.3.5 to 7.3.6

6

lib/context/container.d.ts

@@ -5,6 +5,6 @@ import type { Slice, SliceType } from './slice';

sliceMap: SliceMap;
get: <T, N extends string = string>(slice: N | SliceType<T, N>) => Slice<T, N>;
remove: <T, N extends string = string>(slice: N | SliceType<T, N>) => void;
has: <T, N extends string = string>(slice: N | SliceType<T, N>) => boolean;
get: <T, N extends string = string>(slice: SliceType<T, N> | N) => Slice<T, N>;
remove: <T, N extends string = string>(slice: SliceType<T, N> | N) => void;
has: <T, N extends string = string>(slice: SliceType<T, N> | N) => boolean;
}
//# sourceMappingURL=container.d.ts.map

@@ -11,12 +11,12 @@ import type { Container, Slice, SliceType } from '../context';

readonly produce: (meta?: Meta) => Ctx;
readonly inject: <T>(sliceType: SliceType<T, string>, value?: T | undefined) => this;
readonly remove: <T, N extends string = string>(sliceType: N | SliceType<T, N>) => this;
readonly inject: <T>(sliceType: SliceType<T>, value?: T) => this;
readonly remove: <T, N extends string = string>(sliceType: SliceType<T, N> | N) => this;
readonly record: (timerType: TimerType) => this;
readonly clearTimer: (timerType: TimerType) => this;
readonly isInjected: <T, N extends string = string>(sliceType: N | SliceType<T, N>) => boolean;
readonly isInjected: <T, N extends string = string>(sliceType: SliceType<T, N> | N) => boolean;
readonly isRecorded: (timerType: TimerType) => boolean;
readonly use: <T, N extends string = string>(sliceType: N | SliceType<T, N>) => Slice<T, N>;
readonly get: <T, N extends string>(sliceType: N | SliceType<T, N>) => T;
readonly set: <T, N extends string>(sliceType: N | SliceType<T, N>, value: T) => void;
readonly update: <T, N extends string>(sliceType: N | SliceType<T, N>, updater: (prev: T) => T) => void;
readonly use: <T, N extends string = string>(sliceType: SliceType<T, N> | N) => Slice<T, N>;
readonly get: <T, N extends string>(sliceType: SliceType<T, N> | N) => T;
readonly set: <T, N extends string>(sliceType: SliceType<T, N> | N, value: T) => void;
readonly update: <T, N extends string>(sliceType: SliceType<T, N> | N, updater: (prev: T) => T) => void;
readonly timer: (timer: TimerType) => import("../timer").Timer;

@@ -23,0 +23,0 @@ readonly done: (timer: TimerType) => void;

{
"name": "@milkdown/ctx",
"type": "module",
"version": "7.3.5",
"version": "7.3.6",
"license": "MIT",

@@ -34,3 +34,3 @@ "repository": {

"tslib": "^2.5.0",
"@milkdown/exception": "7.3.5"
"@milkdown/exception": "7.3.6"
},

@@ -37,0 +37,0 @@ "nx": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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