@unwanted/matrix-sdk-mini 34.12.0-5 → 34.12.0-6

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,4 +28,5 @@ export declare enum MediaPrefix {
28
28
  */
29
29
  V3 = "/im/_matrix/media/v3"
30
30
  }
31
+ export declare const VersionsPrefix = "/im/_matrix/client/versions";
31
32
  //# sourceMappingURL=prefix.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prefix.d.ts","sourceRoot":"","sources":["../../src/http-api/prefix.ts"],"names":[],"mappings":"AAgBA,oBAAY,YAAY;IACpB;;OAEG;IACH,EAAE,0BAA0B;IAC5B;;OAEG;IACH,EAAE,0BAA0B;IAC5B;;OAEG;IACH,QAAQ,gCAAgC;CAC3C;AAED,oBAAY,cAAc;IACtB;;OAEG;IACH,EAAE,4BAA4B;CACjC;AAED,oBAAY,WAAW;IACnB;;OAEG;IACH,EAAE,yBAAyB;IAC3B;;OAEG;IACH,EAAE,yBAAyB;CAC9B"}
1
+ {"version":3,"file":"prefix.d.ts","sourceRoot":"","sources":["../../src/http-api/prefix.ts"],"names":[],"mappings":"AAgBA,oBAAY,YAAY;IACpB;;OAEG;IACH,EAAE,0BAA0B;IAC5B;;OAEG;IACH,EAAE,0BAA0B;IAC5B;;OAEG;IACH,QAAQ,gCAAgC;CAC3C;AAED,oBAAY,cAAc;IACtB;;OAEG;IACH,EAAE,4BAA4B;CACjC;AAED,oBAAY,WAAW;IACnB;;OAEG;IACH,EAAE,yBAAyB;IAC3B;;OAEG;IACH,EAAE,yBAAyB;CAC9B;AAED,eAAO,MAAM,cAAc,gCAAgC,CAAC"}
@@ -29,4 +29,5 @@ export var MediaPrefix = /*#__PURE__*/function (MediaPrefix) {
29
29
  MediaPrefix["V3"] = "/im/_matrix/media/v3";
30
30
  return MediaPrefix;
31
31
  }({});
32
+ export var VersionsPrefix = "/im/_matrix/client/versions";
32
33
  //# sourceMappingURL=prefix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prefix.js","names":["ClientPrefix","IdentityPrefix","MediaPrefix"],"sources":["../../src/http-api/prefix.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport enum ClientPrefix {\n /**\n * A constant representing the URI path for Client-Server API endpoints versioned at v1.\n */\n V1 = \"/im/_matrix/client/v1\",\n /**\n * A constant representing the URI path for Client-Server API endpoints versioned at v3.\n */\n V3 = \"/im/_matrix/client/v3\",\n /**\n * A constant representing the URI path for as-yet unspecified Client-Server HTTP APIs.\n */\n Unstable = \"/im/_matrix/client/unstable\",\n}\n\nexport enum IdentityPrefix {\n /**\n * URI path for the v2 identity API\n */\n V2 = \"/im/_matrix/identity/v2\",\n}\n\nexport enum MediaPrefix {\n /**\n * A constant representing the URI path for Client-Server API Media endpoints versioned at v1.\n */\n V1 = \"/im/_matrix/media/v1\",\n /**\n * A constant representing the URI path for Client-Server API Media endpoints versioned at v3.\n */\n V3 = \"/im/_matrix/media/v3\",\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAexB,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAO1B,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"prefix.js","names":["ClientPrefix","IdentityPrefix","MediaPrefix","VersionsPrefix"],"sources":["../../src/http-api/prefix.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport enum ClientPrefix {\n /**\n * A constant representing the URI path for Client-Server API endpoints versioned at v1.\n */\n V1 = \"/im/_matrix/client/v1\",\n /**\n * A constant representing the URI path for Client-Server API endpoints versioned at v3.\n */\n V3 = \"/im/_matrix/client/v3\",\n /**\n * A constant representing the URI path for as-yet unspecified Client-Server HTTP APIs.\n */\n Unstable = \"/im/_matrix/client/unstable\",\n}\n\nexport enum IdentityPrefix {\n /**\n * URI path for the v2 identity API\n */\n V2 = \"/im/_matrix/identity/v2\",\n}\n\nexport enum MediaPrefix {\n /**\n * A constant representing the URI path for Client-Server API Media endpoints versioned at v1.\n */\n V1 = \"/im/_matrix/media/v1\",\n /**\n * A constant representing the URI path for Client-Server API Media endpoints versioned at v3.\n */\n V3 = \"/im/_matrix/media/v3\",\n}\n\nexport const VersionsPrefix = \"/im/_matrix/client/versions\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAexB,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAO1B,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAWvB,OAAO,IAAMC,cAAc,GAAG,6BAA6B","ignoreList":[]}
package/lib/sync.js CHANGED
@@ -34,7 +34,7 @@ import { Filter } from "./filter.js";
34
34
  import { EventTimeline } from "./models/event-timeline.js";
35
35
  import { logger } from "./logger.js";
36
36
  import { ClientEvent, PendingEventOrdering } from "./client.js";
37
- import { Method } from "./http-api/index.js";
37
+ import { Method, VersionsPrefix } from "./http-api/index.js";
38
38
  import { EventType } from "./@types/event.js";
39
39
  import { RoomStateEvent } from "./models/room-state.js";
40
40
  import { RoomMemberEvent } from "./models/room-member.js";
@@ -1356,7 +1356,7 @@ export class SyncApi {
1356
1356
  this.connectionReturnedDefer = undefined;
1357
1357
  }
1358
1358
  };
1359
- this.client.http.request(Method.Get, "/_matrix/client/versions", undefined,
1359
+ this.client.http.request(Method.Get, VersionsPrefix, undefined,
1360
1360
  // queryParams
1361
1361
  undefined,
1362
1362
  // data