@kizahasi/flocon-core
Advanced tools
Comparing version 0.19.1 to 0.20.0-beta.1
@@ -22,6 +22,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseUpOperation = exports.exactDbState = exports.decodeDbState = exports.stringifyState = exports.parseState = exports.clientTransform = exports.serverTransform = exports.diff = exports.restore = exports.composeDownOperation = exports.applyBack = exports.apply = exports.toDownOperation = exports.toUpOperation = exports.toClientState = exports.downOperation = exports.upOperation = exports.state = exports.dbState = exports.analyze = exports.expr1 = exports.plain = exports.FirebaseStorage = exports.Uploader = exports.Default = exports.execCharacterCommand = exports.testCommand = exports.generateChatPalette = exports.isValidChatPalette = exports.getVariableFromVarTomlObject = exports.parseToml = exports.isValidVarToml = exports.createRedisCache = exports.createNodeCache = exports.PublicChannelKey = exports.maybe = exports.isStrIndex100 = exports.strIndex100Array = exports.isStrIndex20 = exports.strIndex20Array = exports.isStrIndex10 = exports.strIndex10Array = exports.isStrIndex5 = exports.strIndex5Array = exports.firebaseConfig = exports.$system = exports.$free = exports.authToken = exports.anonymous = exports.privateCommandsDiff = void 0; | ||
exports.admin = exports.client = exports.toTextUpOperation = exports.textDiff = exports.applyText = exports.update = exports.replace = exports.isIdRecord = exports.numberPieceValueLog = exports.exactNumberPieceValue = exports.parseNumberPieceValue = exports.decodeNumberPieceValue = exports.toNumberPieceValueUpOperation = exports.numberPieceValueDiff = exports.applyNumberPieceValue = exports.toImagePieceValueUpOperation = exports.imagePieceValueDiff = exports.applyImagePieceValue = exports.dicePieceValueLog = exports.toDieValueUpOperation = exports.dieValueDiff = exports.applyDieValue = exports.exactDicePieceValue = exports.parseDicePieceValue = exports.decodeDicePieceValue = exports.dicePieceValueStrIndexes = exports.toDicePieceValueUpOperation = exports.dicePieceValueDiff = exports.applyDicePieceValue = exports.toCharacterStrParamUpOperation = exports.strParamcharacterDiff = exports.applyStrParamCharacter = exports.toCharacterUpOperation = exports.characterDiff = exports.applyCharacter = exports.toBoardUpOperation = exports.boardDiff = exports.applyBoard = exports.toPieceUpOperation = exports.pieceDiff = exports.applyPiece = exports.Spectator = exports.Player = exports.Master = exports.toBoardLocationUpOperation = exports.boardLocationDiff = exports.applyBoardLocation = exports.exactDownOperation = exports.decodeDownOperation = exports.stringifyUpOperation = void 0; | ||
exports.createLogs = exports.deleteType = exports.createType = exports.updateType = exports.RequestedBy = exports.restrict = void 0; | ||
const Command = __importStar(require("./internal/ot/room/participant/character/command/v1")); | ||
exports.parseUpOperation = exports.exactDbState = exports.decodeDbState = exports.stringifyState = exports.parseState = exports.downOperation = exports.upOperation = exports.state = exports.dbState = exports.clientTransform = exports.serverTransform = exports.diff = exports.restore = exports.composeDownOperation = exports.applyBack = exports.apply = exports.toDownOperation = exports.toUpOperation = exports.toClientState = exports.analyze = exports.expr1 = exports.plain = exports.FirebaseStorage = exports.Uploader = exports.Default = exports.execCharacterCommand = exports.testCommand = exports.generateChatPalette = exports.isValidChatPalette = exports.getVariableFromVarTomlObject = exports.parseToml = exports.isValidVarToml = exports.createRedisCache = exports.createNodeCache = exports.PublicChannelKey = exports.maybe = exports.isStrIndex100 = exports.strIndex100Array = exports.isStrIndex20 = exports.strIndex20Array = exports.isStrIndex10 = exports.strIndex10Array = exports.isStrIndex5 = exports.strIndex5Array = exports.firebaseConfig = exports.$system = exports.$free = exports.authToken = exports.anonymous = exports.privateCommandsDiff = void 0; | ||
exports.toTextUpOperation = exports.textDiff = exports.applyText = exports.update = exports.replace = exports.isIdRecord = exports.Markdown = exports.Plain = exports.stringPieceValueLog = exports.exactStringPieceValue = exports.parseStringPieceValue = exports.decodeStringPieceValue = exports.toStringPieceValueUpOperation = exports.stringPieceValueDiff = exports.applyNumberPieceValue = exports.toImagePieceValueUpOperation = exports.imagePieceValueDiff = exports.applyImagePieceValue = exports.dicePieceValueLog = exports.toDieValueUpOperation = exports.dieValueDiff = exports.applyDieValue = exports.exactDicePieceValue = exports.parseDicePieceValue = exports.decodeDicePieceValue = exports.dicePieceValueStrIndexes = exports.toDicePieceValueUpOperation = exports.dicePieceValueDiff = exports.applyDicePieceValue = exports.toCharacterStrParamUpOperation = exports.strParamcharacterDiff = exports.applyStrParamCharacter = exports.toCharacterUpOperation = exports.characterDiff = exports.applyCharacter = exports.toBoardUpOperation = exports.boardDiff = exports.applyBoard = exports.toPieceUpOperation = exports.pieceDiff = exports.applyPiece = exports.Spectator = exports.Player = exports.Master = exports.toBoardLocationUpOperation = exports.boardLocationDiff = exports.applyBoardLocation = exports.exactDownOperation = exports.decodeDownOperation = exports.stringifyUpOperation = void 0; | ||
exports.createLogs = exports.deleteType = exports.createType = exports.updateType = exports.RequestedBy = exports.restrict = exports.admin = exports.client = void 0; | ||
const Command = __importStar(require("./internal/ot/room/participant/character/command/functions")); | ||
const RecordOperation = __importStar(require("./internal/ot/util/recordOperation")); | ||
@@ -71,9 +71,9 @@ const privateCommandsDiff = ({ prevState, nextState, }) => { | ||
Object.defineProperty(exports, "generateChatPalette", { enumerable: true, get: function () { return toml_1.generateChatPalette; } }); | ||
var main_2 = require("./internal/flocommand/main"); | ||
var main_2 = require("./internal/command/main"); | ||
Object.defineProperty(exports, "testCommand", { enumerable: true, get: function () { return main_2.testCommand; } }); | ||
Object.defineProperty(exports, "execCharacterCommand", { enumerable: true, get: function () { return main_2.execCharacterCommand; } }); | ||
var v1_1 = require("./internal/ot/filePath/v1"); | ||
Object.defineProperty(exports, "Default", { enumerable: true, get: function () { return v1_1.Default; } }); | ||
Object.defineProperty(exports, "Uploader", { enumerable: true, get: function () { return v1_1.Uploader; } }); | ||
Object.defineProperty(exports, "FirebaseStorage", { enumerable: true, get: function () { return v1_1.FirebaseStorage; } }); | ||
var types_1 = require("./internal/ot/filePath/types"); | ||
Object.defineProperty(exports, "Default", { enumerable: true, get: function () { return types_1.Default; } }); | ||
Object.defineProperty(exports, "Uploader", { enumerable: true, get: function () { return types_1.Uploader; } }); | ||
Object.defineProperty(exports, "FirebaseStorage", { enumerable: true, get: function () { return types_1.FirebaseStorage; } }); | ||
var expression_1 = require("./internal/expression"); | ||
@@ -83,17 +83,18 @@ Object.defineProperty(exports, "plain", { enumerable: true, get: function () { return expression_1.plain; } }); | ||
Object.defineProperty(exports, "analyze", { enumerable: true, get: function () { return expression_1.analyze; } }); | ||
var v1_2 = require("./internal/ot/room/v1"); | ||
Object.defineProperty(exports, "dbState", { enumerable: true, get: function () { return v1_2.dbState; } }); | ||
Object.defineProperty(exports, "state", { enumerable: true, get: function () { return v1_2.state; } }); | ||
Object.defineProperty(exports, "upOperation", { enumerable: true, get: function () { return v1_2.upOperation; } }); | ||
Object.defineProperty(exports, "downOperation", { enumerable: true, get: function () { return v1_2.downOperation; } }); | ||
Object.defineProperty(exports, "toClientState", { enumerable: true, get: function () { return v1_2.toClientState; } }); | ||
Object.defineProperty(exports, "toUpOperation", { enumerable: true, get: function () { return v1_2.toUpOperation; } }); | ||
Object.defineProperty(exports, "toDownOperation", { enumerable: true, get: function () { return v1_2.toDownOperation; } }); | ||
Object.defineProperty(exports, "apply", { enumerable: true, get: function () { return v1_2.apply; } }); | ||
Object.defineProperty(exports, "applyBack", { enumerable: true, get: function () { return v1_2.applyBack; } }); | ||
Object.defineProperty(exports, "composeDownOperation", { enumerable: true, get: function () { return v1_2.composeDownOperation; } }); | ||
Object.defineProperty(exports, "restore", { enumerable: true, get: function () { return v1_2.restore; } }); | ||
Object.defineProperty(exports, "diff", { enumerable: true, get: function () { return v1_2.diff; } }); | ||
Object.defineProperty(exports, "serverTransform", { enumerable: true, get: function () { return v1_2.serverTransform; } }); | ||
Object.defineProperty(exports, "clientTransform", { enumerable: true, get: function () { return v1_2.clientTransform; } }); | ||
var functions_1 = require("./internal/ot/room/functions"); | ||
Object.defineProperty(exports, "toClientState", { enumerable: true, get: function () { return functions_1.toClientState; } }); | ||
Object.defineProperty(exports, "toUpOperation", { enumerable: true, get: function () { return functions_1.toUpOperation; } }); | ||
Object.defineProperty(exports, "toDownOperation", { enumerable: true, get: function () { return functions_1.toDownOperation; } }); | ||
Object.defineProperty(exports, "apply", { enumerable: true, get: function () { return functions_1.apply; } }); | ||
Object.defineProperty(exports, "applyBack", { enumerable: true, get: function () { return functions_1.applyBack; } }); | ||
Object.defineProperty(exports, "composeDownOperation", { enumerable: true, get: function () { return functions_1.composeDownOperation; } }); | ||
Object.defineProperty(exports, "restore", { enumerable: true, get: function () { return functions_1.restore; } }); | ||
Object.defineProperty(exports, "diff", { enumerable: true, get: function () { return functions_1.diff; } }); | ||
Object.defineProperty(exports, "serverTransform", { enumerable: true, get: function () { return functions_1.serverTransform; } }); | ||
Object.defineProperty(exports, "clientTransform", { enumerable: true, get: function () { return functions_1.clientTransform; } }); | ||
var types_2 = require("./internal/ot/room/types"); | ||
Object.defineProperty(exports, "dbState", { enumerable: true, get: function () { return types_2.dbState; } }); | ||
Object.defineProperty(exports, "state", { enumerable: true, get: function () { return types_2.state; } }); | ||
Object.defineProperty(exports, "upOperation", { enumerable: true, get: function () { return types_2.upOperation; } }); | ||
Object.defineProperty(exports, "downOperation", { enumerable: true, get: function () { return types_2.downOperation; } }); | ||
var converter_1 = require("./internal/ot/room/converter"); | ||
@@ -108,31 +109,32 @@ Object.defineProperty(exports, "parseState", { enumerable: true, get: function () { return converter_1.parseState; } }); | ||
Object.defineProperty(exports, "exactDownOperation", { enumerable: true, get: function () { return converter_1.exactDownOperation; } }); | ||
var v1_3 = require("./internal/ot/boardLocation/v1"); | ||
Object.defineProperty(exports, "applyBoardLocation", { enumerable: true, get: function () { return v1_3.apply; } }); | ||
Object.defineProperty(exports, "boardLocationDiff", { enumerable: true, get: function () { return v1_3.diff; } }); | ||
Object.defineProperty(exports, "toBoardLocationUpOperation", { enumerable: true, get: function () { return v1_3.toUpOperation; } }); | ||
var v1_4 = require("./internal/ot/room/participant/v1"); | ||
Object.defineProperty(exports, "Master", { enumerable: true, get: function () { return v1_4.Master; } }); | ||
Object.defineProperty(exports, "Player", { enumerable: true, get: function () { return v1_4.Player; } }); | ||
Object.defineProperty(exports, "Spectator", { enumerable: true, get: function () { return v1_4.Spectator; } }); | ||
var v1_5 = require("./internal/ot/piece/v1"); | ||
Object.defineProperty(exports, "applyPiece", { enumerable: true, get: function () { return v1_5.apply; } }); | ||
Object.defineProperty(exports, "pieceDiff", { enumerable: true, get: function () { return v1_5.diff; } }); | ||
Object.defineProperty(exports, "toPieceUpOperation", { enumerable: true, get: function () { return v1_5.toUpOperation; } }); | ||
var v1_6 = require("./internal/ot/room/participant/board/v1"); | ||
Object.defineProperty(exports, "applyBoard", { enumerable: true, get: function () { return v1_6.apply; } }); | ||
Object.defineProperty(exports, "boardDiff", { enumerable: true, get: function () { return v1_6.diff; } }); | ||
Object.defineProperty(exports, "toBoardUpOperation", { enumerable: true, get: function () { return v1_6.toUpOperation; } }); | ||
var v1_7 = require("./internal/ot/room/participant/character/v1"); | ||
Object.defineProperty(exports, "applyCharacter", { enumerable: true, get: function () { return v1_7.apply; } }); | ||
Object.defineProperty(exports, "characterDiff", { enumerable: true, get: function () { return v1_7.diff; } }); | ||
Object.defineProperty(exports, "toCharacterUpOperation", { enumerable: true, get: function () { return v1_7.toUpOperation; } }); | ||
var v1_8 = require("./internal/ot/room/participant/character/strParam/v1"); | ||
Object.defineProperty(exports, "applyStrParamCharacter", { enumerable: true, get: function () { return v1_8.apply; } }); | ||
Object.defineProperty(exports, "strParamcharacterDiff", { enumerable: true, get: function () { return v1_8.diff; } }); | ||
Object.defineProperty(exports, "toCharacterStrParamUpOperation", { enumerable: true, get: function () { return v1_8.toUpOperation; } }); | ||
var v1_9 = require("./internal/ot/room/participant/character/dicePieceValue/v1"); | ||
Object.defineProperty(exports, "applyDicePieceValue", { enumerable: true, get: function () { return v1_9.apply; } }); | ||
Object.defineProperty(exports, "dicePieceValueDiff", { enumerable: true, get: function () { return v1_9.diff; } }); | ||
Object.defineProperty(exports, "toDicePieceValueUpOperation", { enumerable: true, get: function () { return v1_9.toUpOperation; } }); | ||
Object.defineProperty(exports, "dicePieceValueStrIndexes", { enumerable: true, get: function () { return v1_9.dicePieceValueStrIndexes; } }); | ||
var functions_2 = require("./internal/ot/boardLocation/functions"); | ||
Object.defineProperty(exports, "applyBoardLocation", { enumerable: true, get: function () { return functions_2.apply; } }); | ||
Object.defineProperty(exports, "boardLocationDiff", { enumerable: true, get: function () { return functions_2.diff; } }); | ||
Object.defineProperty(exports, "toBoardLocationUpOperation", { enumerable: true, get: function () { return functions_2.toUpOperation; } }); | ||
var types_3 = require("./internal/ot/room/participant/types"); | ||
Object.defineProperty(exports, "Master", { enumerable: true, get: function () { return types_3.Master; } }); | ||
Object.defineProperty(exports, "Player", { enumerable: true, get: function () { return types_3.Player; } }); | ||
Object.defineProperty(exports, "Spectator", { enumerable: true, get: function () { return types_3.Spectator; } }); | ||
var functions_3 = require("./internal/ot/piece/functions"); | ||
Object.defineProperty(exports, "applyPiece", { enumerable: true, get: function () { return functions_3.apply; } }); | ||
Object.defineProperty(exports, "pieceDiff", { enumerable: true, get: function () { return functions_3.diff; } }); | ||
Object.defineProperty(exports, "toPieceUpOperation", { enumerable: true, get: function () { return functions_3.toUpOperation; } }); | ||
var functions_4 = require("./internal/ot/room/participant/board/functions"); | ||
Object.defineProperty(exports, "applyBoard", { enumerable: true, get: function () { return functions_4.apply; } }); | ||
Object.defineProperty(exports, "boardDiff", { enumerable: true, get: function () { return functions_4.diff; } }); | ||
Object.defineProperty(exports, "toBoardUpOperation", { enumerable: true, get: function () { return functions_4.toUpOperation; } }); | ||
var functions_5 = require("./internal/ot/room/participant/character/functions"); | ||
Object.defineProperty(exports, "applyCharacter", { enumerable: true, get: function () { return functions_5.apply; } }); | ||
Object.defineProperty(exports, "characterDiff", { enumerable: true, get: function () { return functions_5.diff; } }); | ||
Object.defineProperty(exports, "toCharacterUpOperation", { enumerable: true, get: function () { return functions_5.toUpOperation; } }); | ||
var functions_6 = require("./internal/ot/room/participant/character/strParam/functions"); | ||
Object.defineProperty(exports, "applyStrParamCharacter", { enumerable: true, get: function () { return functions_6.apply; } }); | ||
Object.defineProperty(exports, "strParamcharacterDiff", { enumerable: true, get: function () { return functions_6.diff; } }); | ||
Object.defineProperty(exports, "toCharacterStrParamUpOperation", { enumerable: true, get: function () { return functions_6.toUpOperation; } }); | ||
var functions_7 = require("./internal/ot/room/participant/character/dicePieceValue/functions"); | ||
Object.defineProperty(exports, "applyDicePieceValue", { enumerable: true, get: function () { return functions_7.apply; } }); | ||
Object.defineProperty(exports, "dicePieceValueDiff", { enumerable: true, get: function () { return functions_7.diff; } }); | ||
Object.defineProperty(exports, "toDicePieceValueUpOperation", { enumerable: true, get: function () { return functions_7.toUpOperation; } }); | ||
var types_4 = require("./internal/ot/room/participant/character/dicePieceValue/types"); | ||
Object.defineProperty(exports, "dicePieceValueStrIndexes", { enumerable: true, get: function () { return types_4.dicePieceValueStrIndexes; } }); | ||
var converter_2 = require("./internal/ot/room/participant/character/dicePieceValue/converter"); | ||
@@ -142,22 +144,25 @@ Object.defineProperty(exports, "decodeDicePieceValue", { enumerable: true, get: function () { return converter_2.decode; } }); | ||
Object.defineProperty(exports, "exactDicePieceValue", { enumerable: true, get: function () { return converter_2.exact; } }); | ||
var v1_10 = require("./internal/ot/room/participant/character/dicePieceValue/dieValue/v1"); | ||
Object.defineProperty(exports, "applyDieValue", { enumerable: true, get: function () { return v1_10.apply; } }); | ||
Object.defineProperty(exports, "dieValueDiff", { enumerable: true, get: function () { return v1_10.diff; } }); | ||
Object.defineProperty(exports, "toDieValueUpOperation", { enumerable: true, get: function () { return v1_10.toUpOperation; } }); | ||
var log_v1_1 = require("./internal/ot/room/participant/character/dicePieceValue/log-v1"); | ||
Object.defineProperty(exports, "dicePieceValueLog", { enumerable: true, get: function () { return log_v1_1.type; } }); | ||
var v1_11 = require("./internal/ot/room/participant/imagePieceValue/v1"); | ||
Object.defineProperty(exports, "applyImagePieceValue", { enumerable: true, get: function () { return v1_11.apply; } }); | ||
Object.defineProperty(exports, "imagePieceValueDiff", { enumerable: true, get: function () { return v1_11.diff; } }); | ||
Object.defineProperty(exports, "toImagePieceValueUpOperation", { enumerable: true, get: function () { return v1_11.toUpOperation; } }); | ||
var v1_12 = require("./internal/ot/room/participant/character/numberPieceValue/v1"); | ||
Object.defineProperty(exports, "applyNumberPieceValue", { enumerable: true, get: function () { return v1_12.apply; } }); | ||
Object.defineProperty(exports, "numberPieceValueDiff", { enumerable: true, get: function () { return v1_12.diff; } }); | ||
Object.defineProperty(exports, "toNumberPieceValueUpOperation", { enumerable: true, get: function () { return v1_12.toUpOperation; } }); | ||
var converter_3 = require("./internal/ot/room/participant/character/numberPieceValue/converter"); | ||
Object.defineProperty(exports, "decodeNumberPieceValue", { enumerable: true, get: function () { return converter_3.decode; } }); | ||
Object.defineProperty(exports, "parseNumberPieceValue", { enumerable: true, get: function () { return converter_3.parse; } }); | ||
Object.defineProperty(exports, "exactNumberPieceValue", { enumerable: true, get: function () { return converter_3.exact; } }); | ||
var log_v1_2 = require("./internal/ot/room/participant/character/numberPieceValue/log-v1"); | ||
Object.defineProperty(exports, "numberPieceValueLog", { enumerable: true, get: function () { return log_v1_2.type; } }); | ||
var functions_8 = require("./internal/ot/room/participant/character/dicePieceValue/dieValue/functions"); | ||
Object.defineProperty(exports, "applyDieValue", { enumerable: true, get: function () { return functions_8.apply; } }); | ||
Object.defineProperty(exports, "dieValueDiff", { enumerable: true, get: function () { return functions_8.diff; } }); | ||
Object.defineProperty(exports, "toDieValueUpOperation", { enumerable: true, get: function () { return functions_8.toUpOperation; } }); | ||
var log_1 = require("./internal/ot/room/participant/character/dicePieceValue/log"); | ||
Object.defineProperty(exports, "dicePieceValueLog", { enumerable: true, get: function () { return log_1.type; } }); | ||
var functions_9 = require("./internal/ot/room/participant/imagePieceValue/functions"); | ||
Object.defineProperty(exports, "applyImagePieceValue", { enumerable: true, get: function () { return functions_9.apply; } }); | ||
Object.defineProperty(exports, "imagePieceValueDiff", { enumerable: true, get: function () { return functions_9.diff; } }); | ||
Object.defineProperty(exports, "toImagePieceValueUpOperation", { enumerable: true, get: function () { return functions_9.toUpOperation; } }); | ||
var functions_10 = require("./internal/ot/room/participant/character/stringPieceValue/functions"); | ||
Object.defineProperty(exports, "applyNumberPieceValue", { enumerable: true, get: function () { return functions_10.apply; } }); | ||
Object.defineProperty(exports, "stringPieceValueDiff", { enumerable: true, get: function () { return functions_10.diff; } }); | ||
Object.defineProperty(exports, "toStringPieceValueUpOperation", { enumerable: true, get: function () { return functions_10.toUpOperation; } }); | ||
var converter_3 = require("./internal/ot/room/participant/character/stringPieceValue/converter"); | ||
Object.defineProperty(exports, "decodeStringPieceValue", { enumerable: true, get: function () { return converter_3.decode; } }); | ||
Object.defineProperty(exports, "parseStringPieceValue", { enumerable: true, get: function () { return converter_3.parse; } }); | ||
Object.defineProperty(exports, "exactStringPieceValue", { enumerable: true, get: function () { return converter_3.exact; } }); | ||
var log_2 = require("./internal/ot/room/participant/character/stringPieceValue/log"); | ||
Object.defineProperty(exports, "stringPieceValueLog", { enumerable: true, get: function () { return log_2.type; } }); | ||
var types_5 = require("./internal/ot/room/memo/types"); | ||
Object.defineProperty(exports, "Plain", { enumerable: true, get: function () { return types_5.Plain; } }); | ||
Object.defineProperty(exports, "Markdown", { enumerable: true, get: function () { return types_5.Markdown; } }); | ||
var record_1 = require("./internal/ot/util/record"); | ||
@@ -177,8 +182,8 @@ Object.defineProperty(exports, "isIdRecord", { enumerable: true, get: function () { return record_1.isIdRecord; } }); | ||
Object.defineProperty(exports, "RequestedBy", { enumerable: true, get: function () { return type_1.RequestedBy; } }); | ||
var log_v1_3 = require("./internal/ot/piece/log-v1"); | ||
Object.defineProperty(exports, "updateType", { enumerable: true, get: function () { return log_v1_3.updateType; } }); | ||
Object.defineProperty(exports, "createType", { enumerable: true, get: function () { return log_v1_3.createType; } }); | ||
Object.defineProperty(exports, "deleteType", { enumerable: true, get: function () { return log_v1_3.deleteType; } }); | ||
var log_v1_4 = require("./internal/ot/room/log-v1"); | ||
Object.defineProperty(exports, "createLogs", { enumerable: true, get: function () { return log_v1_4.createLogs; } }); | ||
//# sour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Sc7XG5cbmV4cG9ydCB7IGNyZWF0ZUxvZ3MgfSBmcm9tICcuL2ludGVybmFsL290L3Jvb20vbG9nLXYxJztcbiJdfQ== | ||
var log_3 = require("./internal/ot/piece/log"); | ||
Object.defineProperty(exports, "updateType", { enumerable: true, get: function () { return log_3.updateType; } }); | ||
Object.defineProperty(exports, "createType", { enumerable: true, get: function () { return log_3.createType; } }); | ||
Object.defineProperty(exports, "deleteType", { enumerable: true, get: function () { return log_3.deleteType; } }); | ||
var log_4 = require("./internal/ot/room/log"); | ||
Object.defineProperty(exports, "createLogs", { enumerable: true, get: function () { return log_4.createLogs; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsb0dBQXNGO0FBRXRGLG9GQUFzRTtBQUUvRCxNQUFNLG1CQUFtQixHQUFHLENBQUMsRUFDaEMsU0FBUyxFQUNULFNBQVMsR0FJWixFQUErRixFQUFFO0lBQzlGLE9BQU8sZUFBZSxDQUFDLElBQUksQ0FBK0M7UUFDdEUsU0FBUztRQUNULFNBQVM7UUFDVCxTQUFTLEVBQUUsTUFBTSxDQUFDLEVBQUU7WUFDaEIsTUFBTSxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUNsQyxJQUFJLElBQUksSUFBSSxJQUFJLEVBQUU7Z0JBQ2QsT0FBTyxTQUFTLENBQUM7YUFDcEI7WUFDRCxPQUFPLE9BQU8sQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDdkMsQ0FBQztLQUNKLENBQUMsQ0FBQztBQUNQLENBQUMsQ0FBQztBQWxCVyxRQUFBLG1CQUFtQix1QkF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mF0aW9uLFxufSBmcm9tICcuL2ludGVybmFsL290L3V0aWwvcmVjb3JkT3BlcmF0aW9uJztcblxuZXhwb3J0IHtcbiAgICBEb3duT3BlcmF0aW9uIGFzIFRleHREb3duT3BlcmF0aW9uLFxuICAgIFVwT3BlcmF0aW9uIGFzIFRleHRVcE9wZXJhdGlvbixcbiAgICBUd29XYXlPcGVyYXRpb24gYXMgVGV4dFR3b1dheU9wZXJhdGlvbixcbiAgICBhcHBseSBhcyBhcHBseVRleHQsXG4gICAgZGlmZiBhcyB0ZXh0RGlmZixcbiAgICB0b1VwT3BlcmF0aW9uIGFzIHRvVGV4dFVwT3BlcmF0aW9uLFxufSBmcm9tICcuL2ludGVybmFsL290L3V0aWwvdGV4dE9wZXJhdGlvbic7XG5cbmV4cG9ydCB7IGNsaWVudCwgYWRtaW4sIHJlc3RyaWN0LCBSZXF1ZXN0ZWRCeSB9IGZyb20gJy4vaW50ZXJuYWwvb3QvdXRpbC90eXBlJztcblxuZXhwb3J0IHsgdXBkYXRlVHlwZSwgY3JlYXRlVHlwZSwgZGVsZXRlVHlwZSB9IGZyb20gJy4vaW50ZXJuYWwvb3QvcGllY2UvbG9nJztcblxuZXhwb3J0IHsgY3JlYXRlTG9ncyB9IGZyb20gJy4vaW50ZXJuYWwvb3Qvcm9vbS9sb2cnO1xuIl19 |
@@ -22,12 +22,21 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.exactDownOperation = exports.decodeDownOperation = exports.stringifyUpOperation = exports.parseUpOperation = exports.exactDbState = exports.decodeDbState = exports.decodeState = exports.stringifyState = exports.parseState = void 0; | ||
exports.exactDownOperation = exports.decodeDownOperation = exports.stringifyUpOperation = exports.parseUpOperation = exports.exactDbState = exports.decodeDbState = exports.stringifyState = exports.parseState = exports.decodeState = void 0; | ||
const t = __importStar(require("io-ts")); | ||
const Room = __importStar(require("./v1")); | ||
const parseState = (source) => { | ||
const result = t.exact(Room.state).decode(JSON.parse(source)); | ||
if (result._tag === 'Left') { | ||
throw new Error('parseState failure'); | ||
const migrate_1 = require("./migrate"); | ||
const Room = __importStar(require("./types")); | ||
const decodeState = (source) => { | ||
const result = t.exact(Room.state).decode(source); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.stateV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return (0, migrate_1.migrateState)(resultV1.right); | ||
} | ||
throw new Error('decodeState failure'); | ||
}; | ||
exports.decodeState = decodeState; | ||
const parseState = (source) => { | ||
return (0, exports.decodeState)(JSON.parse(source)); | ||
}; | ||
exports.parseState = parseState; | ||
@@ -39,16 +48,12 @@ const stringifyState = (source) => { | ||
exports.stringifyState = stringifyState; | ||
const decodeState = (source) => { | ||
const result = t.exact(Room.state).decode(source); | ||
if (result._tag === 'Left') { | ||
throw new Error('decodeState failure'); | ||
} | ||
return result.right; | ||
}; | ||
exports.decodeState = decodeState; | ||
const decodeDbState = (source) => { | ||
const result = t.exact(Room.dbState).decode(source); | ||
if (result._tag === 'Left') { | ||
throw new Error('decodeDbState failure'); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.dbStateV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return (0, migrate_1.migrateDbState)(resultV1.right); | ||
} | ||
throw new Error('decodeDbState failure'); | ||
}; | ||
@@ -60,9 +65,16 @@ exports.decodeDbState = decodeDbState; | ||
exports.exactDbState = exactDbState; | ||
const parseUpOperation = (source) => { | ||
const result = t.exact(Room.upOperation).decode(JSON.parse(source)); | ||
if (result._tag === 'Left') { | ||
throw new Error('parseUpOperation failure'); | ||
const decodeUpOperation = (source) => { | ||
const result = t.exact(Room.upOperation).decode(source); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.upOperationV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return (0, migrate_1.migrateUpOperation)(resultV1.right); | ||
} | ||
throw new Error('decodeUpOperation failure'); | ||
}; | ||
const parseUpOperation = (source) => { | ||
return decodeUpOperation(JSON.parse(source)); | ||
}; | ||
exports.parseUpOperation = parseUpOperation; | ||
@@ -76,6 +88,10 @@ const stringifyUpOperation = (source) => { | ||
const result = t.exact(Room.downOperation).decode(source); | ||
if (result._tag === 'Left') { | ||
throw new Error('decodeDownOperation failure'); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.downOperationV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return (0, migrate_1.migrateDownOperation)(resultV1.right); | ||
} | ||
throw new Error('decodeDownOperation failure'); | ||
}; | ||
@@ -87,2 +103,2 @@ exports.decodeDownOperation = decodeDownOperation; | ||
exports.exactDownOperation = exactDownOperation; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3Jvb20vY29udmVydGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx5Q0FBMkI7QUFDM0IsMkNBQTZCO0FBRXRCLE1BQU0sVUFBVSxHQUFHLENBQUMsTUFBYyxFQUFjLEVBQUU7SUFDckQsTUFBTSxNQUFNLEdBQUcsQ0FBQyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztJQUM5RCxJQUFJLE1BQU0sQ0FBQyxJQUFJLEtBQUssTUFBTSxFQUFFO1FBQ3hCLE1BQU0sSUFBSSxLQUFLLENBQUMsb0JBQW9CLENBQUMsQ0FBQztLQUN6QztJQUNELE9BQU8s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ZXN1bHRWMS5fdGFnID09PSAnUmlnaHQnKSB7XG4gICAgICAgIHJldHVybiBtaWdyYXRlRG93bk9wZXJhdGlvbihyZXN1bHRWMS5yaWdodCk7XG4gICAgfVxuICAgIHRocm93IG5ldyBFcnJvcignZGVjb2RlRG93bk9wZXJhdGlvbiBmYWlsdXJlJyk7XG59O1xuXG5leHBvcnQgY29uc3QgZXhhY3REb3duT3BlcmF0aW9uID0gKHNvdXJjZTogUm9vbS5Eb3duT3BlcmF0aW9uKTogUm9vbS5Eb3duT3BlcmF0aW9uID0+IHtcbiAgICByZXR1cm4gdC5leGFjdChSb29tLmRvd25PcGVyYXRpb24pLmVuY29kZShzb3VyY2UpO1xufTtcbiJdfQ== |
@@ -23,3 +23,3 @@ "use strict"; | ||
exports.exact = exports.parse = exports.decode = void 0; | ||
const DiePieceValueLog = __importStar(require("./log-v1")); | ||
const DiePieceValueLog = __importStar(require("./log")); | ||
const decode = (source) => { | ||
@@ -41,2 +41,2 @@ const result = DiePieceValueLog.exactType.decode(source); | ||
exports.exact = exact; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3Jvb20vcGFydGljaXBhbnQvY2hhcmFjdGVyL2RpY2VQaWVjZVZhbHVlL2NvbnZlcnRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkRBQTZDO0FBRXRDLE1BQU0sTUFBTSxHQUFHLENBQUMsTUFBZSxFQUF5QixFQUFFO0lBQzdELE1BQU0sTUFBTSxHQUFHLGdCQUFnQixDQUFDLFNBQVMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDekQsSUFBSSxNQUFNLENBQUMsSUFBSSxLQU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M7QUFDdEMsQ0FBQyxDQUFDO0FBRlcsUUFBQSxLQUFLLFNBRWhCO0FBRUssTUFBTSxLQUFLLEdBQUcsQ0FBQyxNQUE2QixFQUF5QixFQUFFO0lBQzFFLE9BQU8sZ0JBQWdCLENBQUMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUNyRCxDQUFDLENBQUM7QUFGVyxRQUFBLEtBQUssU0FFaEIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBEaWVQaWVjZVZhbHVlTG9nIGZyb20gJy4vbG9nJztcblxuZXhwb3J0IGNvbnN0IGRlY29kZSA9IChzb3VyY2U6IHVua25vd24pOiBEaWVQaWVjZVZhbHVlTG9nLlR5cGUgPT4ge1xuICAgIGNvbnN0IHJlc3VsdCA9IERpZVBpZWNlVmFsdWVMb2cuZXhhY3RUeXBlLmRlY29kZShzb3VyY2UpO1xuICAgIGlmIChyZXN1bHQuX3RhZyA9PT0gJ0xlZnQnKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcignZGVjb2RlIGZhaWx1cmUnKTtcbiAgICB9XG4gICAgcmV0dXJuIHJlc3VsdC5yaWdodDtcbn07XG5cbmV4cG9ydCBjb25zdCBwYXJzZSA9IChzb3VyY2U6IHN0cmluZyk6IERpZVBpZWNlVmFsdWVMb2cuVHlwZSA9PiB7XG4gICAgcmV0dXJuIGRlY29kZShKU09OLnBhcnNlKHNvdXJjZSkpO1xufTtcblxuZXhwb3J0IGNvbnN0IGV4YWN0ID0gKHNvdXJjZTogRGllUGllY2VWYWx1ZUxvZy5UeXBlKTogRGllUGllY2VWYWx1ZUxvZy5UeXBlID0+IHtcbiAgICByZXR1cm4gRGllUGllY2VWYWx1ZUxvZy5leGFjdFR5cGUuZW5jb2RlKHNvdXJjZSk7XG59O1xuIl19 |
@@ -23,3 +23,3 @@ "use strict"; | ||
exports.exact = exports.parse = exports.decode = void 0; | ||
const NumberPieceValueLog = __importStar(require("./log-v1")); | ||
const NumberPieceValueLog = __importStar(require("./log")); | ||
const decode = (source) => { | ||
@@ -41,2 +41,2 @@ const result = NumberPieceValueLog.exactType.decode(source); | ||
exports.exact = exact; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3Jvb20vcGFydGljaXBhbnQvY2hhcmFjdGVyL251bWJlclBpZWNlVmFsdWUvY29udmVydGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw4REFBZ0Q7QUFFekMsTUFBTSxNQUFNLEdBQUcsQ0FBQyxNQUFlLEVBQTRCLEVBQUU7SUFDaEUsTUFBTSxNQUFNLEdBQUcsbUJBQW1CLENBQUMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUM1RCxJQUFJLE1BQU0sQ0FBQyxJQUFJLEtBQUssTUFBTSxFQUFFO1FBQ3hCLE1BQU0sSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztLQUNyQztJQUNELE9BQU8sTUFBTSxDQUFDLEtBQUssQ0FBQztBQUN4QixDQUFDLENBQUM7QUFOVyxRQUFBLE1BQU0sVUFNakI7QUFFSyxNQUFNLEtBQUssR0FBRyxDQUFDLE1BQWMsRUFBNEIsRUFBRTtJQUM5RCxPQUFPLElBQUEsY0FBTSxFQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQztBQUN0QyxDQUFDLENBQUM7QUFGVyxRQUFBLEtBQUssU0FFaEI7QUFFSyxNQUFNLEtBQUssR0FBRyxDQUFDLE1BQWdDLEVBQTRCLEVBQUU7SUFDaEYsT0FBTyxtQkFBbUIsQ0F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c3QgcmVzdWx0ID0gTnVtYmVyUGllY2VWYWx1ZUxvZy5leGFjdFR5cGUuZGVjb2RlKHNvdXJjZSk7XG4gICAgaWYgKHJlc3VsdC5fdGFnID09PSAnTGVmdCcpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdkZWNvZGUgZmFpbHVyZScpO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0LnJpZ2h0O1xufTtcblxuZXhwb3J0IGNvbnN0IHBhcnNlID0gKHNvdXJjZTogc3RyaW5nKTogTnVtYmVyUGllY2VWYWx1ZUxvZy5UeXBlID0+IHtcbiAgICByZXR1cm4gZGVjb2RlKEpTT04ucGFyc2Uoc291cmNlKSk7XG59O1xuXG5leHBvcnQgY29uc3QgZXhhY3QgPSAoc291cmNlOiBOdW1iZXJQaWVjZVZhbHVlTG9nLlR5cGUpOiBOdW1iZXJQaWVjZVZhbHVlTG9nLlR5cGUgPT4ge1xuICAgIHJldHVybiBOdW1iZXJQaWVjZVZhbHVlTG9nLmV4YWN0VHlwZS5lbmNvZGUoc291cmNlKTtcbn07XG4iXX0= |
@@ -6,5 +6,8 @@ "use strict"; | ||
const isValidKey = (key) => { | ||
if (key.length >= 11) { | ||
return false; | ||
} | ||
return key.match(/^([0-9a-zA-Z]|-|_)+$/g) != null; | ||
}; | ||
exports.isValidKey = isValidKey; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNWYWxpZEtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9vdC91dGlsL2lzVmFsaWRLZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0VBQStFO0FBQ3hFLE1BQU0sVUFBVSxHQUFHLENBQUMsR0FBVyxFQUFXLEVBQUU7SUFDL0MsT0FBTyxHQUFHLENBQUMsS0FBSyxDQUFDLHVCQUF1QixDQU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rjgZ3jgozjgYzjgYLjgovjga7jga9zZXJ2ZXJUcmFuc2Zvcm3jga7jgajjgY3jga7jgb/jgarjga7jgafjgIFzZXJ2ZXJUcmFuc2Zvcm3ku6XlpJbjgafjga/kvb/jgo/jgarjgY/jgabjgojjgYRcbmV4cG9ydCBjb25zdCBpc1ZhbGlkS2V5ID0gKGtleTogc3RyaW5nKTogYm9vbGVhbiA9PiB7XG4gICAgaWYgKGtleS5sZW5ndGggPj0gMTEpIHtcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgICByZXR1cm4ga2V5Lm1hdGNoKC9eKFswLTlhLXpBLVpdfC18XykrJC9nKSAhPSBudWxsO1xufTtcbiJdfQ== |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.diff = exports.clientTransform = exports.serverTransform = exports.composeDownOperation = exports.applyBack = exports.apply = exports.restore = exports.toClientState = exports.upOperationFactory = exports.downOperationFactory = exports.stateFactory = void 0; | ||
exports.mapRecordOperation = exports.mapRecordDownOperation = exports.mapRecordUpOperation = exports.diff = exports.clientTransform = exports.serverTransform = exports.composeDownOperation = exports.applyBack = exports.apply = exports.restore = exports.toClientState = exports.upOperationFactory = exports.downOperationFactory = exports.stateFactory = void 0; | ||
const result_1 = require("@kizahasi/result"); | ||
@@ -183,2 +183,39 @@ const DualKeyRecordOperation = __importStar(require("./dualKeyRecordOperation")); | ||
exports.diff = diff; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkT3BlcmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3V0aWwvcmVjb3JkT3BlcmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2Q0FBMEM7QUFFM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bn07XG4iXX0= | ||
const dummyKey = 'dummyKey'; | ||
const mapRecordUpOperation = ({ source, mapState, mapOperation, }) => { | ||
const result = DualKeyRecordOperation.mapDualKeyRecordUpOperation({ | ||
source: { [dummyKey]: source }, | ||
mapState, | ||
mapOperation, | ||
})[dummyKey]; | ||
if (result == null) { | ||
throw new Error('this should not happen'); | ||
} | ||
return result; | ||
}; | ||
exports.mapRecordUpOperation = mapRecordUpOperation; | ||
const mapRecordDownOperation = ({ source, mapState, mapOperation, }) => { | ||
const result = DualKeyRecordOperation.mapDualKeyRecordDownOperation({ | ||
source: { [dummyKey]: source }, | ||
mapState, | ||
mapOperation, | ||
})[dummyKey]; | ||
if (result == null) { | ||
throw new Error('this should not happen'); | ||
} | ||
return result; | ||
}; | ||
exports.mapRecordDownOperation = mapRecordDownOperation; | ||
const mapRecordOperation = ({ source, mapReplace, mapUpdate, }) => { | ||
const result = DualKeyRecordOperation.mapDualKeyRecordOperation({ | ||
source: { [dummyKey]: source }, | ||
mapReplace, | ||
mapUpdate, | ||
})[dummyKey]; | ||
if (result == null) { | ||
throw new Error('this should not happen'); | ||
} | ||
return result; | ||
}; | ||
exports.mapRecordOperation = mapRecordOperation; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkT3BlcmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3V0aWwvcmVjb3JkT3BlcmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2Q0FBMEM7QUFFMUMsaUZBQW1FO0FBQ25FLHFDQUFtRDtBQUNuRCxxRUFRa0M7QUFZM0IsTUFBTSxZQUFZLEdBQUcsQ0FDeEIsR0FBUyxFQUNULEtBQWEsRUFDZixFQUFFLENBQUMsSUFBQSxlQUFNLEVBQ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SBudWxsKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0O1xufTtcbiJdfQ== |
@@ -52,2 +52,5 @@ "use strict"; | ||
exports.recordUpOperationElementFactory = recordUpOperationElementFactory; | ||
/** | ||
* @deprecated Consider using map(Dual)?KeyRecord(Up|Down)?Operation | ||
*/ | ||
const mapRecordOperationElement = ({ source, mapOperation, mapReplace, }) => { | ||
@@ -66,2 +69,2 @@ if (source.type === exports.replace) { | ||
exports.mapRecordOperationElement = mapRecordOperationElement; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkT3BlcmF0aW9uRWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9vdC91dGlsL3JlY29yZE9wZXJhdGlvbkVsZW1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHlDQUEyQjtBQUVkLFFBQUEsTUFBTSxHQUFHLFFBQVEsQ0FBQztBQUNsQixRQUFBLE9BQU8sR0FBRyxTQUFTLENBQUM7QUFFMUIsTUFBTSxpQ0FBaUMsR0FBRyxDQUk3QyxLQUFhLEVBQ2IsU0FBcUIsRUFDdkIsRUFBRSxDQUNBLENBQUMsQ0FBQyxLQUFLLENBQUM7SUFDSixDQUFDLENBQUMsSUFBSSxDQUFDO1FBQ0gsSUFBSSxFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUMsZUFBTyxDQUFDO1FBQ3hCLE9BQU8sRUFBRSxDQUFDLENBQUMsT0FBTyxDQUFDO1lBQ2YsUUFBUSxFQUFFLEtBQUs7U0FDbEIsQ0FBQztLQUNMLENBQUM7SUFDRixDQUFDLENBQUMsSUFBSSxDQUFDO1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bGFjZTI7XG4gICAgICB9XG4gICAgfCB7XG4gICAgICAgICAgdHlwZTogdHlwZW9mIHVwZGF0ZTtcbiAgICAgICAgICB1cGRhdGU6IFRVcGRhdGUyO1xuICAgICAgfSA9PiB7XG4gICAgaWYgKHNvdXJjZS50eXBlID09PSByZXBsYWNlKSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB0eXBlOiByZXBsYWNlLFxuICAgICAgICAgICAgcmVwbGFjZTogbWFwUmVwbGFjZShzb3VyY2UucmVwbGFjZSksXG4gICAgICAgIH07XG4gICAgfVxuICAgIHJldHVybiB7XG4gICAgICAgIHR5cGU6IHVwZGF0ZSxcbiAgICAgICAgdXBkYXRlOiBtYXBPcGVyYXRpb24oc291cmNlLnVwZGF0ZSksXG4gICAgfTtcbn07XG4iXX0= |
@@ -1,2 +0,2 @@ | ||
import * as Command from './internal/ot/room/participant/character/command/v1'; | ||
import * as Command from './internal/ot/room/participant/character/command/functions'; | ||
import * as RecordOperation from './internal/ot/util/recordOperation'; | ||
@@ -23,21 +23,24 @@ export const privateCommandsDiff = ({ prevState, nextState, }) => { | ||
export { isValidVarToml, parseToml, getVariableFromVarTomlObject, isValidChatPalette, generateChatPalette, } from './internal/toml'; | ||
export { testCommand, execCharacterCommand } from './internal/flocommand/main'; | ||
export { Default, Uploader, FirebaseStorage } from './internal/ot/filePath/v1'; | ||
export { testCommand, execCharacterCommand } from './internal/command/main'; | ||
export { Default, Uploader, FirebaseStorage } from './internal/ot/filePath/types'; | ||
export { plain, expr1, analyze } from './internal/expression'; | ||
export { dbState, state, upOperation, downOperation, toClientState, toUpOperation, toDownOperation, apply, applyBack, composeDownOperation, restore, diff, serverTransform, clientTransform, } from './internal/ot/room/v1'; | ||
export { toClientState, toUpOperation, toDownOperation, apply, applyBack, composeDownOperation, restore, diff, serverTransform, clientTransform, } from './internal/ot/room/functions'; | ||
export { dbState, state, upOperation, downOperation, } from './internal/ot/room/types'; | ||
export { parseState, stringifyState, decodeDbState, exactDbState, parseUpOperation, stringifyUpOperation, decodeDownOperation, exactDownOperation, } from './internal/ot/room/converter'; | ||
export { apply as applyBoardLocation, diff as boardLocationDiff, toUpOperation as toBoardLocationUpOperation, } from './internal/ot/boardLocation/v1'; | ||
export { Master, Player, Spectator, } from './internal/ot/room/participant/v1'; | ||
export { apply as applyPiece, diff as pieceDiff, toUpOperation as toPieceUpOperation, } from './internal/ot/piece/v1'; | ||
export { apply as applyBoard, diff as boardDiff, toUpOperation as toBoardUpOperation, } from './internal/ot/room/participant/board/v1'; | ||
export { apply as applyCharacter, diff as characterDiff, toUpOperation as toCharacterUpOperation, } from './internal/ot/room/participant/character/v1'; | ||
export { apply as applyStrParamCharacter, diff as strParamcharacterDiff, toUpOperation as toCharacterStrParamUpOperation, } from './internal/ot/room/participant/character/strParam/v1'; | ||
export { apply as applyDicePieceValue, diff as dicePieceValueDiff, toUpOperation as toDicePieceValueUpOperation, dicePieceValueStrIndexes, } from './internal/ot/room/participant/character/dicePieceValue/v1'; | ||
export { apply as applyBoardLocation, diff as boardLocationDiff, toUpOperation as toBoardLocationUpOperation, } from './internal/ot/boardLocation/functions'; | ||
export { Master, Player, Spectator, } from './internal/ot/room/participant/types'; | ||
export { apply as applyPiece, diff as pieceDiff, toUpOperation as toPieceUpOperation, } from './internal/ot/piece/functions'; | ||
export { apply as applyBoard, diff as boardDiff, toUpOperation as toBoardUpOperation, } from './internal/ot/room/participant/board/functions'; | ||
export { apply as applyCharacter, diff as characterDiff, toUpOperation as toCharacterUpOperation, } from './internal/ot/room/participant/character/functions'; | ||
export { apply as applyStrParamCharacter, diff as strParamcharacterDiff, toUpOperation as toCharacterStrParamUpOperation, } from './internal/ot/room/participant/character/strParam/functions'; | ||
export { apply as applyDicePieceValue, diff as dicePieceValueDiff, toUpOperation as toDicePieceValueUpOperation, } from './internal/ot/room/participant/character/dicePieceValue/functions'; | ||
export { dicePieceValueStrIndexes, } from './internal/ot/room/participant/character/dicePieceValue/types'; | ||
export { decode as decodeDicePieceValue, parse as parseDicePieceValue, exact as exactDicePieceValue, } from './internal/ot/room/participant/character/dicePieceValue/converter'; | ||
export { apply as applyDieValue, diff as dieValueDiff, toUpOperation as toDieValueUpOperation, } from './internal/ot/room/participant/character/dicePieceValue/dieValue/v1'; | ||
export { type as dicePieceValueLog, } from './internal/ot/room/participant/character/dicePieceValue/log-v1'; | ||
export { apply as applyImagePieceValue, diff as imagePieceValueDiff, toUpOperation as toImagePieceValueUpOperation, } from './internal/ot/room/participant/imagePieceValue/v1'; | ||
export { apply as applyNumberPieceValue, diff as numberPieceValueDiff, toUpOperation as toNumberPieceValueUpOperation, } from './internal/ot/room/participant/character/numberPieceValue/v1'; | ||
export { decode as decodeNumberPieceValue, parse as parseNumberPieceValue, exact as exactNumberPieceValue, } from './internal/ot/room/participant/character/numberPieceValue/converter'; | ||
export { type as numberPieceValueLog, } from './internal/ot/room/participant/character/numberPieceValue/log-v1'; | ||
export { apply as applyDieValue, diff as dieValueDiff, toUpOperation as toDieValueUpOperation, } from './internal/ot/room/participant/character/dicePieceValue/dieValue/functions'; | ||
export { type as dicePieceValueLog, } from './internal/ot/room/participant/character/dicePieceValue/log'; | ||
export { apply as applyImagePieceValue, diff as imagePieceValueDiff, toUpOperation as toImagePieceValueUpOperation, } from './internal/ot/room/participant/imagePieceValue/functions'; | ||
export { apply as applyNumberPieceValue, diff as stringPieceValueDiff, toUpOperation as toStringPieceValueUpOperation, } from './internal/ot/room/participant/character/stringPieceValue/functions'; | ||
export { decode as decodeStringPieceValue, parse as parseStringPieceValue, exact as exactStringPieceValue, } from './internal/ot/room/participant/character/stringPieceValue/converter'; | ||
export { type as stringPieceValueLog, } from './internal/ot/room/participant/character/stringPieceValue/log'; | ||
export { Plain, Markdown, } from './internal/ot/room/memo/types'; | ||
export { isIdRecord } from './internal/ot/util/record'; | ||
@@ -47,4 +50,4 @@ export { replace, update, } from './internal/ot/util/recordOperationElement'; | ||
export { client, admin, restrict, RequestedBy } from './internal/ot/util/type'; | ||
export { updateType, createType, deleteType } from './internal/ot/piece/log-v1'; | ||
export { createLogs } from './internal/ot/room/log-v1'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxxREFBcUQsQ0FBQztBQUMvRSxPQUFPLEtBQUssZUFBZSxNQUFNLG9DQUFvQyxDQUFDO0FBRXRFLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFHLENBQUMsRUFDaEMsU0FBUyxFQUNULFNBQVMsR0FJWixFQUFxRixFQUFFO0lBQ3BGLE9BQU8sZUFBZSxDQUFDLElBQUksQ0FBcUM7UUFDNUQsU0FBUztRQUNULFNBQVM7UUFDVCxTQUFTLEVBQUUsTUFBTSxDQUFDLEVBQUU7WUFDaEIsTUFBTSxJQUFJLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUNsQyxJQUFJLElBQUksSUFBSSxJQUFJLEVBQUU7Z0JBQ2QsT0FBTyxTQUFTLENBQUM7YUFDcEI7WUFDRCxPQUFPLE9BQU8sQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDdkMsQ0FBQztLQUNKLENBQUMsQ0FBQztBQUNQLENBQUMsQ0FBQztBQUVGLE9BQU8sRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxPQUFPLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUU1RSxPQUFPLEVBQUUsY0FBYyxFQUFrQixNQUFNLDJCQUEyQixDQUFDO0FBRTNFLE9BQU8sRUFFSCxjQUFjLEVBQ2QsV0FBVyxFQUVYLGVBQWUsRUFDZixZQUFZLEVBRVosZUFBZSxFQUNmLFlBQVksRUFF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bnQsXG4gICAgUmVjb3JkVXBPcGVyYXRpb25FbGVtZW50LFxufSBmcm9tICcuL2ludGVybmFsL290L3V0aWwvcmVjb3JkT3BlcmF0aW9uRWxlbWVudCc7XG5cbmV4cG9ydCB7XG4gICAgUmVjb3JkRG93bk9wZXJhdGlvbixcbiAgICBSZWNvcmRVcE9wZXJhdGlvbixcbiAgICBSZWNvcmRUd29XYXlPcGVyYXRpb24sXG59IGZyb20gJy4vaW50ZXJuYWwvb3QvdXRpbC9yZWNvcmRPcGVyYXRpb24nO1xuXG5leHBvcnQge1xuICAgIERvd25PcGVyYXRpb24gYXMgVGV4dERvd25PcGVyYXRpb24sXG4gICAgVXBPcGVyYXRpb24gYXMgVGV4dFVwT3BlcmF0aW9uLFxuICAgIFR3b1dheU9wZXJhdGlvbiBhcyBUZXh0VHdvV2F5T3BlcmF0aW9uLFxuICAgIGFwcGx5IGFzIGFwcGx5VGV4dCxcbiAgICBkaWZmIGFzIHRleHREaWZmLFxuICAgIHRvVXBPcGVyYXRpb24gYXMgdG9UZXh0VXBPcGVyYXRpb24sXG59IGZyb20gJy4vaW50ZXJuYWwvb3QvdXRpbC90ZXh0T3BlcmF0aW9uJztcblxuZXhwb3J0IHsgY2xpZW50LCBhZG1pbiwgcmVzdHJpY3QsIFJlcXVlc3RlZEJ5IH0gZnJvbSAnLi9pbnRlcm5hbC9vdC91dGlsL3R5cGUnO1xuXG5leHBvcnQgeyB1cGRhdGVUeXBlLCBjcmVhdGVUeXBlLCBkZWxldGVUeXBlIH0gZnJvbSAnLi9pbnRlcm5hbC9vdC9waWVjZS9sb2ctdjEnO1xuXG5leHBvcnQgeyBjcmVhdGVMb2dzIH0gZnJvbSAnLi9pbnRlcm5hbC9vdC9yb29tL2xvZy12MSc7XG4iXX0= | ||
export { updateType, createType, deleteType } from './internal/ot/piece/log'; | ||
export { createLogs } from './internal/ot/room/log'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5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0ZVR5cGUgfSBmcm9tICcuL2ludGVybmFsL290L3BpZWNlL2xvZyc7XG5cbmV4cG9ydCB7IGNyZWF0ZUxvZ3MgfSBmcm9tICcuL2ludGVybmFsL290L3Jvb20vbG9nJztcbiJdfQ== |
import * as t from 'io-ts'; | ||
import * as Room from './v1'; | ||
export const parseState = (source) => { | ||
const result = t.exact(Room.state).decode(JSON.parse(source)); | ||
if (result._tag === 'Left') { | ||
throw new Error('parseState failure'); | ||
import { migrateDbState, migrateDownOperation, migrateState, migrateUpOperation } from './migrate'; | ||
import * as Room from './types'; | ||
export const decodeState = (source) => { | ||
const result = t.exact(Room.state).decode(source); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.stateV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return migrateState(resultV1.right); | ||
} | ||
throw new Error('decodeState failure'); | ||
}; | ||
export const parseState = (source) => { | ||
return decodeState(JSON.parse(source)); | ||
}; | ||
export const stringifyState = (source) => { | ||
@@ -14,15 +22,12 @@ const result = t.exact(Room.state).encode(source); | ||
}; | ||
export const decodeState = (source) => { | ||
const result = t.exact(Room.state).decode(source); | ||
if (result._tag === 'Left') { | ||
throw new Error('decodeState failure'); | ||
} | ||
return result.right; | ||
}; | ||
export const decodeDbState = (source) => { | ||
const result = t.exact(Room.dbState).decode(source); | ||
if (result._tag === 'Left') { | ||
throw new Error('decodeDbState failure'); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.dbStateV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return migrateDbState(resultV1.right); | ||
} | ||
throw new Error('decodeDbState failure'); | ||
}; | ||
@@ -32,9 +37,16 @@ export const exactDbState = (source) => { | ||
}; | ||
export const parseUpOperation = (source) => { | ||
const result = t.exact(Room.upOperation).decode(JSON.parse(source)); | ||
if (result._tag === 'Left') { | ||
throw new Error('parseUpOperation failure'); | ||
const decodeUpOperation = (source) => { | ||
const result = t.exact(Room.upOperation).decode(source); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.upOperationV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return migrateUpOperation(resultV1.right); | ||
} | ||
throw new Error('decodeUpOperation failure'); | ||
}; | ||
export const parseUpOperation = (source) => { | ||
return decodeUpOperation(JSON.parse(source)); | ||
}; | ||
export const stringifyUpOperation = (source) => { | ||
@@ -46,6 +58,10 @@ const result = t.exact(Room.upOperation).encode(source); | ||
const result = t.exact(Room.downOperation).decode(source); | ||
if (result._tag === 'Left') { | ||
throw new Error('decodeDownOperation failure'); | ||
if (result._tag === 'Right') { | ||
return result.right; | ||
} | ||
return result.right; | ||
const resultV1 = t.exact(Room.downOperationV1).decode(source); | ||
if (resultV1._tag === 'Right') { | ||
return migrateDownOperation(resultV1.right); | ||
} | ||
throw new Error('decodeDownOperation failure'); | ||
}; | ||
@@ -55,2 +71,2 @@ export const exactDownOperation = (source) => { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3Jvb20vY29udmVydGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxDQUFDLE1BQU0sT0FBTyxDQUFDO0FBQzNCLE9BQU8sS0FBSyxJQUFJLE1BQU0sTUFBTSxDQUFDO0FBRTdCLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRyxDQUFDLE1BQWMsRUFBYyxFQUFFO0lBQ3JELE1BQU0sTUFBTSxHQUFHLENBQUMsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLE1B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yYXRpb24ocmVzdWx0VjEucmlnaHQpO1xuICAgIH1cbiAgICB0aHJvdyBuZXcgRXJyb3IoJ2RlY29kZURvd25PcGVyYXRpb24gZmFpbHVyZScpO1xufTtcblxuZXhwb3J0IGNvbnN0IGV4YWN0RG93bk9wZXJhdGlvbiA9IChzb3VyY2U6IFJvb20uRG93bk9wZXJhdGlvbik6IFJvb20uRG93bk9wZXJhdGlvbiA9PiB7XG4gICAgcmV0dXJuIHQuZXhhY3QoUm9vbS5kb3duT3BlcmF0aW9uKS5lbmNvZGUoc291cmNlKTtcbn07XG4iXX0= |
@@ -1,2 +0,2 @@ | ||
import * as DiePieceValueLog from './log-v1'; | ||
import * as DiePieceValueLog from './log'; | ||
export const decode = (source) => { | ||
@@ -15,2 +15,2 @@ const result = DiePieceValueLog.exactType.decode(source); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3Jvb20vcGFydGljaXBhbnQvY2hhcmFjdGVyL2RpY2VQaWVjZVZhbHVlL2NvbnZlcnRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sVUFBVSxDQUFDO0FBRTdDLE1BQU0sQ0FBQyxNQUFNLE1BQU0sR0FBRyxDQUFDLE1BQWUsRUFBeUIsRUFBRTtJQUM3RCxNQUFNLE1BQU0sR0FBRyxnQkFBZ0IsQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3pELElBQUksTUFBTSxDQUFDLElBQUksS0FBSyxNQUFNLEVBQUU7UUFDeEIsTUFBTSxJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0tBQ3JDO0lBQ0QsT0FB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TUFBTSxDQUFDLENBQUM7QUFDckQsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgRGllUGllY2VWYWx1ZUxvZyBmcm9tICcuL2xvZyc7XG5cbmV4cG9ydCBjb25zdCBkZWNvZGUgPSAoc291cmNlOiB1bmtub3duKTogRGllUGllY2VWYWx1ZUxvZy5UeXBlID0+IHtcbiAgICBjb25zdCByZXN1bHQgPSBEaWVQaWVjZVZhbHVlTG9nLmV4YWN0VHlwZS5kZWNvZGUoc291cmNlKTtcbiAgICBpZiAocmVzdWx0Ll90YWcgPT09ICdMZWZ0Jykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ2RlY29kZSBmYWlsdXJlJyk7XG4gICAgfVxuICAgIHJldHVybiByZXN1bHQucmlnaHQ7XG59O1xuXG5leHBvcnQgY29uc3QgcGFyc2UgPSAoc291cmNlOiBzdHJpbmcpOiBEaWVQaWVjZVZhbHVlTG9nLlR5cGUgPT4ge1xuICAgIHJldHVybiBkZWNvZGUoSlNPTi5wYXJzZShzb3VyY2UpKTtcbn07XG5cbmV4cG9ydCBjb25zdCBleGFjdCA9IChzb3VyY2U6IERpZVBpZWNlVmFsdWVMb2cuVHlwZSk6IERpZVBpZWNlVmFsdWVMb2cuVHlwZSA9PiB7XG4gICAgcmV0dXJuIERpZVBpZWNlVmFsdWVMb2cuZXhhY3RUeXBlLmVuY29kZShzb3VyY2UpO1xufTtcbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
import * as NumberPieceValueLog from './log-v1'; | ||
import * as NumberPieceValueLog from './log'; | ||
export const decode = (source) => { | ||
@@ -15,2 +15,2 @@ const result = NumberPieceValueLog.exactType.decode(source); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL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ZSkpO1xufTtcblxuZXhwb3J0IGNvbnN0IGV4YWN0ID0gKHNvdXJjZTogTnVtYmVyUGllY2VWYWx1ZUxvZy5UeXBlKTogTnVtYmVyUGllY2VWYWx1ZUxvZy5UeXBlID0+IHtcbiAgICByZXR1cm4gTnVtYmVyUGllY2VWYWx1ZUxvZy5leGFjdFR5cGUuZW5jb2RlKHNvdXJjZSk7XG59O1xuIl19 |
// (不正な|悪意のある)キーが混入するおそれがあるのはserverTransformのときのみなので、serverTransform以外では使わなくてよい | ||
export const isValidKey = (key) => { | ||
if (key.length >= 11) { | ||
return false; | ||
} | ||
return key.match(/^([0-9a-zA-Z]|-|_)+$/g) != null; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNWYWxpZEtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9vdC91dGlsL2lzVmFsaWRLZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0VBQStFO0FBQy9FLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRyxDQUFDLEdBQVcsRUFBVyxFQUFFO0lBQy9DLE9BQU8sR0FBRyxDQUFDLEtBQUssQ0FBQyx1QkFBdUIsQ0FBQyxJQUFJLElBQUksQ0FBQztBQUN0RCxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyAo5LiN5q2j44GqfOaCquaEj+OBruOBguOCiynjgq3jg7zjgYzmt7flhaXjgZnjgovjgYrjgZ3jgozjgYzjgYLjgovjga7jga9zZXJ2ZXJUcmFuc2Zvcm3jga7jgajjgY3jga7jgb/jgarjga7jgafjgIFzZXJ2ZXJUcmFuc2Zvcm3ku6XlpJbjgafjga/kvb/jgo/jgarjgY/jgabjgojjgYRcbmV4cG9ydCBjb25zdCBpc1ZhbGlkS2V5ID0gKGtleTogc3RyaW5nKTogYm9vbGVhbiA9PiB7XG4gICAgcmV0dXJuIGtleS5tYXRjaCgvXihbMC05YS16QS1aXXwtfF8pKyQvZykgIT0gbnVsbDtcbn07XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNWYWxpZEtleS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9vdC91dGlsL2lzVmFsaWRLZXkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0VBQStFO0FBQy9FLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRyxDQUFDLEdBQVcsRUFBVyxFQUFFO0lBQy9DLElBQUksR0FBRyxDQUFDLE1BQU0sSUFBSSxFQUFFLEVBQUU7UUFDbEIsT0FBTyxLQUFLLENBQUM7S0FDaEI7SUFDRCxPQUFPLEdBQUcsQ0FBQyxLQUFLLENBQUMsdUJBQXVCLENBQUMsSUFBSSxJQUFJLENBQUM7QUFDdEQsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gKOS4jeato+OBqnzmgqrmhI/jga7jgYLjgosp44Kt44O844GM5re35YWl44GZ44KL44GK44Gd44KM44GM44GC44KL44Gu44Gvc2VydmVyVHJhbnNmb3Jt44Gu44Go44GN44Gu44G/44Gq44Gu44Gn44CBc2VydmVyVHJhbnNmb3Jt5Lul5aSW44Gn44Gv5L2/44KP44Gq44GP44Gm44KI44GEXG5leHBvcnQgY29uc3QgaXNWYWxpZEtleSA9IChrZXk6IHN0cmluZyk6IGJvb2xlYW4gPT4ge1xuICAgIGlmIChrZXkubGVuZ3RoID49IDExKSB7XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gICAgcmV0dXJuIGtleS5tYXRjaCgvXihbMC05YS16QS1aXXwtfF8pKyQvZykgIT0gbnVsbDtcbn07XG4iXX0= |
@@ -149,2 +149,36 @@ import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2UsXG59OiB7XG4gICAgZmlyc3Q/OiBSZWNvcmREb3duT3BlcmF0aW9uPFRTdGF0ZSwgVERvd25PcGVyYXRpb24+O1xuICAgIHNlY29uZD86IFJlY29yZERvd25PcGVyYXRpb248VFN0YXRlLCBURG93bk9wZXJhdGlvbj47XG4gICAgaW5uZXJBcHBseUJhY2s6IChwYXJhbXM6IHtcbiAgICAgICAga2V5OiBzdHJpbmc7XG4gICAgICAgIG9wZXJhdGlvbjogVERvd25PcGVyYXRpb247XG4gICAgICAgIHN0YXRlOiBUU3RhdGU7XG4gICAgfSkgPT4gUmVzdWx0PFRTdGF0ZSwgc3RyaW5nIHwgVEN1c3RvbUVycm9yPjtcbiAgICBpbm5lckNvbXBvc2U6IChwYXJhbXM6IHtcbiAgICAgICAga2V5OiBzdHJpbmc7XG4gICAgICAgIGZpcnN0OiBURG93bk9wZXJhdGlvbjtcbiAgICAgICAgc2Vjb25kOiBURG93bk9wZXJhdGlvbjtcbiAgICB9KSA9PiBSZXN1bHQ8VERvd25PcGVyYXRpb24gfCB1bmRlZmluZWQsIHN0cmluZyB8IFRDdXN0b21FcnJvcj47XG59KTogUmVzdWx0PFJlY29yZERvd25PcGVyYXRpb248VFN0YXRlLCBURG93bk9wZXJhdGlvbj4gfCB1bmRlZmluZWQsIHN0cmluZyB8IFRDdXN0b21FcnJvcj4gPT4ge1xuICAgIGlmIChmaXJzdCA9PSBudWxsKSB7XG4gICAgICAgIHJldHVybiBSZXN1bHQub2soc2Vjb25kKTtcbiAgICB9XG4gICAgaWYgKHNlY29uZCA9PSBudWxsKSB7XG4gICAgICAgIHJldHVybiBSZXN1bHQub2soZmlyc3QpO1xuICAgIH1cblxuICAgIGNvbnN0IHJlc3VsdCA9IER1YWxLZXlSZWNvcmRPcGVyYXRpb24uY29tcG9zZURvd25PcGVyYXRpb24oe1xuICAgICAgICBmaXJzdDogeyBbZmFrZUtleV06IGZpcnN0IH0sXG4gICAgICAgIHNlY29uZDogeyBbZmFrZUtleV06IH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nBhcmFtcywga2V5OiBrZXkuc2Vjb25kIH0pLFxuICAgIH0pO1xuICAgIGlmIChkdWFsS2V5UmVzdWx0ID09IG51bGwpIHtcbiAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG4gICAgcmV0dXJuIGR1YWxLZXlSZXN1bHRbZmFrZUtleV07XG59O1xuIl19 | ||
const dummyKey = 'dummyKey'; | ||
export const mapRecordUpOperation = ({ source, mapState, mapOperation, }) => { | ||
const result = DualKeyRecordOperation.mapDualKeyRecordUpOperation({ | ||
source: { [dummyKey]: source }, | ||
mapState, | ||
mapOperation, | ||
})[dummyKey]; | ||
if (result == null) { | ||
throw new Error('this should not happen'); | ||
} | ||
return result; | ||
}; | ||
export const mapRecordDownOperation = ({ source, mapState, mapOperation, }) => { | ||
const result = DualKeyRecordOperation.mapDualKeyRecordDownOperation({ | ||
source: { [dummyKey]: source }, | ||
mapState, | ||
mapOperation, | ||
})[dummyKey]; | ||
if (result == null) { | ||
throw new Error('this should not happen'); | ||
} | ||
return result; | ||
}; | ||
export const mapRecordOperation = ({ source, mapReplace, mapUpdate, }) => { | ||
const result = DualKeyRecordOperation.mapDualKeyRecordOperation({ | ||
source: { [dummyKey]: source }, | ||
mapReplace, | ||
mapUpdate, | ||
})[dummyKey]; | ||
if (result == null) { | ||
throw new Error('this should not happen'); | ||
} | ||
return result; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkT3BlcmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2ludGVybmFsL290L3V0aWwvcmVjb3JkT3BlcmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUUxQyxPQUFPLEtBQUssc0JBQXNCLE1BQU0sMEJBQTBCLEN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4iXX0= |
@@ -28,2 +28,5 @@ import * as t from 'io-ts'; | ||
]); | ||
/** | ||
* @deprecated Consider using map(Dual)?KeyRecord(Up|Down)?Operation | ||
*/ | ||
export const mapRecordOperationElement = ({ source, mapOperation, mapReplace, }) => { | ||
@@ -41,2 +44,2 @@ if (source.type === replace) { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkT3BlcmF0aW9uRWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9vdC91dGlsL3JlY29yZE9wZXJhdGlvbkVsZW1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLENBQUMsTUFBTSxPQUFPLENBQUM7QUFFM0IsTUFBTSxDQUFDLE1BQU0sTUFBTSxHQUFHLFFBQVEsQ0FBQztBQUMvQixNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDO0FBRWpDLE1BQU0sQ0FBQyxNQUFNLGlDQUFpQyxHQUFHLENBSTdDLEtBQWEsRUFDYixTQUFxQixFQUN2QixFQUFFLENBQ0EsQ0FBQyxDQUFDLEtBQUssQ0FBQztJQUNKLENBQUMsQ0FBQyxJQUFJLENBQUM7UUFDSCxJQUFJLEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUM7UUFDeEIsT0FBTyxFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUM7WUFDZixRQUFRLEVBQUUsS0FBSztTQUNsQixDQUFDO0tBQ0wsQ0FBQztJQUNGLENBQUMsQ0FBQyxJQUFJLENBQUM7UUFDSCxJQUFJLEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUM7UUFDdkIsTUFBTSxFQUFFLFNBQVM7S0FDcEIsQ0FBQztDQUNMLENBQUMsQ0FBQztBQW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IFRTdGF0ZSxcbiAgICBvcGVyYXRpb246IFRPcGVyYXRpb25cbikgPT5cbiAgICB0LnVuaW9uKFtcbiAgICAgICAgdC50eXBlKHtcbiAgICAgICAgICAgIHR5cGU6IHQubGl0ZXJhbChyZXBsYWNlKSxcbiAgICAgICAgICAgIHJlcGxhY2U6IHQucGFydGlhbCh7XG4gICAgICAgICAgICAgICAgbmV3VmFsdWU6IHN0YXRlLFxuICAgICAgICAgICAgfSksXG4gICAgICAgIH0pLFxuICAgICAgICB0LnR5cGUoe1xuICAgICAgICAgICAgdHlwZTogdC5saXRlcmFsKHVwZGF0ZSksXG4gICAgICAgICAgICB1cGRhdGU6IG9wZXJhdGlvbixcbiAgICAgICAgfSksXG4gICAgXSk7XG5cbmV4cG9ydCB0eXBlIFJlY29yZFVwT3BlcmF0aW9uRWxlbWVudDxUU3RhdGUsIFRPcGVyYXRpb24+ID1cbiAgICB8IHtcbiAgICAgICAgICB0eXBlOiB0eXBlb2YgcmVwbGFjZTtcbiAgICAgICAgICByZXBsYWNlOiB7XG4gICAgICAgICAgICAgIG5ld1ZhbHVlPzogVFN0YXRlO1xuICAgICAgICAgIH07XG4gICAgICB9XG4gICAgfCB7XG4gICAgICAgICAgdHlwZTogdHlwZW9mIHVwZGF0ZTtcbiAgICAgICAgICB1cGRhdGU6IFRPcGVyYXRpb247XG4gICAgICB9O1xuXG5leHBvcnQgdHlwZSBSZWNvcmRUd29XYXlPcGVyYXRpb25FbGVtZW50PFRTdGF0ZSwgVE9wZXJhdGlvbj4gPVxuICAgIHwge1xuICAgICAgICAgIHR5cGU6IHR5cGVvZiByZXBsYWNlO1xuICAgICAgICAgIHJlcGxhY2U6IHtcbiAgICAgICAgICAgICAgb2xkVmFsdWU/OiBUU3RhdGU7XG4gICAgICAgICAgICAgIG5ld1ZhbHVlPzogVFN0YXRlO1xuICAgICAgICAgIH07XG4gICAgICB9XG4gICAgfCB7XG4gICAgICAgICAgdHlwZTogdHlwZW9mIHVwZGF0ZTtcb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FjZShzb3VyY2UucmVwbGFjZSksXG4gICAgICAgIH07XG4gICAgfVxuICAgIHJldHVybiB7XG4gICAgICAgIHR5cGU6IHVwZGF0ZSxcbiAgICAgICAgdXBkYXRlOiBtYXBPcGVyYXRpb24oc291cmNlLnVwZGF0ZSksXG4gICAgfTtcbn07XG4iXX0= |
@@ -1,7 +0,7 @@ | ||
import * as Command from './internal/ot/room/participant/character/command/v1'; | ||
import * as CommandTypes from './internal/ot/room/participant/character/command/types'; | ||
import * as RecordOperation from './internal/ot/util/recordOperation'; | ||
export declare const privateCommandsDiff: ({ prevState, nextState, }: { | ||
prevState: Record<string, Command.State | undefined>; | ||
nextState: Record<string, Command.State | undefined>; | ||
}) => RecordOperation.RecordUpOperation<Command.State, Command.UpOperation> | undefined; | ||
prevState: Record<string, CommandTypes.State | undefined>; | ||
nextState: Record<string, CommandTypes.State | undefined>; | ||
}) => RecordOperation.RecordUpOperation<CommandTypes.State, CommandTypes.UpOperation> | undefined; | ||
export { anonymous, authToken, $free, $system } from './internal/constants'; | ||
@@ -14,26 +14,36 @@ export { firebaseConfig, FirebaseConfig } from './internal/firebaseConfig'; | ||
export { isValidVarToml, parseToml, getVariableFromVarTomlObject, isValidChatPalette, generateChatPalette, } from './internal/toml'; | ||
export { testCommand, execCharacterCommand } from './internal/flocommand/main'; | ||
export { Default, Uploader, FirebaseStorage, FilePath } from './internal/ot/filePath/v1'; | ||
export { testCommand, execCharacterCommand } from './internal/command/main'; | ||
export { Default, Uploader, FirebaseStorage, FilePath } from './internal/ot/filePath/types'; | ||
export { Expression, plain, expr1, analyze } from './internal/expression'; | ||
export { dbState, DbState, state, State, upOperation, UpOperation, downOperation, DownOperation, TwoWayOperation, toClientState, toUpOperation, toDownOperation, apply, applyBack, composeDownOperation, restore, diff, serverTransform, clientTransform, } from './internal/ot/room/v1'; | ||
export { State as BgmState, UpOperation as BgmUpOperation, DownOperation as BgmDownOperation, } from './internal/ot/room/bgm/v1'; | ||
export { State as ParamNameState, UpOperation as ParamNameUpOperation, DownOperation as ParamNameDownOperation, } from './internal/ot/room/paramName/v1'; | ||
export { toClientState, toUpOperation, toDownOperation, apply, applyBack, composeDownOperation, restore, diff, serverTransform, clientTransform, } from './internal/ot/room/functions'; | ||
export { dbState, DbState, state, State, upOperation, UpOperation, downOperation, DownOperation, TwoWayOperation, } from './internal/ot/room/types'; | ||
export { State as BgmState, UpOperation as BgmUpOperation, DownOperation as BgmDownOperation, } from './internal/ot/room/bgm/types'; | ||
export { State as ParamNameState, UpOperation as ParamNameUpOperation, DownOperation as ParamNameDownOperation, } from './internal/ot/room/paramName/types'; | ||
export { parseState, stringifyState, decodeDbState, exactDbState, parseUpOperation, stringifyUpOperation, decodeDownOperation, exactDownOperation, } from './internal/ot/room/converter'; | ||
export { State as BoardLocationState, UpOperation as BoardLocationUpOperation, DownOperation as BoardLocationDownOperation, apply as applyBoardLocation, diff as boardLocationDiff, toUpOperation as toBoardLocationUpOperation, } from './internal/ot/boardLocation/v1'; | ||
export { Master, Player, Spectator, ParticipantRole, State as ParticipantState, DbState as ParticipantDbState, UpOperation as ParticipantUpOperation, DownOperation as ParticipantDownOperation, } from './internal/ot/room/participant/v1'; | ||
export { State as PieceState, UpOperation as PieceUpOperation, DownOperation as PieceDownOperation, apply as applyPiece, diff as pieceDiff, toUpOperation as toPieceUpOperation, } from './internal/ot/piece/v1'; | ||
export { State as BoardState, UpOperation as BoardUpOperation, DownOperation as BoardDownOperation, apply as applyBoard, diff as boardDiff, toUpOperation as toBoardUpOperation, } from './internal/ot/room/participant/board/v1'; | ||
export { State as CharacterState, UpOperation as CharacterUpOperation, DownOperation as CharacterDownOperation, apply as applyCharacter, diff as characterDiff, toUpOperation as toCharacterUpOperation, } from './internal/ot/room/participant/character/v1'; | ||
export { State as BoolParamState, UpOperation as BoolParamUpOperation, DownOperation as BoolParamCharacterDownOperation, } from './internal/ot/room/participant/character/boolParam/v1'; | ||
export { State as NumParamState, UpOperation as NumParamUpOperation, DownOperation as NumParamCharacterDownOperation, } from './internal/ot/room/participant/character/numParam/v1'; | ||
export { State as StrParamState, UpOperation as StrParamUpOperation, DownOperation as StrParamCharacterDownOperation, apply as applyStrParamCharacter, diff as strParamcharacterDiff, toUpOperation as toCharacterStrParamUpOperation, } from './internal/ot/room/participant/character/strParam/v1'; | ||
export { State as DicePieceValueState, UpOperation as DicePieceValueUpOperation, DownOperation as DicePieceValueDownOperation, apply as applyDicePieceValue, diff as dicePieceValueDiff, toUpOperation as toDicePieceValueUpOperation, dicePieceValueStrIndexes, } from './internal/ot/room/participant/character/dicePieceValue/v1'; | ||
export { apply as applyBoardLocation, diff as boardLocationDiff, toUpOperation as toBoardLocationUpOperation, } from './internal/ot/boardLocation/functions'; | ||
export { State as BoardLocationState, UpOperation as BoardLocationUpOperation, DownOperation as BoardLocationDownOperation, } from './internal/ot/boardLocation/types'; | ||
export { Master, Player, Spectator, ParticipantRole, State as ParticipantState, DbState as ParticipantDbState, UpOperation as ParticipantUpOperation, DownOperation as ParticipantDownOperation, } from './internal/ot/room/participant/types'; | ||
export { apply as applyPiece, diff as pieceDiff, toUpOperation as toPieceUpOperation, } from './internal/ot/piece/functions'; | ||
export { State as PieceState, UpOperation as PieceUpOperation, DownOperation as PieceDownOperation, } from './internal/ot/piece/types'; | ||
export { apply as applyBoard, diff as boardDiff, toUpOperation as toBoardUpOperation, } from './internal/ot/room/participant/board/functions'; | ||
export { State as BoardState, UpOperation as BoardUpOperation, DownOperation as BoardDownOperation, } from './internal/ot/room/participant/board/types'; | ||
export { apply as applyCharacter, diff as characterDiff, toUpOperation as toCharacterUpOperation, } from './internal/ot/room/participant/character/functions'; | ||
export { State as CharacterState, UpOperation as CharacterUpOperation, DownOperation as CharacterDownOperation, } from './internal/ot/room/participant/character/types'; | ||
export { State as BoolParamState, UpOperation as BoolParamUpOperation, DownOperation as BoolParamCharacterDownOperation, } from './internal/ot/room/participant/character/boolParam/types'; | ||
export { State as NumParamState, UpOperation as NumParamUpOperation, DownOperation as NumParamCharacterDownOperation, } from './internal/ot/room/participant/character/numParam/types'; | ||
export { apply as applyStrParamCharacter, diff as strParamcharacterDiff, toUpOperation as toCharacterStrParamUpOperation, } from './internal/ot/room/participant/character/strParam/functions'; | ||
export { State as StrParamState, UpOperation as StrParamUpOperation, DownOperation as StrParamCharacterDownOperation, } from './internal/ot/room/participant/character/strParam/types'; | ||
export { apply as applyDicePieceValue, diff as dicePieceValueDiff, toUpOperation as toDicePieceValueUpOperation, } from './internal/ot/room/participant/character/dicePieceValue/functions'; | ||
export { State as DicePieceValueState, UpOperation as DicePieceValueUpOperation, DownOperation as DicePieceValueDownOperation, dicePieceValueStrIndexes, } from './internal/ot/room/participant/character/dicePieceValue/types'; | ||
export { decode as decodeDicePieceValue, parse as parseDicePieceValue, exact as exactDicePieceValue, } from './internal/ot/room/participant/character/dicePieceValue/converter'; | ||
export { State as DieValueState, UpOperation as DieValueUpOperation, DownOperation as DieValueDownOperation, apply as applyDieValue, diff as dieValueDiff, toUpOperation as toDieValueUpOperation, } from './internal/ot/room/participant/character/dicePieceValue/dieValue/v1'; | ||
export { type as dicePieceValueLog, Type as DicePieceValueLog, } from './internal/ot/room/participant/character/dicePieceValue/log-v1'; | ||
export { State as ImagePieceValueState, UpOperation as ImagePieceValueUpOperation, DownOperation as ImagePieceValueDownOperation, apply as applyImagePieceValue, diff as imagePieceValueDiff, toUpOperation as toImagePieceValueUpOperation, } from './internal/ot/room/participant/imagePieceValue/v1'; | ||
export { State as NumberPieceValueState, UpOperation as NumberPieceValueUpOperation, DownOperation as NumberPieceValueDownOperation, apply as applyNumberPieceValue, diff as numberPieceValueDiff, toUpOperation as toNumberPieceValueUpOperation, } from './internal/ot/room/participant/character/numberPieceValue/v1'; | ||
export { decode as decodeNumberPieceValue, parse as parseNumberPieceValue, exact as exactNumberPieceValue, } from './internal/ot/room/participant/character/numberPieceValue/converter'; | ||
export { type as numberPieceValueLog, Type as NumberPieceValueLog, } from './internal/ot/room/participant/character/numberPieceValue/log-v1'; | ||
export { State as MemoState, UpOperation as MemoUpOperation, DownOperation as MemoDownOperation, } from './internal/ot/room/memo/v1'; | ||
export { apply as applyDieValue, diff as dieValueDiff, toUpOperation as toDieValueUpOperation, } from './internal/ot/room/participant/character/dicePieceValue/dieValue/functions'; | ||
export { State as DieValueState, UpOperation as DieValueUpOperation, DownOperation as DieValueDownOperation, } from './internal/ot/room/participant/character/dicePieceValue/dieValue/types'; | ||
export { type as dicePieceValueLog, Type as DicePieceValueLog, } from './internal/ot/room/participant/character/dicePieceValue/log'; | ||
export { apply as applyImagePieceValue, diff as imagePieceValueDiff, toUpOperation as toImagePieceValueUpOperation, } from './internal/ot/room/participant/imagePieceValue/functions'; | ||
export { State as ImagePieceValueState, UpOperation as ImagePieceValueUpOperation, DownOperation as ImagePieceValueDownOperation, } from './internal/ot/room/participant/imagePieceValue/types'; | ||
export { apply as applyNumberPieceValue, diff as stringPieceValueDiff, toUpOperation as toStringPieceValueUpOperation, } from './internal/ot/room/participant/character/stringPieceValue/functions'; | ||
export { State as StringPieceValueState, UpOperation as StringPieceValueUpOperation, DownOperation as StringPieceValueDownOperation, } from './internal/ot/room/participant/character/stringPieceValue/types'; | ||
export { decode as decodeStringPieceValue, parse as parseStringPieceValue, exact as exactStringPieceValue, } from './internal/ot/room/participant/character/stringPieceValue/converter'; | ||
export { type as stringPieceValueLog, Type as StringPieceValueLog, } from './internal/ot/room/participant/character/stringPieceValue/log'; | ||
export { State as MemoState, UpOperation as MemoUpOperation, DownOperation as MemoDownOperation, Plain, Markdown, } from './internal/ot/room/memo/types'; | ||
export { isIdRecord } from './internal/ot/util/record'; | ||
@@ -44,3 +54,3 @@ export { replace, update, RecordDownOperationElement, RecordTwoWayOperationElement, RecordUpOperationElement, } from './internal/ot/util/recordOperationElement'; | ||
export { client, admin, restrict, RequestedBy } from './internal/ot/util/type'; | ||
export { updateType, createType, deleteType } from './internal/ot/piece/log-v1'; | ||
export { createLogs } from './internal/ot/room/log-v1'; | ||
export { updateType, createType, deleteType } from './internal/ot/piece/log'; | ||
export { createLogs } from './internal/ot/room/log'; |
@@ -1,5 +0,5 @@ | ||
import * as Room from './v1'; | ||
import * as Room from './types'; | ||
export declare const decodeState: (source: unknown) => Room.State; | ||
export declare const parseState: (source: string) => Room.State; | ||
export declare const stringifyState: (source: Room.State) => string; | ||
export declare const decodeState: (source: unknown) => Room.State; | ||
export declare const decodeDbState: (source: unknown) => Room.DbState; | ||
@@ -6,0 +6,0 @@ export declare const exactDbState: (source: Room.DbState) => Room.DbState; |
@@ -1,4 +0,4 @@ | ||
import * as DiePieceValueLog from './log-v1'; | ||
import * as DiePieceValueLog from './log'; | ||
export declare const decode: (source: unknown) => DiePieceValueLog.Type; | ||
export declare const parse: (source: string) => DiePieceValueLog.Type; | ||
export declare const exact: (source: DiePieceValueLog.Type) => DiePieceValueLog.Type; |
@@ -1,4 +0,4 @@ | ||
import * as NumberPieceValueLog from './log-v1'; | ||
import * as NumberPieceValueLog from './log'; | ||
export declare const decode: (source: unknown) => NumberPieceValueLog.Type; | ||
export declare const parse: (source: string) => NumberPieceValueLog.Type; | ||
export declare const exact: (source: NumberPieceValueLog.Type) => NumberPieceValueLog.Type; |
@@ -5,3 +5,3 @@ import { Result } from '@kizahasi/result'; | ||
import { DualStringKeyRecord } from './record'; | ||
import { RecordDownOperationElement, RecordTwoWayOperationElement, RecordUpOperationElement } from './recordOperationElement'; | ||
import { RecordDownOperationElement, RecordTwoWayOperationElement, RecordUpOperationElement, replace, update } from './recordOperationElement'; | ||
export declare type DualKeyRecordDownOperation<TState, TOperation> = DualStringKeyRecord<RecordDownOperationElement<TState, TOperation>>; | ||
@@ -148,2 +148,29 @@ export declare type DualKeyRecordUpOperation<TState, TOperation> = DualStringKeyRecord<RecordUpOperationElement<TState, TOperation>>; | ||
}) => Record<string, Record<string, RecordTwoWayOperationElement<TState, TOperation>>> | undefined; | ||
export declare const mapDualKeyRecordUpOperation: <TState1, TState2, TOperation1, TOperation2>({ source, mapState, mapOperation, }: { | ||
source: Record<string, Record<string, RecordUpOperationElement<TState1, TOperation1> | undefined> | undefined>; | ||
mapState: (state: TState1) => TState2; | ||
mapOperation: (state: TOperation1) => TOperation2; | ||
}) => Record<string, Record<string, RecordUpOperationElement<TState2, TOperation2>>>; | ||
export declare const mapDualKeyRecordDownOperation: <TState1, TState2, TOperation1, TOperation2>({ source, mapState, mapOperation, }: { | ||
source: Record<string, Record<string, RecordDownOperationElement<TState1, TOperation1> | undefined> | undefined>; | ||
mapState: (state: TState1) => TState2; | ||
mapOperation: (state: TOperation1) => TOperation2; | ||
}) => Record<string, Record<string, RecordDownOperationElement<TState2, TOperation2>>>; | ||
export declare const mapDualKeyRecordOperation: <TReplace1, TReplace2, TUpdate1, TUpdate2>({ source, mapReplace, mapUpdate, }: { | ||
source: Record<string, Record<string, { | ||
type: typeof replace; | ||
replace: TReplace1; | ||
} | { | ||
type: typeof update; | ||
update: TUpdate1; | ||
} | undefined> | undefined>; | ||
mapReplace: (state: TReplace1) => TReplace2; | ||
mapUpdate: (state: TUpdate1) => TUpdate2; | ||
}) => Record<string, Record<string, { | ||
type: typeof replace; | ||
replace: TReplace2; | ||
} | { | ||
type: typeof update; | ||
update: TUpdate2; | ||
}>>; | ||
export {}; |
@@ -5,3 +5,3 @@ import { Result } from '@kizahasi/result'; | ||
import { StringKeyRecord } from './record'; | ||
import { RecordDownOperationElement, RecordTwoWayOperationElement, RecordUpOperationElement } from './recordOperationElement'; | ||
import { RecordDownOperationElement, RecordTwoWayOperationElement, RecordUpOperationElement, replace, update } from './recordOperationElement'; | ||
export declare type RecordDownOperation<TState, TOperation> = StringKeyRecord<RecordDownOperationElement<TState, TOperation>>; | ||
@@ -128,2 +128,29 @@ export declare type RecordUpOperation<TState, TOperation> = StringKeyRecord<RecordUpOperationElement<TState, TOperation>>; | ||
}) => Record<string, RecordTwoWayOperationElement<TState, TOperation>> | undefined; | ||
export declare const mapRecordUpOperation: <TState1, TState2, TOperation1, TOperation2>({ source, mapState, mapOperation, }: { | ||
source: Record<string, RecordUpOperationElement<TState1, TOperation1> | undefined>; | ||
mapState: (state: TState1) => TState2; | ||
mapOperation: (state: TOperation1) => TOperation2; | ||
}) => Record<string, RecordUpOperationElement<TState2, TOperation2>>; | ||
export declare const mapRecordDownOperation: <TState1, TState2, TOperation1, TOperation2>({ source, mapState, mapOperation, }: { | ||
source: Record<string, RecordDownOperationElement<TState1, TOperation1> | undefined>; | ||
mapState: (state: TState1) => TState2; | ||
mapOperation: (state: TOperation1) => TOperation2; | ||
}) => Record<string, RecordDownOperationElement<TState2, TOperation2>>; | ||
export declare const mapRecordOperation: <TReplace1, TReplace2, TUpdate1, TUpdate2>({ source, mapReplace, mapUpdate, }: { | ||
source: Record<string, { | ||
type: typeof replace; | ||
replace: TReplace1; | ||
} | { | ||
type: typeof update; | ||
update: TUpdate1; | ||
} | undefined>; | ||
mapReplace: (state: TReplace1) => TReplace2; | ||
mapUpdate: (state: TUpdate1) => TUpdate2; | ||
}) => Record<string, { | ||
type: typeof replace; | ||
replace: TReplace2; | ||
} | { | ||
type: typeof update; | ||
update: TUpdate2; | ||
}>; | ||
export {}; |
@@ -50,3 +50,6 @@ import * as t from 'io-ts'; | ||
}; | ||
export declare const mapRecordOperationElement: <TReplace1, TReplace2, TOperation1, TOperation2>({ source, mapOperation, mapReplace, }: { | ||
/** | ||
* @deprecated Consider using map(Dual)?KeyRecord(Up|Down)?Operation | ||
*/ | ||
export declare const mapRecordOperationElement: <TReplace1, TReplace2, TUpdate1, TUpdate2>({ source, mapOperation, mapReplace, }: { | ||
source: { | ||
@@ -57,6 +60,6 @@ type: typeof replace; | ||
type: typeof update; | ||
update: TOperation1; | ||
update: TUpdate1; | ||
}; | ||
mapReplace: (replace: TReplace1) => TReplace2; | ||
mapOperation: (operation: TOperation1) => TOperation2; | ||
mapOperation: (operation: TUpdate1) => TUpdate2; | ||
}) => { | ||
@@ -67,3 +70,3 @@ type: typeof replace; | ||
type: typeof update; | ||
update: TOperation2; | ||
update: TUpdate2; | ||
}; |
{ | ||
"version": "0.19.1", | ||
"version": "0.20.0-beta.1", | ||
"license": "MIT", | ||
@@ -37,7 +37,9 @@ "main": "dist/cjs/index.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "13.2.0", | ||
"@commitlint/config-conventional": "13.2.0", | ||
"@types/ioredis": "4.27.4", | ||
"@types/jest": "27.0.2", | ||
"@types/lodash.clonedeep": "4.5.6", | ||
"@typescript-eslint/eslint-plugin": "4.31.2", | ||
"@typescript-eslint/parser": "4.31.2", | ||
"@typescript-eslint/eslint-plugin": "4.32.0", | ||
"@typescript-eslint/parser": "4.32.0", | ||
"eslint": "7.32.0", | ||
@@ -48,3 +50,3 @@ "eslint-config-prettier": "8.3.0", | ||
"husky": "7.0.2", | ||
"jest": "27.2.1", | ||
"jest": "27.2.3", | ||
"prettier": "2.4.1", | ||
@@ -56,3 +58,3 @@ "rimraf": "3.0.2", | ||
"dependencies": { | ||
"@kizahasi/flocon-script": "^0.7.1", | ||
"@kizahasi/flocon-script": "^0.8.0", | ||
"@kizahasi/ot-string": "^0.2.3", | ||
@@ -59,0 +61,0 @@ "@kizahasi/result": "^1.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3840118
249
37741
17
1
+ Added@kizahasi/flocon-script@0.8.0(transitive)
- Removed@kizahasi/flocon-script@0.7.1(transitive)