@tinycloud/node-sdk 3.2.0-beta.9 → 3.2.1-beta.0
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/core.cjs +7 -0
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +7 -0
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -21728,6 +21728,13 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
21728
21728
|
* A marker written before a canonical space was added triggers one bounded repair.
|
|
21729
21729
|
*/
|
|
21730
21730
|
isAcceptedBootstrapCompletionMarker(value, canonicalStepIds) {
|
|
21731
|
+
if (typeof value === "string") {
|
|
21732
|
+
try {
|
|
21733
|
+
value = JSON.parse(value);
|
|
21734
|
+
} catch {
|
|
21735
|
+
return false;
|
|
21736
|
+
}
|
|
21737
|
+
}
|
|
21731
21738
|
if (typeof value !== "object" || value === null) return false;
|
|
21732
21739
|
const entries = Object.entries(value);
|
|
21733
21740
|
const markerValue = (name) => entries.find(([key2]) => key2 === name)?.[1];
|