@tldraw/validate 5.2.0-canary.5e2eb65a491a → 5.2.0-canary.6287d367a226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +2 -2
- package/src/test/validation.test.ts +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ A `DOCS.md` file is included alongside this README in the published package, wit
|
|
|
36
36
|
|
|
37
37
|
## Contribution
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Found a bug? Please [submit an issue](https://github.com/tldraw/tldraw/issues/new).
|
|
40
40
|
|
|
41
41
|
## License
|
|
42
42
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var T = __toESM(require("./lib/validation"), 1);
|
|
|
41
41
|
var import_validation = require("./lib/validation");
|
|
42
42
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
43
43
|
"@tldraw/validate",
|
|
44
|
-
"5.2.0-canary.
|
|
44
|
+
"5.2.0-canary.6287d367a226",
|
|
45
45
|
"cjs"
|
|
46
46
|
);
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/validate",
|
|
3
3
|
"description": "A runtime validation library by tldraw.",
|
|
4
|
-
"version": "5.2.0-canary.
|
|
4
|
+
"version": "5.2.0-canary.6287d367a226",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@tldraw/utils": "5.2.0-canary.
|
|
47
|
+
"@tldraw/utils": "5.2.0-canary.6287d367a226"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"lazyrepo": "0.0.0-alpha.27"
|
|
@@ -149,7 +149,7 @@ describe('validations', () => {
|
|
|
149
149
|
)
|
|
150
150
|
|
|
151
151
|
// Should reject NaN
|
|
152
|
-
expect(() => numberUnionSchema.validate({ version: NaN, data: 'test' })).
|
|
152
|
+
expect(() => numberUnionSchema.validate({ version: NaN, data: 'test' })).toThrow(
|
|
153
153
|
/Expected a number for key "version"/
|
|
154
154
|
)
|
|
155
155
|
})
|