@unwanted/matrix-sdk-mini 34.12.0-4 → 34.12.0-6
Sign up to get free protection for your applications and to get access to all the features.
- package/git-revision.txt +1 -1
- package/lib/autodiscovery.js +2 -2
- package/lib/autodiscovery.js.map +1 -1
- package/lib/client.d.ts +0 -7
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +2 -2
- package/lib/client.js.map +1 -1
- package/lib/http-api/prefix.d.ts +7 -6
- package/lib/http-api/prefix.d.ts.map +1 -1
- package/lib/http-api/prefix.js +7 -6
- package/lib/http-api/prefix.js.map +1 -1
- package/lib/sync.js +2 -2
- package/lib/sync.js.map +1 -1
- package/package.json +3 -2
- package/src/autodiscovery.ts +2 -2
- package/src/client.ts +2 -9
- package/src/http-api/prefix.ts +8 -6
- package/src/sync.ts +2 -2
package/lib/http-api/prefix.d.ts
CHANGED
@@ -2,30 +2,31 @@ export declare enum ClientPrefix {
|
|
2
2
|
/**
|
3
3
|
* A constant representing the URI path for Client-Server API endpoints versioned at v1.
|
4
4
|
*/
|
5
|
-
V1 = "/_matrix/client/v1",
|
5
|
+
V1 = "/im/_matrix/client/v1",
|
6
6
|
/**
|
7
7
|
* A constant representing the URI path for Client-Server API endpoints versioned at v3.
|
8
8
|
*/
|
9
|
-
V3 = "/_matrix/client/v3",
|
9
|
+
V3 = "/im/_matrix/client/v3",
|
10
10
|
/**
|
11
11
|
* A constant representing the URI path for as-yet unspecified Client-Server HTTP APIs.
|
12
12
|
*/
|
13
|
-
Unstable = "/_matrix/client/unstable"
|
13
|
+
Unstable = "/im/_matrix/client/unstable"
|
14
14
|
}
|
15
15
|
export declare enum IdentityPrefix {
|
16
16
|
/**
|
17
17
|
* URI path for the v2 identity API
|
18
18
|
*/
|
19
|
-
V2 = "/_matrix/identity/v2"
|
19
|
+
V2 = "/im/_matrix/identity/v2"
|
20
20
|
}
|
21
21
|
export declare enum MediaPrefix {
|
22
22
|
/**
|
23
23
|
* A constant representing the URI path for Client-Server API Media endpoints versioned at v1.
|
24
24
|
*/
|
25
|
-
V1 = "/_matrix/media/v1",
|
25
|
+
V1 = "/im/_matrix/media/v1",
|
26
26
|
/**
|
27
27
|
* A constant representing the URI path for Client-Server API Media endpoints versioned at v3.
|
28
28
|
*/
|
29
|
-
V3 = "/_matrix/media/v3"
|
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,
|
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"}
|
package/lib/http-api/prefix.js
CHANGED
@@ -15,18 +15,19 @@ limitations under the License.
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
export var ClientPrefix = /*#__PURE__*/function (ClientPrefix) {
|
18
|
-
ClientPrefix["V1"] = "/_matrix/client/v1";
|
19
|
-
ClientPrefix["V3"] = "/_matrix/client/v3";
|
20
|
-
ClientPrefix["Unstable"] = "/_matrix/client/unstable";
|
18
|
+
ClientPrefix["V1"] = "/im/_matrix/client/v1";
|
19
|
+
ClientPrefix["V3"] = "/im/_matrix/client/v3";
|
20
|
+
ClientPrefix["Unstable"] = "/im/_matrix/client/unstable";
|
21
21
|
return ClientPrefix;
|
22
22
|
}({});
|
23
23
|
export var IdentityPrefix = /*#__PURE__*/function (IdentityPrefix) {
|
24
|
-
IdentityPrefix["V2"] = "/_matrix/identity/v2";
|
24
|
+
IdentityPrefix["V2"] = "/im/_matrix/identity/v2";
|
25
25
|
return IdentityPrefix;
|
26
26
|
}({});
|
27
27
|
export var MediaPrefix = /*#__PURE__*/function (MediaPrefix) {
|
28
|
-
MediaPrefix["V1"] = "/_matrix/media/v1";
|
29
|
-
MediaPrefix["V3"] = "/_matrix/media/v3";
|
28
|
+
MediaPrefix["V1"] = "/im/_matrix/media/v1";
|
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 = \"/_matrix/client/v1\",\n /**\n * A constant representing the URI path for Client-Server API endpoints versioned at v3.\n */\n V3 = \"/_matrix/client/v3\",\n /**\n * A constant representing the URI path for as-yet unspecified Client-Server HTTP APIs.\n */\n Unstable = \"/_matrix/client/unstable\",\n}\n\nexport enum IdentityPrefix {\n /**\n * URI path for the v2 identity API\n */\n V2 = \"/_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 = \"/_matrix/media/v1\",\n /**\n * A constant representing the URI path for Client-Server API Media endpoints versioned at v3.\n */\n V3 = \"/_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,
|
1359
|
+
this.client.http.request(Method.Get, VersionsPrefix, undefined,
|
1360
1360
|
// queryParams
|
1361
1361
|
undefined,
|
1362
1362
|
// data
|