@tldraw/utils
Advanced tools
Comparing version 2.0.0-alpha.7 to 2.0.0-alpha.8
@@ -56,9 +56,12 @@ "use strict"; | ||
let resolve; | ||
const promise = new Promise((res) => { | ||
let reject; | ||
const promise = new Promise((res, rej) => { | ||
resolve = res; | ||
reject = rej; | ||
}); | ||
return Object.assign(promise, { | ||
resolve | ||
resolve, | ||
reject | ||
}); | ||
} | ||
//# sourceMappingURL=control.js.map |
@@ -29,7 +29,10 @@ import { omitFromStackTrace } from "./function"; | ||
let resolve; | ||
const promise = new Promise((res) => { | ||
let reject; | ||
const promise = new Promise((res, rej) => { | ||
resolve = res; | ||
reject = rej; | ||
}); | ||
return Object.assign(promise, { | ||
resolve | ||
resolve, | ||
reject | ||
}); | ||
@@ -36,0 +39,0 @@ } |
{ | ||
"name": "@tldraw/utils", | ||
"private": false, | ||
"description": "A tiny little drawing app (private utilities).", | ||
"version": "2.0.0-alpha.7", | ||
"author": "tldraw GB Ltd.", | ||
"version": "2.0.0-alpha.8", | ||
"author": { | ||
"name": "tldraw GB Ltd.", | ||
"email": "hello@tldraw.com" | ||
}, | ||
"homepage": "https://tldraw.dev", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
@@ -15,2 +18,11 @@ "type": "git", | ||
}, | ||
"keywords": [ | ||
"tldraw", | ||
"drawing", | ||
"app", | ||
"development", | ||
"whiteboard", | ||
"canvas", | ||
"infinite" | ||
], | ||
"main": "dist/cjs/index.js", | ||
@@ -23,16 +35,10 @@ "types": "index.d.ts", | ||
"scripts": { | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"typecheck": "tsc --build", | ||
"build": "tsx ../../scripts/build-package.ts", | ||
"prepack": "tsx ../../scripts/prepack.ts", | ||
"test": "yarn run -T jest", | ||
"test:coverage": "yarn run -T jest --coverage", | ||
"typecheck": "yarn run -T tsc --build", | ||
"build": "yarn run -T tsx ../../scripts/build-package.ts", | ||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts", | ||
"postpack": "../../scripts/postpack.sh", | ||
"lint": "tsx ../../scripts/lint.ts" | ||
"lint": "yarn run -T tsx ../../scripts/lint.ts" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@swc/core": "^1.2.204", | ||
"@swc/jest": "^0.2.21", | ||
"ts-node-dev": "^1.1.8" | ||
}, | ||
"jest": { | ||
@@ -39,0 +45,0 @@ "preset": "config/jest/node", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
74593
0
1065
43