All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
2 lines
728 B
JavaScript
2 lines
728 B
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("slate")):"function"==typeof define&&define.amd?define(["exports","slate"],t):t(e.SlateBase64Serializer={},e.Slate)}(this,function(e,t){"use strict";var n=self.atob.bind(self),r=self.btoa.bind(self);function o(e){var t=JSON.stringify(e);return r(encodeURIComponent(t))}function i(e){var t=decodeURIComponent(n(e));return JSON.parse(t)}var f={deserialize:function(e,n){var r=i(e);return t.Value.fromJSON(r,n)},deserializeNode:function(e,n){var r=i(e);return t.Node.fromJSON(r,n)},serialize:function(e,t){return o(e.toJSON(t))},serializeNode:function(e,t){return o(e.toJSON(t))}};e.default=f,Object.defineProperty(e,"__esModule",{value:!0})});
|