@mtkruto/node 0.1.161 → 0.1.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -210,7 +210,7 @@ function isWeb(fileType) {
210
210
  return !!(fileType & WEB_LOCATION_FLAG);
211
211
  }
212
212
  function hasFileReference(fileType) {
213
- return !!(fileType && FILE_REFERENCE_FLAG);
213
+ return !!(fileType & FILE_REFERENCE_FLAG);
214
214
  }
215
215
  export function deserializeFileId(fileId) {
216
216
  const reader = new TLReader(rleDecode(base64DecodeUrlSafe(fileId)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.1.161",
3
+ "version": "0.1.162",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -213,7 +213,7 @@ function isWeb(fileType) {
213
213
  return !!(fileType & WEB_LOCATION_FLAG);
214
214
  }
215
215
  function hasFileReference(fileType) {
216
- return !!(fileType && FILE_REFERENCE_FLAG);
216
+ return !!(fileType & FILE_REFERENCE_FLAG);
217
217
  }
218
218
  function deserializeFileId(fileId) {
219
219
  const reader = new _2_tl_js_1.TLReader((0, _1_utilities_js_1.rleDecode)((0, _1_utilities_js_1.base64DecodeUrlSafe)(fileId)));