@tldraw/utils
Advanced tools
Comparing version 2.0.0-canary.a5843ef1a to 2.0.0-canary.a91df5bf0
@@ -6,2 +6,6 @@ "use strict"; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
@@ -15,7 +19,50 @@ if (from && typeof from === "object" || typeof from === "function") { | ||
}; | ||
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
Result: () => import_control.Result, | ||
annotateError: () => import_error.annotateError, | ||
assert: () => import_control.assert, | ||
assertExists: () => import_control.assertExists, | ||
compact: () => import_array.compact, | ||
debounce: () => import_debounce.debounce, | ||
dedupe: () => import_array.dedupe, | ||
deepCopy: () => import_object.deepCopy, | ||
exhaustiveSwitchError: () => import_control.exhaustiveSwitchError, | ||
getErrorAnnotations: () => import_error.getErrorAnnotations, | ||
getFirstFromIterable: () => import_iterable.getFirstFromIterable, | ||
getHashForObject: () => import_hash.getHashForObject, | ||
getHashForString: () => import_hash.getHashForString, | ||
getOwnProperty: () => import_object.getOwnProperty, | ||
hasOwnProperty: () => import_object.hasOwnProperty, | ||
isDefined: () => import_value.isDefined, | ||
isNonNull: () => import_value.isNonNull, | ||
isNonNullish: () => import_value.isNonNullish, | ||
last: () => import_array.last, | ||
lerp: () => import_number.lerp, | ||
lns: () => import_hash.lns, | ||
minBy: () => import_array.minBy, | ||
modulate: () => import_number.modulate, | ||
objectMapEntries: () => import_object.objectMapEntries, | ||
objectMapKeys: () => import_object.objectMapKeys, | ||
objectMapValues: () => import_object.objectMapValues, | ||
omitFromStackTrace: () => import_function.omitFromStackTrace, | ||
partition: () => import_array.partition, | ||
promiseWithResolve: () => import_control.promiseWithResolve, | ||
rng: () => import_number.rng, | ||
rotateArray: () => import_array.rotateArray, | ||
structuredClone: () => import_value.structuredClone, | ||
throttle: () => import_function.throttle | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
__reExport(src_exports, require("./lib"), module.exports); | ||
var import_array = require("./lib/array"); | ||
var import_control = require("./lib/control"); | ||
var import_debounce = require("./lib/debounce"); | ||
var import_error = require("./lib/error"); | ||
var import_function = require("./lib/function"); | ||
var import_hash = require("./lib/hash"); | ||
var import_iterable = require("./lib/iterable"); | ||
var import_number = require("./lib/number"); | ||
var import_object = require("./lib/object"); | ||
var import_value = require("./lib/value"); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tldraw/utils", | ||
"description": "A tiny little drawing app (private utilities).", | ||
"version": "2.0.0-canary.a5843ef1a", | ||
"version": "2.0.0-canary.a91df5bf0", | ||
"author": { | ||
@@ -34,11 +34,14 @@ "name": "tldraw GB Ltd.", | ||
"scripts": { | ||
"test": "yarn run -T jest", | ||
"test:coverage": "yarn run -T jest --coverage", | ||
"build": "echo 'build should be run by turbo'", | ||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts", | ||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts", | ||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts", | ||
"postpack": "../../scripts/postpack.sh", | ||
"lint": "yarn run -T tsx ../../scripts/lint.ts" | ||
"test": "lazy inherit", | ||
"test:coverage": "lazy inherit", | ||
"build:package": "yarn run -T tsx ../../../scripts/build-package.ts", | ||
"build:api": "yarn run -T tsx ../../../scripts/build-api.ts", | ||
"prepack": "yarn run -T tsx ../../../scripts/prepack.ts", | ||
"postpack": "../../../scripts/postpack.sh", | ||
"pack-tarball": "yarn pack", | ||
"lint": "yarn run -T tsx ../../../scripts/lint.ts" | ||
}, | ||
"devDependencies": { | ||
"lazyrepo": "0.0.0-alpha.12" | ||
}, | ||
"jest": { | ||
@@ -45,0 +48,0 @@ "preset": "config/jest/node", |
@@ -1,1 +0,25 @@ | ||
export * from './lib' | ||
export { compact, dedupe, last, minBy, partition, rotateArray } from './lib/array' | ||
export { | ||
Result, | ||
assert, | ||
assertExists, | ||
exhaustiveSwitchError, | ||
promiseWithResolve, | ||
type ErrorResult, | ||
type OkResult, | ||
} from './lib/control' | ||
export { debounce } from './lib/debounce' | ||
export { annotateError, getErrorAnnotations } from './lib/error' | ||
export { omitFromStackTrace, throttle } from './lib/function' | ||
export { getHashForObject, getHashForString, lns } from './lib/hash' | ||
export { getFirstFromIterable } from './lib/iterable' | ||
export { lerp, modulate, rng } from './lib/number' | ||
export { | ||
deepCopy, | ||
getOwnProperty, | ||
hasOwnProperty, | ||
objectMapEntries, | ||
objectMapKeys, | ||
objectMapValues, | ||
} from './lib/object' | ||
export { isDefined, isNonNull, isNonNullish, structuredClone } from './lib/value' |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
104401
1746
0
1
60