deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
+17
View File
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.float32Array = float32Array;
const float_1 = require("./float");
const array_1 = require("./array");
const globals_1 = require("../utils/globals");
function toTypedMapper(data) {
return globals_1.Float32Array.from(data);
}
function fromTypedUnmapper(value) {
if (!(value instanceof globals_1.Float32Array))
throw new Error('Unexpected type');
return [...value];
}
function float32Array(constraints = {}) {
return (0, array_1.array)((0, float_1.float)(constraints), constraints).map(toTypedMapper, fromTypedUnmapper);
}