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 6.3.1 to 6.3.2

38

lib/index.es.js

@@ -21,3 +21,3 @@ var y = (t, n, i) => {

}, sliceMap: t };
}, T = (t) => Array.isArray(t) ? [...t] : typeof t == "object" ? { ...t } : t, k = (t, n) => {
}, T = (t) => Array.isArray(t) ? [...t] : typeof t == "object" ? { ...t } : t, P = (t, n) => {
const i = Symbol("Context"), e = (s, c = T(t)) => {

@@ -43,3 +43,3 @@ let o = c;

var d, m;
class x {
class k {
constructor(n, i) {

@@ -54,12 +54,12 @@ h(this, d, void 0);

d = new WeakMap(), m = new WeakMap();
var g, f;
class P {
var g, p;
class x {
constructor(n, i) {
h(this, g, void 0);
h(this, f, void 0);
this.inject = (e, s) => (e(u(this, g).sliceMap, s), this), this.record = (e) => (e(u(this, f).store), this), l(this, g, n), l(this, f, i);
h(this, p, void 0);
this.inject = (e, s) => (e(u(this, g).sliceMap, s), this), this.record = (e) => (e(u(this, p).store), this), l(this, g, n), l(this, p, i);
}
}
g = new WeakMap(), f = new WeakMap();
const j = () => {
g = new WeakMap(), p = new WeakMap();
const L = () => {
const t = /* @__PURE__ */ new Map();

@@ -75,15 +75,15 @@ return {

};
}, A = (t, n = 3e3) => {
}, j = (t, n = 3e3) => {
const i = Symbol("Timer"), e = (s) => {
let c = null, o;
const a = Symbol(t), r = () => c != null ? c : c = new Promise((p, v) => {
const a = Symbol(t), r = () => c != null ? c : c = new Promise((f, v) => {
o = (w) => {
w instanceof CustomEvent && w.detail.id === a && p();
w instanceof CustomEvent && w.detail.id === a && (removeEventListener(t, o), w.stopImmediatePropagation(), f());
}, setTimeout(() => {
v(`Timing ${t} timeout.`), removeEventListener(t, o);
}, n), addEventListener(t, o, { once: !0 });
}, n), addEventListener(t, o);
});
return r.done = () => {
const p = new CustomEvent(t, { detail: { id: a } });
dispatchEvent(p);
const f = new CustomEvent(t, { detail: { id: a } });
dispatchEvent(f);
}, s.set(i, r), r;

@@ -94,9 +94,9 @@ };

export {
x as Ctx,
P as Pre,
j as createClock,
k as Ctx,
x as Pre,
L as createClock,
N as createContainer,
k as createSlice,
A as createTimer
P as createSlice,
j as createTimer
};
//# sourceMappingURL=index.es.js.map
{
"name": "@milkdown/ctx",
"version": "6.3.1",
"version": "6.3.2",
"type": "module",

@@ -23,3 +23,3 @@ "main": "./lib/index.es.js",

"dependencies": {
"@milkdown/exception": "6.3.1",
"@milkdown/exception": "6.3.2",
"tslib": "^2.4.0"

@@ -26,0 +26,0 @@ },

@@ -25,2 +25,4 @@ /* Copyright 2021, Milkdown by Mirone. */

if (e.detail.id === data) {
removeEventListener(name, listener);
e.stopImmediatePropagation();
resolve();

@@ -33,3 +35,3 @@ }

}, timeout);
addEventListener(name, listener, { once: true });
addEventListener(name, listener);
}));

@@ -36,0 +38,0 @@ timing.done = () => {

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