@supernova-studio/model 0.58.21 → 0.58.22
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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/utils/common.ts +6 -0
package/dist/index.mjs
CHANGED
|
@@ -851,6 +851,12 @@ function chunkedArray(array, chunkSize) {
|
|
|
851
851
|
}
|
|
852
852
|
return result;
|
|
853
853
|
}
|
|
854
|
+
function recordToMap(record) {
|
|
855
|
+
const map = /* @__PURE__ */ new Map();
|
|
856
|
+
for (const [k, v] of Object.entries(record))
|
|
857
|
+
map.set(k, v);
|
|
858
|
+
return map;
|
|
859
|
+
}
|
|
854
860
|
|
|
855
861
|
// src/utils/content-loader-instruction.ts
|
|
856
862
|
import { z as z34 } from "zod";
|
|
@@ -6147,6 +6153,7 @@ export {
|
|
|
6147
6153
|
pickLatestSnapshots,
|
|
6148
6154
|
promiseWithTimeout,
|
|
6149
6155
|
publishedDocEnvironments,
|
|
6156
|
+
recordToMap,
|
|
6150
6157
|
removeCommentSpans,
|
|
6151
6158
|
sleep,
|
|
6152
6159
|
slugRegex,
|