From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- .../external/matrix/node_modules/matrix-js-sdk/lib/content-repo.js.map | 1 - 1 file changed, 1 deletion(-) delete mode 100644 includes/external/matrix/node_modules/matrix-js-sdk/lib/content-repo.js.map (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/content-repo.js.map') diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/content-repo.js.map b/includes/external/matrix/node_modules/matrix-js-sdk/lib/content-repo.js.map deleted file mode 100644 index 19aaff9..0000000 --- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/content-repo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"content-repo.js","names":["utils","_interopRequireWildcard","require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","getHttpUriForMxc","baseUrl","mxc","width","height","resizeMethod","allowDirectLinks","indexOf","serverAndMediaId","slice","prefix","params","Math","round","toString","keys","length","fragmentOffset","fragment","urlParams","encodeParams"],"sources":["../src/content-repo.ts"],"sourcesContent":["/*\nCopyright 2015 - 2021 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\nimport * as utils from \"./utils\";\n\n/**\n * Get the HTTP URL for an MXC URI.\n * @param baseUrl - The base homeserver url which has a content repo.\n * @param mxc - The mxc:// URI.\n * @param width - The desired width of the thumbnail.\n * @param height - The desired height of the thumbnail.\n * @param resizeMethod - The thumbnail resize method to use, either\n * \"crop\" or \"scale\".\n * @param allowDirectLinks - If true, return any non-mxc URLs\n * directly. Fetching such URLs will leak information about the user to\n * anyone they share a room with. If false, will return the emptry string\n * for such URLs.\n * @returns The complete URL to the content.\n */\nexport function getHttpUriForMxc(\n baseUrl: string,\n mxc?: string,\n width?: number,\n height?: number,\n resizeMethod?: string,\n allowDirectLinks = false,\n): string {\n if (typeof mxc !== \"string\" || !mxc) {\n return \"\";\n }\n if (mxc.indexOf(\"mxc://\") !== 0) {\n if (allowDirectLinks) {\n return mxc;\n } else {\n return \"\";\n }\n }\n let serverAndMediaId = mxc.slice(6); // strips mxc://\n let prefix = \"/_matrix/media/r0/download/\";\n const params: Record = {};\n\n if (width) {\n params[\"width\"] = Math.round(width).toString();\n }\n if (height) {\n params[\"height\"] = Math.round(height).toString();\n }\n if (resizeMethod) {\n params[\"method\"] = resizeMethod;\n }\n if (Object.keys(params).length > 0) {\n // these are thumbnailing params so they probably want the\n // thumbnailing API...\n prefix = \"/_matrix/media/r0/thumbnail/\";\n }\n\n const fragmentOffset = serverAndMediaId.indexOf(\"#\");\n let fragment = \"\";\n if (fragmentOffset >= 0) {\n fragment = serverAndMediaId.slice(fragmentOffset);\n serverAndMediaId = serverAndMediaId.slice(0, fragmentOffset);\n }\n\n const urlParams = Object.keys(params).length === 0 ? \"\" : \"?\" + utils.encodeParams(params);\n return baseUrl + prefix + serverAndMediaId + urlParams + fragment;\n}\n"],"mappings":";;;;;;AAgBA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAiC,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBA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