New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@milkdown/ctx

Package Overview
Dependencies
Maintainers
1
Versions
76
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.1 to 7.3.2

4

lib/index.es.js

@@ -142,3 +142,3 @@ var P = (o, s, i) => {

var d, l, b, c;
const L = class {
const L = class L {
/// Create a ctx object with container and clock.

@@ -190,4 +190,4 @@ constructor(s, i, r) {

};
d = new WeakMap(), l = new WeakMap(), b = new WeakMap(), c = new WeakMap();
let U = L;
d = new WeakMap(), l = new WeakMap(), b = new WeakMap(), c = new WeakMap();
class J {

@@ -194,0 +194,0 @@ constructor() {

import type { Container, SliceType } from '../context';
import type { Clock, TimerStatus, TimerType } from '../timer';
import type { Meta } from './meta';
export type Telemetry = {
export interface Telemetry {
metadata: Meta;

@@ -24,3 +24,3 @@ injectedSlices: {

}[];
};
}
export declare class Inspector {

@@ -27,0 +27,0 @@ #private;

@@ -1,2 +0,2 @@

export type Meta = {
export interface Meta {
displayName: string;

@@ -7,3 +7,3 @@ description?: string;

additional?: Record<string, any>;
};
}
//# sourceMappingURL=meta.d.ts.map
{
"name": "@milkdown/ctx",
"type": "module",
"version": "7.3.1",
"version": "7.3.2",
"license": "MIT",

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

"tslib": "^2.5.0",
"@milkdown/exception": "7.3.1"
"@milkdown/exception": "7.3.2"
},

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

@@ -6,8 +6,8 @@ /* Copyright 2021, Milkdown by Mirone. */

export type Telemetry = {
export interface Telemetry {
metadata: Meta
injectedSlices: { name: string; value: unknown }[]
consumedSlices: { name: string; value: unknown }[]
recordedTimers: { name: string; duration: number; status: TimerStatus }[]
waitTimers: { name: string; duration: number; status: TimerStatus }[]
injectedSlices: { name: string, value: unknown }[]
consumedSlices: { name: string, value: unknown }[]
recordedTimers: { name: string, duration: number, status: TimerStatus }[]
waitTimers: { name: string, duration: number, status: TimerStatus }[]
}

@@ -33,3 +33,3 @@

/// @internal
readonly #recordedTimers: Map<TimerType, { duration: number; start: number }> = new Map()
readonly #recordedTimers: Map<TimerType, { duration: number, start: number }> = new Map()

@@ -41,3 +41,5 @@ /// @internal

constructor(
container: Container, clock: Clock, meta: Meta,
container: Container,
clock: Clock,
meta: Meta,
) {

@@ -44,0 +46,0 @@ this.#container = container

/* Copyright 2021, Milkdown by Mirone. */
/// The metadata of the plugin.
export type Meta = {
export interface Meta {
/// The name of the plugin

@@ -6,0 +6,0 @@ displayName: string

@@ -98,4 +98,3 @@ /* Copyright 2021, Milkdown by Mirone. */

/// Update a slice value from the ctx by a callback.
readonly update = <T, N extends string>(sliceType: SliceType<T, N> | N, updater: (prev: T) => T) =>
this.use(sliceType).update(updater)
readonly update = <T, N extends string>(sliceType: SliceType<T, N> | N, updater: (prev: T) => T) => this.use(sliceType).update(updater)

@@ -102,0 +101,0 @@ /// Get a timer from the ctx.

@@ -62,3 +62,3 @@ /* Copyright 2021, Milkdown by Mirone. */

return this.#promise as Promise<void>
return this.#promise
}

@@ -65,0 +65,0 @@

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

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