diff --git a/build/esiur.js b/build/esiur.js index 779ac7e..654c944 100644 --- a/build/esiur.js +++ b/build/esiur.js @@ -4575,6 +4575,7 @@ var RepresentationTypeIdentifier = { exports.RepresentationTypeIdentifier = RepresentationTypeIdentifier; var IdentifierToTypeMap = {}; IdentifierToTypeMap[RepresentationTypeIdentifier.Void] = _Void["default"]; +IdentifierToTypeMap[RepresentationTypeIdentifier.Dynamic] = Object; IdentifierToTypeMap[RepresentationTypeIdentifier.Bool] = Boolean; IdentifierToTypeMap[RepresentationTypeIdentifier.Char] = _ExtendedTypes.Char8; IdentifierToTypeMap[RepresentationTypeIdentifier.Char16] = _ExtendedTypes.Char16; @@ -4601,6 +4602,7 @@ IdentifierToTypeMap[RepresentationTypeIdentifier.ResourceArray] = _ResourceArray IdentifierToTypeMap[RepresentationTypeIdentifier.RecordArray] = _RecordArray["default"]; var TypeToIdentifierMap = {}; TypeToIdentifierMap[_Void["default"]] = RepresentationTypeIdentifier.Void; +TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic; TypeToIdentifierMap[Boolean] = RepresentationTypeIdentifier.Bool; TypeToIdentifierMap[_ExtendedTypes.Char8] = RepresentationTypeIdentifier.Char; TypeToIdentifierMap[_ExtendedTypes.Char16] = RepresentationTypeIdentifier.Char16; @@ -4625,7 +4627,6 @@ TypeToIdentifierMap[Array] = RepresentationTypeIdentifier.List; TypeToIdentifierMap[Map] = RepresentationTypeIdentifier.Map; TypeToIdentifierMap[_RecordArray["default"]] = RepresentationTypeIdentifier.RecordArray; TypeToIdentifierMap[_ResourceArray["default"]] = RepresentationTypeIdentifier.ResourceArray; -TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic; var TupleIdentifierByLength = { 2: RepresentationTypeIdentifier.Tuple2, 3: RepresentationTypeIdentifier.Tuple3, @@ -6187,7 +6188,7 @@ var DistributedConnection = /*#__PURE__*/function (_IStore) { this._sendParams().addUint8(0x28).addUint8Array(this.session.Id).done(); if (this.instance == null) { - _Warehouse["default"].put(this.localUsername, this, null, this.server).then(function (x) { + _Warehouse["default"].put(this.remoteUsername.replaceAll("/", "_"), this, null, this.server).then(function (x) { var _this2$_openReply, _this2$server; _this2.ready = true; @@ -6252,7 +6253,7 @@ var DistributedConnection = /*#__PURE__*/function (_IStore) { this.status = _ConnectionStatus["default"].Connected; // put it in the warehouse if (this.instance == null) { - _Warehouse["default"].put(this.localUsername, this, null, this.server).then(function (x) { + _Warehouse["default"].put(this.localUsername.replaceAll("/", "_"), this, null, this.server).then(function (x) { var _this2$_openReply3; (_this2$_openReply3 = _this2._openReply) === null || _this2$_openReply3 === void 0 ? void 0 : _this2$_openReply3.trigger(true); diff --git a/package.json b/package.json index 80a8e81..9b444b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "esiur", - "version": "2.2.5", + "version": "2.2.6", "description": "Distributed Object Framework", "main": "esiur.js", "type": "module", diff --git a/src/Data/RepresentationType.js b/src/Data/RepresentationType.js index af782cd..9ec6522 100644 --- a/src/Data/RepresentationType.js +++ b/src/Data/RepresentationType.js @@ -59,6 +59,7 @@ export const RepresentationTypeIdentifier = { let IdentifierToTypeMap = {}; IdentifierToTypeMap[RepresentationTypeIdentifier.Void] = Void; +IdentifierToTypeMap[RepresentationTypeIdentifier.Dynamic] = Object; IdentifierToTypeMap[RepresentationTypeIdentifier.Bool] = Boolean; IdentifierToTypeMap[RepresentationTypeIdentifier.Char] = Char8; IdentifierToTypeMap[RepresentationTypeIdentifier.Char16] = Char16; @@ -86,6 +87,7 @@ IdentifierToTypeMap[RepresentationTypeIdentifier.RecordArray] = RecordArray; const TypeToIdentifierMap = {}; TypeToIdentifierMap[Void] = RepresentationTypeIdentifier.Void; +TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic; TypeToIdentifierMap[Boolean] = RepresentationTypeIdentifier.Bool; TypeToIdentifierMap[Char8] = RepresentationTypeIdentifier.Char; TypeToIdentifierMap[Char16] = RepresentationTypeIdentifier.Char16; @@ -110,7 +112,6 @@ TypeToIdentifierMap[Array] = RepresentationTypeIdentifier.List; TypeToIdentifierMap[Map] = RepresentationTypeIdentifier.Map; TypeToIdentifierMap[RecordArray] = RepresentationTypeIdentifier.RecordArray; TypeToIdentifierMap[ResourceArray] = RepresentationTypeIdentifier.ResourceArray; -TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic; const TupleIdentifierByLength = { 2: RepresentationTypeIdentifier.Tuple2,