@milkdown/ctx
Advanced tools
Comparing version 5.3.0 to 5.3.1
{ | ||
"name": "@milkdown/ctx", | ||
"version": "5.3.0", | ||
"main": "./lib/index.cjs.js", | ||
"module": "./lib/index.es.js", | ||
"version": "5.3.1", | ||
"type": "module", | ||
"main": "./lib/index.es.js", | ||
"types": "./lib/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./lib/index.es.js", | ||
"require": "./lib/index.cjs.js" | ||
} | ||
}, | ||
"sideEffects": false, | ||
@@ -29,3 +23,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@milkdown/exception": "5.3.0", | ||
"@milkdown/exception": "5.3.1", | ||
"tslib": "^2.3.1" | ||
@@ -35,3 +29,3 @@ }, | ||
"watch": "vite build --watch", | ||
"test": "jest", | ||
"test": "vitest", | ||
"tsc": "tsc --noEmit", | ||
@@ -38,0 +32,0 @@ "build": "vite build && tsc --emitDeclarationOnly" |
/* Copyright 2021, Milkdown by Mirone. */ | ||
import { describe, expect, it } from 'vitest'; | ||
import { createContainer, createSlice } from '.'; | ||
@@ -3,0 +5,0 @@ |
/* Copyright 2021, Milkdown by Mirone. */ | ||
import { describe, expect, it } from 'vitest'; | ||
import { createSlice } from './slice'; | ||
@@ -3,0 +5,0 @@ |
/* Copyright 2021, Milkdown by Mirone. */ | ||
import { describe, expect, it } from 'vitest'; | ||
import { createClock } from './clock'; | ||
@@ -3,0 +5,0 @@ import { createTimer } from './timing'; |
/* Copyright 2021, Milkdown by Mirone. */ | ||
import { describe, expect, it } from 'vitest'; | ||
import { createTimer } from './timing'; | ||
describe('timing/timing', () => { | ||
it('createTimer', () => { | ||
it('createTimer', async () => { | ||
const timer = createTimer('timer'); | ||
const map = new Map(); | ||
const timing = timer(map); | ||
setTimeout(() => { | ||
timing.done(); | ||
}, 10); | ||
const wait = timing(); | ||
expect(wait).resolves.toBeUndefined(); | ||
timing.done(); | ||
await expect(timing()).resolves.toBeUndefined(); | ||
}); | ||
it('timeout', () => { | ||
it('timeout', async () => { | ||
const timer = createTimer('timer', 10); | ||
@@ -22,6 +23,4 @@ const map = new Map(); | ||
const wait = timing(); | ||
expect(wait).rejects.toBe('Timing timer timeout.'); | ||
await expect(timing()).rejects.toBe('Timing timer timeout.'); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
Yes
36655
45
646
+ Added@milkdown/exception@5.3.1(transitive)
- Removed@milkdown/core@7.5.9(transitive)
- Removed@milkdown/ctx@7.5.9(transitive)
- Removed@milkdown/exception@5.3.07.5.9(transitive)
- Removed@milkdown/prose@7.5.9(transitive)
- Removed@milkdown/transformer@7.5.9(transitive)
- Removed@types/debug@4.1.12(transitive)
- Removed@types/mdast@4.0.4(transitive)
- Removed@types/ms@0.7.34(transitive)
- Removed@types/unist@3.0.3(transitive)
- Removedbail@2.0.2(transitive)
- Removedcharacter-entities@2.0.2(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddecode-named-character-reference@1.0.2(transitive)
- Removeddequal@2.0.3(transitive)
- Removeddevlop@1.1.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedis-plain-obj@4.1.0(transitive)
- Removedlongest-streak@3.1.0(transitive)
- Removedmdast-util-from-markdown@2.0.2(transitive)
- Removedmdast-util-phrasing@4.1.0(transitive)
- Removedmdast-util-to-markdown@2.1.2(transitive)
- Removedmdast-util-to-string@4.0.0(transitive)
- Removedmicromark@4.0.1(transitive)
- Removedmicromark-core-commonmark@2.0.2(transitive)
- Removedmicromark-factory-destination@2.0.1(transitive)
- Removedmicromark-factory-label@2.0.1(transitive)
- Removedmicromark-factory-space@2.0.1(transitive)
- Removedmicromark-factory-title@2.0.1(transitive)
- Removedmicromark-factory-whitespace@2.0.1(transitive)
- Removedmicromark-util-character@2.1.1(transitive)
- Removedmicromark-util-chunked@2.0.1(transitive)
- Removedmicromark-util-classify-character@2.0.1(transitive)
- Removedmicromark-util-combine-extensions@2.0.1(transitive)
- Removedmicromark-util-decode-numeric-character-reference@2.0.2(transitive)
- Removedmicromark-util-decode-string@2.0.1(transitive)
- Removedmicromark-util-encode@2.0.1(transitive)
- Removedmicromark-util-html-tag-name@2.0.1(transitive)
- Removedmicromark-util-normalize-identifier@2.0.1(transitive)
- Removedmicromark-util-resolve-all@2.0.1(transitive)
- Removedmicromark-util-sanitize-uri@2.0.1(transitive)
- Removedmicromark-util-subtokenize@2.0.3(transitive)
- Removedmicromark-util-symbol@2.0.1(transitive)
- Removedmicromark-util-types@2.0.1(transitive)
- Removedms@2.1.3(transitive)
- Removedorderedmap@2.1.1(transitive)
- Removedprosemirror-changeset@2.2.1(transitive)
- Removedprosemirror-commands@1.6.2(transitive)
- Removedprosemirror-dropcursor@1.8.1(transitive)
- Removedprosemirror-gapcursor@1.3.2(transitive)
- Removedprosemirror-history@1.4.1(transitive)
- Removedprosemirror-inputrules@1.4.0(transitive)
- Removedprosemirror-keymap@1.2.2(transitive)
- Removedprosemirror-model@1.24.1(transitive)
- Removedprosemirror-schema-list@1.5.0(transitive)
- Removedprosemirror-state@1.4.3(transitive)
- Removedprosemirror-tables@1.6.1(transitive)
- Removedprosemirror-transform@1.10.2(transitive)
- Removedprosemirror-view@1.37.1(transitive)
- Removedremark@15.0.1(transitive)
- Removedremark-parse@11.0.0(transitive)
- Removedremark-stringify@11.0.0(transitive)
- Removedrope-sequence@1.3.4(transitive)
- Removedtrough@2.2.0(transitive)
- Removedunified@11.0.5(transitive)
- Removedunist-util-is@6.0.0(transitive)
- Removedunist-util-stringify-position@4.0.0(transitive)
- Removedunist-util-visit@5.0.0(transitive)
- Removedunist-util-visit-parents@6.0.1(transitive)
- Removedvfile@6.0.3(transitive)
- Removedvfile-message@4.0.2(transitive)
- Removedw3c-keyname@2.2.8(transitive)
- Removedzwitch@2.0.4(transitive)
Updated@milkdown/exception@5.3.1