network-speed-js 0.0.0 → 0.0.2
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.
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"name": "network-speed-js",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "A small tool for testing network speed. It also has the ability to test internal and external networks.",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.2",
|
|
6
|
+
"module": "dist/network-speed-js.js",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"dev": "vite",
|
package/playground/package.json
CHANGED
package/playground/src/App.vue
CHANGED
|
@@ -1,30 +1,11 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import HelloWorld from './components/HelloWorld.vue'
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
1
|
<template>
|
|
6
2
|
<div>
|
|
7
|
-
|
|
8
|
-
<img src="/vite.svg" class="logo" alt="Vite logo" />
|
|
9
|
-
</a>
|
|
10
|
-
<a href="https://vuejs.org/" target="_blank">
|
|
11
|
-
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
|
12
|
-
</a>
|
|
3
|
+
|
|
13
4
|
</div>
|
|
14
|
-
<HelloWorld msg="Vite + Vue" />
|
|
15
5
|
</template>
|
|
16
6
|
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
transition: filter 300ms;
|
|
23
|
-
}
|
|
24
|
-
.logo:hover {
|
|
25
|
-
filter: drop-shadow(0 0 2em #646cffaa);
|
|
26
|
-
}
|
|
27
|
-
.logo.vue:hover {
|
|
28
|
-
filter: drop-shadow(0 0 2em #42b883aa);
|
|
29
|
-
}
|
|
30
|
-
</style>
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<style scoped></style>
|
package/playground/src/main.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { createApp } from
|
|
2
|
-
import
|
|
3
|
-
import App from
|
|
1
|
+
import { createApp } from "vue";
|
|
2
|
+
import "./style.css";
|
|
3
|
+
import App from "./App.vue";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { NetworkSDK } from "network-speed-js";
|
|
6
|
+
console.log(NetworkSDK, "NetworkSDK");
|
|
7
|
+
createApp(App).mount("#app");
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NetworkSDK } from "./App.vue";
|
package/vite.config.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
2
|
-
import vue from
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import vue from "@vitejs/plugin-vue";
|
|
3
3
|
|
|
4
4
|
// https://vitejs.dev/config/
|
|
5
5
|
export default defineConfig({
|
|
6
6
|
plugins: [vue()],
|
|
7
|
-
|
|
7
|
+
build: {
|
|
8
|
+
lib: {
|
|
9
|
+
entry: "./src/index.ts",
|
|
10
|
+
name: "network-speed-esm.js",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|