@tldraw/tlvalidate
Advanced tools
Comparing version 2.0.0-canary.dd436e7df to 2.0.0-canary.ddca01918fab
@@ -85,3 +85,3 @@ /** | ||
*/ | ||
declare function literal<T extends string | number | boolean>(expectedValue: T): Validator<T>; | ||
declare function literal<T extends boolean | number | string>(expectedValue: T): Validator<T>; | ||
@@ -292,3 +292,3 @@ /** | ||
*/ | ||
nullable(): Validator<T | null>; | ||
nullable(): Validator<null | T>; | ||
/** | ||
@@ -295,0 +295,0 @@ * Returns a new validator that also accepts null or undefined. The resulting value will always be |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
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) => { | ||
@@ -14,7 +20,17 @@ if (from && typeof from === "object" || typeof from === "function") { | ||
}; | ||
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
T: () => T | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
__reExport(src_exports, require("./lib"), module.exports); | ||
var T = __toESM(require("./lib/validation")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tldraw/tlvalidate", | ||
"description": "A tiny little drawing app (validation).", | ||
"version": "2.0.0-canary.dd436e7df", | ||
"version": "2.0.0-canary.ddca01918fab", | ||
"packageManager": "yarn@3.5.0", | ||
"author": { | ||
@@ -34,13 +35,13 @@ "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", | ||
"test": "lazy inherit", | ||
"test-coverage": "lazy inherit", | ||
"build": "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" | ||
}, | ||
"dependencies": { | ||
"@tldraw/utils": "2.0.0-canary.dd436e7df" | ||
"@tldraw/utils": "2.0.0-canary.ddca01918fab" | ||
}, | ||
@@ -56,2 +57,5 @@ "jest": { | ||
}, | ||
"devDependencies": { | ||
"lazyrepo": "0.0.0-alpha.26" | ||
}, | ||
"module": "dist-esm/index.mjs", | ||
@@ -58,0 +62,0 @@ "source": "src/index.ts", |
@@ -1,1 +0,3 @@ | ||
export * from './lib' | ||
import * as T from './lib/validation' | ||
export { T } |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
0
6
121928
1
17
1725
+ Added@tldraw/utils@2.0.0-canary.ddca01918fab(transitive)
- Removed@tldraw/utils@2.0.0-canary.dd436e7df(transitive)