network-speed-js 0.0.2 → 1.0.1

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.
Files changed (42) hide show
  1. package/README.md +817 -6
  2. package/dist/core/performance-utils.d.ts +21 -0
  3. package/dist/core/performance-utils.d.ts.map +1 -0
  4. package/dist/core/sdk.d.ts +34 -0
  5. package/dist/core/sdk.d.ts.map +1 -0
  6. package/dist/core/speed-tester.d.ts +34 -0
  7. package/dist/core/speed-tester.d.ts.map +1 -0
  8. package/dist/core/types.d.ts +59 -0
  9. package/dist/core/types.d.ts.map +1 -0
  10. package/dist/index.d.ts +4 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/network-speed-js.js +175 -0
  13. package/dist/network-speed-js.umd.js +1 -0
  14. package/package.json +50 -7
  15. package/.eslintrc.js +0 -3
  16. package/.vscode/extensions.json +0 -3
  17. package/index.html +0 -13
  18. package/playground/.vscode/extensions.json +0 -3
  19. package/playground/README.md +0 -18
  20. package/playground/index.html +0 -13
  21. package/playground/package.json +0 -21
  22. package/playground/pnpm-global/5/pnpm-lock.yaml +0 -7
  23. package/playground/pnpm-lock.yaml +0 -701
  24. package/playground/public/vite.svg +0 -1
  25. package/playground/src/App.vue +0 -11
  26. package/playground/src/assets/vue.svg +0 -1
  27. package/playground/src/components/HelloWorld.vue +0 -38
  28. package/playground/src/main.ts +0 -7
  29. package/playground/src/style.css +0 -79
  30. package/playground/src/vite-env.d.ts +0 -1
  31. package/playground/tsconfig.json +0 -25
  32. package/playground/tsconfig.node.json +0 -10
  33. package/playground/vite.config.ts +0 -7
  34. package/pnpm-lock.yaml +0 -928
  35. package/src/App.vue +0 -118
  36. package/src/api.ts +0 -23
  37. package/src/index.ts +0 -1
  38. package/src/main.ts +0 -5
  39. package/src/vite-env.d.ts +0 -1
  40. package/tsconfig.json +0 -25
  41. package/tsconfig.node.json +0 -10
  42. package/vite.config.ts +0 -13
@@ -1,11 +0,0 @@
1
- <template>
2
- <div>
3
-
4
- </div>
5
- </template>
6
-
7
- <script setup lang="ts">
8
-
9
- </script>
10
-
11
- <style scoped></style>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
@@ -1,38 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from 'vue'
3
-
4
- defineProps<{ msg: string }>()
5
-
6
- const count = ref(0)
7
- </script>
8
-
9
- <template>
10
- <h1>{{ msg }}</h1>
11
-
12
- <div class="card">
13
- <button type="button" @click="count++">count is {{ count }}</button>
14
- <p>
15
- Edit
16
- <code>components/HelloWorld.vue</code> to test HMR
17
- </p>
18
- </div>
19
-
20
- <p>
21
- Check out
22
- <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
23
- >create-vue</a
24
- >, the official Vue + Vite starter
25
- </p>
26
- <p>
27
- Install
28
- <a href="https://github.com/vuejs/language-tools" target="_blank">Volar</a>
29
- in your IDE for a better DX
30
- </p>
31
- <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
32
- </template>
33
-
34
- <style scoped>
35
- .read-the-docs {
36
- color: #888;
37
- }
38
- </style>
@@ -1,7 +0,0 @@
1
- import { createApp } from "vue";
2
- import "./style.css";
3
- import App from "./App.vue";
4
-
5
- import { NetworkSDK } from "network-speed-js";
6
- console.log(NetworkSDK, "NetworkSDK");
7
- createApp(App).mount("#app");
@@ -1,79 +0,0 @@
1
- :root {
2
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 1.5;
4
- font-weight: 400;
5
-
6
- color-scheme: light dark;
7
- color: rgba(255, 255, 255, 0.87);
8
- background-color: #242424;
9
-
10
- font-synthesis: none;
11
- text-rendering: optimizeLegibility;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- a {
17
- font-weight: 500;
18
- color: #646cff;
19
- text-decoration: inherit;
20
- }
21
- a:hover {
22
- color: #535bf2;
23
- }
24
-
25
- body {
26
- margin: 0;
27
- display: flex;
28
- place-items: center;
29
- min-width: 320px;
30
- min-height: 100vh;
31
- }
32
-
33
- h1 {
34
- font-size: 3.2em;
35
- line-height: 1.1;
36
- }
37
-
38
- button {
39
- border-radius: 8px;
40
- border: 1px solid transparent;
41
- padding: 0.6em 1.2em;
42
- font-size: 1em;
43
- font-weight: 500;
44
- font-family: inherit;
45
- background-color: #1a1a1a;
46
- cursor: pointer;
47
- transition: border-color 0.25s;
48
- }
49
- button:hover {
50
- border-color: #646cff;
51
- }
52
- button:focus,
53
- button:focus-visible {
54
- outline: 4px auto -webkit-focus-ring-color;
55
- }
56
-
57
- .card {
58
- padding: 2em;
59
- }
60
-
61
- #app {
62
- max-width: 1280px;
63
- margin: 0 auto;
64
- padding: 2rem;
65
- text-align: center;
66
- }
67
-
68
- @media (prefers-color-scheme: light) {
69
- :root {
70
- color: #213547;
71
- background-color: #ffffff;
72
- }
73
- a:hover {
74
- color: #747bff;
75
- }
76
- button {
77
- background-color: #f9f9f9;
78
- }
79
- }
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "module": "ESNext",
6
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
- "skipLibCheck": true,
8
-
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
- "isolatedModules": true,
14
- "noEmit": true,
15
- "jsx": "preserve",
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
22
- },
23
- "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],
24
- "references": [{ "path": "./tsconfig.node.json" }]
25
- }
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "skipLibCheck": true,
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true
8
- },
9
- "include": ["vite.config.ts"]
10
- }
@@ -1,7 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
3
-
4
- // https://vitejs.dev/config/
5
- export default defineConfig({
6
- plugins: [vue()],
7
- })