@remotion/zod-types 4.0.285 → 4.0.287
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/package.json +3 -3
- package/dist/cjs/z-matrix.d.ts +0 -3
- package/dist/cjs/z-matrix.js +0 -14
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/zod-types"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/zod-types",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.287",
|
|
7
7
|
"description": "Zod types for Remotion",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"remotion": "4.0.
|
|
19
|
+
"remotion": "4.0.287"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"zod": "3.22.3"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"zod": "3.22.3",
|
|
26
26
|
"eslint": "9.19.0",
|
|
27
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
27
|
+
"@remotion/eslint-config-internal": "4.0.287"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"zod",
|
package/dist/cjs/z-matrix.d.ts
DELETED
package/dist/cjs/z-matrix.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zMatrix = exports.REMOTION_MATRIX_BRAND = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.REMOTION_MATRIX_BRAND = '__remotion-matrix';
|
|
6
|
-
const zMatrix = () => zod_1.z
|
|
7
|
-
.array(zod_1.z.number().step(0.01))
|
|
8
|
-
.refine((value) => {
|
|
9
|
-
const count = value.length;
|
|
10
|
-
const root = Math.sqrt(count);
|
|
11
|
-
return Number.isInteger(root) && root > 0;
|
|
12
|
-
}, { message: 'Invalid matrix, must be a square matrix' })
|
|
13
|
-
.describe(exports.REMOTION_MATRIX_BRAND);
|
|
14
|
-
exports.zMatrix = zMatrix;
|