Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add support for Deno #32

Open
NfNitLoop opened this issue Mar 2, 2024 · 1 comment
Open

Feature Request: Add support for Deno #32

NfNitLoop opened this issue Mar 2, 2024 · 1 comment

Comments

@NfNitLoop
Copy link

Sample code:

import { default as CFSpeedTest, ConfigOptions } from "npm:@cloudflare/speedtest@1.3.0"

async function main() {
    const opts: ConfigOptions = {
    }
    const test = new CFSpeedTest(opts)
    test.onFinish = (results) => {
        console.log(results)
    }
}

if (import.meta.main) {
    await main()
}

Output:

✅ Granted read access to "C:\Users\codyc\AppData\Local\deno\npm\node_modules".
✅ Granted read access to "C:\Users\codyc\AppData\Local\deno\node_modules".
✅ Granted read access to "C:\Users\codyc\AppData\Local\node_modules".
✅ Granted read access to "C:\Users\codyc\AppData\node_modules".
✅ Granted read access to "C:\Users\codyc\node_modules".
✅ Granted read access to "C:\Users\node_modules".
✅ Granted read access to "C:\node_modules".
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=100000: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=100000: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?during=download&bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=100000: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?bytes=100000: TypeError: Cannot read properties of undefined (reading 'transferSize')
Error fetching https://speed.cloudflare.com/__down?during=download&bytes=0: TypeError: Cannot read properties of undefined (reading 'transferSize')
[etc.]
@jsejcksn
Copy link

jsejcksn commented Nov 2, 2024

Ref: PerformanceResourceTiming: transferSize property — the Performance API is not yet fully implemented in Deno. See this related tracking issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants