lukasbach / monaco-editor-auto-typings

Automatically load declaration files while typing in monaco editor instances
https://lukasbach.github.io/monaco-editor-auto-typings/
MIT License
181 stars 39 forks source link

[BUG] Custom version is not downloaded - latest is downloaded instead #18

Closed HonzaTuron closed 2 years ago

HonzaTuron commented 2 years ago

Describe the bug I'm using auto typings in combination with @monaco-editor/react, and my AutoTypings create config is following:

await AutoTypings.create(editor, { sourceCache: new LocalStorageCache(), monaco, versions: { apify: '2.3.2' }, preloadPackages: true });

So I would expect apify@2.3.2 is downloaded, but instead, latest apify@3.0.1 is downloaded (and cached).

To Reproduce Set different major version for any package, try to fetch its types

Expected behavior Different version types is fetched

Environment (please complete the following information): React 17.0.2 /w CRA

lukasbach commented 2 years ago

Thank you for your contribution!