2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-05-06 12:32:58 +00:00

missing RepresentationTypeIdentifier.Dynamic

This commit is contained in:
Ahmed Zamil 2022-09-16 16:51:46 +03:00
parent 6a6b1a26f1
commit 2c057bc352
3 changed files with 7 additions and 5 deletions

View File

@ -4575,6 +4575,7 @@ var RepresentationTypeIdentifier = {
exports.RepresentationTypeIdentifier = RepresentationTypeIdentifier; exports.RepresentationTypeIdentifier = RepresentationTypeIdentifier;
var IdentifierToTypeMap = {}; var IdentifierToTypeMap = {};
IdentifierToTypeMap[RepresentationTypeIdentifier.Void] = _Void["default"]; IdentifierToTypeMap[RepresentationTypeIdentifier.Void] = _Void["default"];
IdentifierToTypeMap[RepresentationTypeIdentifier.Dynamic] = Object;
IdentifierToTypeMap[RepresentationTypeIdentifier.Bool] = Boolean; IdentifierToTypeMap[RepresentationTypeIdentifier.Bool] = Boolean;
IdentifierToTypeMap[RepresentationTypeIdentifier.Char] = _ExtendedTypes.Char8; IdentifierToTypeMap[RepresentationTypeIdentifier.Char] = _ExtendedTypes.Char8;
IdentifierToTypeMap[RepresentationTypeIdentifier.Char16] = _ExtendedTypes.Char16; IdentifierToTypeMap[RepresentationTypeIdentifier.Char16] = _ExtendedTypes.Char16;
@ -4601,6 +4602,7 @@ IdentifierToTypeMap[RepresentationTypeIdentifier.ResourceArray] = _ResourceArray
IdentifierToTypeMap[RepresentationTypeIdentifier.RecordArray] = _RecordArray["default"]; IdentifierToTypeMap[RepresentationTypeIdentifier.RecordArray] = _RecordArray["default"];
var TypeToIdentifierMap = {}; var TypeToIdentifierMap = {};
TypeToIdentifierMap[_Void["default"]] = RepresentationTypeIdentifier.Void; TypeToIdentifierMap[_Void["default"]] = RepresentationTypeIdentifier.Void;
TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic;
TypeToIdentifierMap[Boolean] = RepresentationTypeIdentifier.Bool; TypeToIdentifierMap[Boolean] = RepresentationTypeIdentifier.Bool;
TypeToIdentifierMap[_ExtendedTypes.Char8] = RepresentationTypeIdentifier.Char; TypeToIdentifierMap[_ExtendedTypes.Char8] = RepresentationTypeIdentifier.Char;
TypeToIdentifierMap[_ExtendedTypes.Char16] = RepresentationTypeIdentifier.Char16; TypeToIdentifierMap[_ExtendedTypes.Char16] = RepresentationTypeIdentifier.Char16;
@ -4625,7 +4627,6 @@ TypeToIdentifierMap[Array] = RepresentationTypeIdentifier.List;
TypeToIdentifierMap[Map] = RepresentationTypeIdentifier.Map; TypeToIdentifierMap[Map] = RepresentationTypeIdentifier.Map;
TypeToIdentifierMap[_RecordArray["default"]] = RepresentationTypeIdentifier.RecordArray; TypeToIdentifierMap[_RecordArray["default"]] = RepresentationTypeIdentifier.RecordArray;
TypeToIdentifierMap[_ResourceArray["default"]] = RepresentationTypeIdentifier.ResourceArray; TypeToIdentifierMap[_ResourceArray["default"]] = RepresentationTypeIdentifier.ResourceArray;
TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic;
var TupleIdentifierByLength = { var TupleIdentifierByLength = {
2: RepresentationTypeIdentifier.Tuple2, 2: RepresentationTypeIdentifier.Tuple2,
3: RepresentationTypeIdentifier.Tuple3, 3: RepresentationTypeIdentifier.Tuple3,
@ -6187,7 +6188,7 @@ var DistributedConnection = /*#__PURE__*/function (_IStore) {
this._sendParams().addUint8(0x28).addUint8Array(this.session.Id).done(); this._sendParams().addUint8(0x28).addUint8Array(this.session.Id).done();
if (this.instance == null) { 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; var _this2$_openReply, _this2$server;
_this2.ready = true; _this2.ready = true;
@ -6252,7 +6253,7 @@ var DistributedConnection = /*#__PURE__*/function (_IStore) {
this.status = _ConnectionStatus["default"].Connected; // put it in the warehouse this.status = _ConnectionStatus["default"].Connected; // put it in the warehouse
if (this.instance == null) { 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; var _this2$_openReply3;
(_this2$_openReply3 = _this2._openReply) === null || _this2$_openReply3 === void 0 ? void 0 : _this2$_openReply3.trigger(true); (_this2$_openReply3 = _this2._openReply) === null || _this2$_openReply3 === void 0 ? void 0 : _this2$_openReply3.trigger(true);

View File

@ -1,6 +1,6 @@
{ {
"name": "esiur", "name": "esiur",
"version": "2.2.5", "version": "2.2.6",
"description": "Distributed Object Framework", "description": "Distributed Object Framework",
"main": "esiur.js", "main": "esiur.js",
"type": "module", "type": "module",

View File

@ -59,6 +59,7 @@ export const RepresentationTypeIdentifier = {
let IdentifierToTypeMap = {}; let IdentifierToTypeMap = {};
IdentifierToTypeMap[RepresentationTypeIdentifier.Void] = Void; IdentifierToTypeMap[RepresentationTypeIdentifier.Void] = Void;
IdentifierToTypeMap[RepresentationTypeIdentifier.Dynamic] = Object;
IdentifierToTypeMap[RepresentationTypeIdentifier.Bool] = Boolean; IdentifierToTypeMap[RepresentationTypeIdentifier.Bool] = Boolean;
IdentifierToTypeMap[RepresentationTypeIdentifier.Char] = Char8; IdentifierToTypeMap[RepresentationTypeIdentifier.Char] = Char8;
IdentifierToTypeMap[RepresentationTypeIdentifier.Char16] = Char16; IdentifierToTypeMap[RepresentationTypeIdentifier.Char16] = Char16;
@ -86,6 +87,7 @@ IdentifierToTypeMap[RepresentationTypeIdentifier.RecordArray] = RecordArray;
const TypeToIdentifierMap = {}; const TypeToIdentifierMap = {};
TypeToIdentifierMap[Void] = RepresentationTypeIdentifier.Void; TypeToIdentifierMap[Void] = RepresentationTypeIdentifier.Void;
TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic;
TypeToIdentifierMap[Boolean] = RepresentationTypeIdentifier.Bool; TypeToIdentifierMap[Boolean] = RepresentationTypeIdentifier.Bool;
TypeToIdentifierMap[Char8] = RepresentationTypeIdentifier.Char; TypeToIdentifierMap[Char8] = RepresentationTypeIdentifier.Char;
TypeToIdentifierMap[Char16] = RepresentationTypeIdentifier.Char16; TypeToIdentifierMap[Char16] = RepresentationTypeIdentifier.Char16;
@ -110,7 +112,6 @@ TypeToIdentifierMap[Array] = RepresentationTypeIdentifier.List;
TypeToIdentifierMap[Map] = RepresentationTypeIdentifier.Map; TypeToIdentifierMap[Map] = RepresentationTypeIdentifier.Map;
TypeToIdentifierMap[RecordArray] = RepresentationTypeIdentifier.RecordArray; TypeToIdentifierMap[RecordArray] = RepresentationTypeIdentifier.RecordArray;
TypeToIdentifierMap[ResourceArray] = RepresentationTypeIdentifier.ResourceArray; TypeToIdentifierMap[ResourceArray] = RepresentationTypeIdentifier.ResourceArray;
TypeToIdentifierMap[Object] = RepresentationTypeIdentifier.Dynamic;
const TupleIdentifierByLength = { const TupleIdentifierByLength = {
2: RepresentationTypeIdentifier.Tuple2, 2: RepresentationTypeIdentifier.Tuple2,