@tldraw/utils
Advanced tools
Comparing version 2.0.0-alpha.7 to 2.0.0-canary.774deef5
@@ -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.", | ||
"homepage": "https://tldraw.dev", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tldraw/tldraw" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/tldraw/tldraw/issues" | ||
}, | ||
"main": "dist/cjs/index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"dist/**/*", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "jest", | ||
"test:coverage": "jest --coverage", | ||
"typecheck": "tsc --build", | ||
"build": "tsx ../../scripts/build-package.ts", | ||
"prepack": "tsx ../../scripts/prepack.ts", | ||
"postpack": "../../scripts/postpack.sh", | ||
"lint": "tsx ../../scripts/lint.ts" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@swc/core": "^1.2.204", | ||
"@swc/jest": "^0.2.21", | ||
"ts-node-dev": "^1.1.8" | ||
}, | ||
"jest": { | ||
"preset": "config/jest/node", | ||
"setupFiles": [ | ||
"raf/polyfill" | ||
], | ||
"moduleNameMapper": { | ||
"^~(.*)": "<rootDir>/src/$1" | ||
} | ||
}, | ||
"module": "dist/esm/index.js", | ||
"source": "src/index.ts" | ||
"name": "@tldraw/utils", | ||
"description": "A tiny little drawing app (private utilities).", | ||
"version": "2.0.0-canary.774deef5", | ||
"author": { | ||
"name": "tldraw GB Ltd.", | ||
"email": "hello@tldraw.com" | ||
}, | ||
"homepage": "https://tldraw.dev", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tldraw/tldraw" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/tldraw/tldraw/issues" | ||
}, | ||
"keywords": [ | ||
"tldraw", | ||
"drawing", | ||
"app", | ||
"development", | ||
"whiteboard", | ||
"canvas", | ||
"infinite" | ||
], | ||
"main": "dist/cjs/index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"dist/**/*", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"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": "yarn run -T tsx ../../scripts/lint.ts" | ||
}, | ||
"jest": { | ||
"preset": "config/jest/node", | ||
"setupFiles": [ | ||
"raf/polyfill" | ||
], | ||
"moduleNameMapper": { | ||
"^~(.*)": "<rootDir>/src/$1" | ||
} | ||
}, | ||
"module": "dist/esm/index.js", | ||
"source": "src/index.ts" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
75880
0
53
1076
1