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 5.3.0 to 5.3.1

16

package.json
{
"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.');
});
});
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