qgustavor / mega

Unofficial JavaScript SDK for MEGA
https://mega.js.org/
MIT License
161 stars 43 forks source link

Get the sharing link of files #125

Closed RealAlphabet closed 2 years ago

RealAlphabet commented 2 years ago

When listing files, MEGA introduces a property named ph which contains the list of shared links "unique identifiers". This determines whether a file is shared and its sharing link when it is imported.

qgustavor commented 2 years ago

Linter is failing. Please run npm test node, there's a stray semicolon in line 179 and code should use strict equals ===. More rules here: https://standardjs.com/rules.html

When Node tests passes and Deno tests shows nothing too weird (sometimes it fails randomly for no reason) I'll release a minor version with this change. I have to remember to update the documentation with those changes.

qgustavor commented 2 years ago

I'll merge: Node tests passed and Deno failed with "Promise resolution is still pending but the event loop has already resolved." which is normal.

qgustavor commented 2 years ago

I need to migrate building to a CI instead of building using my machine, for some reason it's quite slow today. I just published megajs@1.1.0.