@contentstech/stackflow-plugin-history-sync
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -245,7 +245,11 @@ "use strict"; | ||
function serializeState(state) { | ||
return (0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}); | ||
return JSON.parse( | ||
JSON.stringify( | ||
(0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}) | ||
) | ||
); | ||
} | ||
@@ -252,0 +256,0 @@ function safeParseState(state) { |
@@ -245,7 +245,11 @@ "use strict"; | ||
function serializeState(state) { | ||
return (0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}); | ||
return JSON.parse( | ||
JSON.stringify( | ||
(0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}) | ||
) | ||
); | ||
} | ||
@@ -252,0 +256,0 @@ function safeParseState(state) { |
@@ -245,7 +245,11 @@ "use strict"; | ||
function serializeState(state) { | ||
return (0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}); | ||
return JSON.parse( | ||
JSON.stringify( | ||
(0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}) | ||
) | ||
); | ||
} | ||
@@ -252,0 +256,0 @@ function safeParseState(state) { |
@@ -238,7 +238,11 @@ "use strict"; | ||
function serializeState(state) { | ||
return (0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}); | ||
return JSON.parse( | ||
JSON.stringify( | ||
(0, import_json_cycle.decycle)({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step | ||
}) | ||
) | ||
); | ||
} | ||
@@ -245,0 +249,0 @@ function safeParseState(state) { |
{ | ||
"name": "@contentstech/stackflow-plugin-history-sync", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"repository": { | ||
@@ -89,3 +89,3 @@ "type": "git", | ||
"devDependencies": { | ||
"@contentstech/stackflow-solid": "^0.2.0", | ||
"@contentstech/stackflow-solid": "^0.3.0", | ||
"@stackflow/config": "^1.1.0", | ||
@@ -110,3 +110,3 @@ "@stackflow/core": "^1.1.0", | ||
"peerDependencies": { | ||
"@contentstech/stackflow-solid": "^0.2.0", | ||
"@contentstech/stackflow-solid": "^0.3.0", | ||
"@stackflow/config": "^1.0.1-canary.0", | ||
@@ -113,0 +113,0 @@ "@stackflow/core": "^1.1.0-canary.0", |
@@ -17,7 +17,11 @@ import type { Activity, ActivityStep } from "@stackflow/core"; | ||
function serializeState(state: State): SerializedState { | ||
return decycle({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step, | ||
}); | ||
return JSON.parse( | ||
JSON.stringify( | ||
decycle({ | ||
_TAG: STATE_TAG, | ||
activity: state.activity, | ||
step: state.step, | ||
}), | ||
), | ||
); | ||
} | ||
@@ -24,0 +28,0 @@ |
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
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
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
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
827744
9255