Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tldraw/utils

Package Overview
Dependencies
Maintainers
4
Versions
2099
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tldraw/utils - npm Package Compare versions

Comparing version 3.6.0-canary.73400b158db7 to 3.6.0-canary.7f45ba074d3c

dist-cjs/lib/stringEnum.js

31

CHANGELOG.md

@@ -1,9 +0,13 @@

# v3.5.0 (Thu Oct 24 2024)
# v3.5.0 (Tue Nov 26 2024)
### Release Notes
#### npm: upgrade eslint v8 → v9 ([#4757](https://github.com/tldraw/tldraw/pull/4757))
#### make sure copy-as-png comes in at natural size ([#4771](https://github.com/tldraw/tldraw/pull/4771))
- Upgrade eslint v8 → v9
- Shapes copied as PNG will have the same size when pasted back into tldraw.
#### [wip] custom botcom backend ([#4879](https://github.com/tldraw/tldraw/pull/4879))
- Fixed a bug with…
---

@@ -13,16 +17,15 @@

- Update CHANGELOG.md \[skip ci\] ([@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
- [botcom] New backend (again) [#4884](https://github.com/tldraw/tldraw/pull/4884) ([@ds300](https://github.com/ds300))
- Revert "[wip] custom botcom backend" [#4883](https://github.com/tldraw/tldraw/pull/4883) ([@ds300](https://github.com/ds300))
- [wip] custom botcom backend [#4879](https://github.com/tldraw/tldraw/pull/4879) ([@ds300](https://github.com/ds300) [@MitjaBezensek](https://github.com/MitjaBezensek))
#### 💄 Product Improvements
#### 🐛 Bug Fixes
- npm: upgrade eslint v8 → v9 [#4757](https://github.com/tldraw/tldraw/pull/4757) ([@mimecuvalo](https://github.com/mimecuvalo) [@SomeHats](https://github.com/SomeHats) [@ds300](https://github.com/ds300) [@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
- make sure copy-as-png comes in at natural size [#4771](https://github.com/tldraw/tldraw/pull/4771) ([@SomeHats](https://github.com/SomeHats))
#### Authors: 6
#### Authors: 3
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
- alex ([@SomeHats](https://github.com/SomeHats))
- David Sheldrick ([@ds300](https://github.com/ds300))
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))

@@ -41,2 +44,7 @@ ---

#### 🐛 Bug Fix
- roll back changes from bad deploy [#4780](https://github.com/tldraw/tldraw/pull/4780) ([@SomeHats](https://github.com/SomeHats))
- Update CHANGELOG.md \[skip ci\] ([@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
#### 💄 Product Improvements

@@ -46,4 +54,5 @@

#### Authors: 5
#### Authors: 6
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
- alex ([@SomeHats](https://github.com/SomeHats))

@@ -50,0 +59,0 @@ - David Sheldrick ([@ds300](https://github.com/ds300))

@@ -129,2 +129,4 @@ import { default as throttle } from 'lodash.throttle';

static blobToText(file: Blob): Promise<string>;
static rewriteMimeType(blob: Blob, newMimeType: string): Blob;
static rewriteMimeType(blob: File, newMimeType: string): File;
}

@@ -323,2 +325,13 @@

/** @public */
export declare type MakeUndefinedOptional<T extends object> = Expand<{
[P in {
[K in keyof T]: undefined extends T[K] ? never : K;
}[keyof T]]: T[P];
} & {
[P in {
[K in keyof T]: undefined extends T[K] ? K : never;
}[keyof T]]?: T[P];
}>;
/* Excluded from this release type: mapObjectMapValues */

@@ -515,2 +528,4 @@

/* Excluded from this release type: stringEnum */
/* Excluded from this release type: STRUCTURED_CLONE_OBJECT_PROTOTYPE */

@@ -517,0 +532,0 @@

@@ -111,2 +111,3 @@ "use strict";

sortByIndex: () => import_reordering.sortByIndex,
stringEnum: () => import_stringEnum.stringEnum,
structuredClone: () => import_value.structuredClone,

@@ -146,2 +147,3 @@ throttle: () => import_lodash.default,

var import_storage = require("./lib/storage");
var import_stringEnum = require("./lib/stringEnum");
var import_throttle = require("./lib/throttle");

@@ -155,5 +157,5 @@ var import_timers = require("./lib/timers");

"@tldraw/utils",
"3.6.0-canary.73400b158db7",
"3.6.0-canary.7f45ba074d3c",
"cjs"
);
//# sourceMappingURL=index.js.map

@@ -80,3 +80,10 @@ "use strict";

}
static rewriteMimeType(blob, newMimeType) {
if (blob.type === newMimeType) return blob;
if (blob instanceof File) {
return new File([blob], blob.name, { type: newMimeType });
}
return new Blob([blob], { type: newMimeType });
}
}
//# sourceMappingURL=file.js.map
{
"name": "@tldraw/utils",
"description": "A tiny little drawing app (private utilities).",
"version": "3.6.0-canary.73400b158db7",
"version": "3.6.0-canary.7f45ba074d3c",
"author": {

@@ -6,0 +6,0 @@ "name": "tldraw Inc.",

@@ -81,5 +81,11 @@ import { registerTldrawLibraryVersion } from './lib/version'

} from './lib/storage'
export { stringEnum } from './lib/stringEnum'
export { fpsThrottle, throttleToNextFrame } from './lib/throttle'
export { Timers } from './lib/timers'
export type { Expand, RecursivePartial, Required } from './lib/types'
export {
type Expand,
type MakeUndefinedOptional,
type RecursivePartial,
type Required,
} from './lib/types'
export { safeParseUrl } from './lib/url'

@@ -86,0 +92,0 @@ export {

@@ -65,2 +65,12 @@ import { fetch } from './network'

}
static rewriteMimeType(blob: Blob, newMimeType: string): Blob
static rewriteMimeType(blob: File, newMimeType: string): File
static rewriteMimeType(blob: Blob | File, newMimeType: string): Blob | File {
if (blob.type === newMimeType) return blob
if (blob instanceof File) {
return new File([blob], blob.name, { type: newMimeType })
}
return new Blob([blob], { type: newMimeType })
}
}

@@ -11,1 +11,10 @@ /** @public */

export type Required<T, K extends keyof T> = Expand<Omit<T, K> & { [P in K]-?: T[P] }>
/** @public */
export type MakeUndefinedOptional<T extends object> = Expand<
{
[P in { [K in keyof T]: undefined extends T[K] ? never : K }[keyof T]]: T[P]
} & {
[P in { [K in keyof T]: undefined extends T[K] ? K : never }[keyof T]]?: T[P]
}
>

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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