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.0",
5
+ "version": "0.0.2",
6
+ "module": "dist/network-speed-js.js",
6
7
  "type": "module",
7
8
  "scripts": {
8
9
  "dev": "vite",
@@ -9,6 +9,7 @@
9
9
  "preview": "vite preview"
10
10
  },
11
11
  "dependencies": {
12
+ "network-speed-js": "^0.0.1",
12
13
  "vue": "^3.3.11"
13
14
  },
14
15
  "devDependencies": {
@@ -0,0 +1,7 @@
1
+ lockfileVersion: 5.3
2
+
3
+ specifiers:
4
+ network-speed-js: ^0.0.1
5
+
6
+ dependencies:
7
+ network-speed-js: link:../../../../../.nvm/versions/node/v16.14.2/pnpm-global/5/node_modules/network-speed-js
@@ -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
- <a href="https://vitejs.dev" target="_blank">
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
- <style scoped>
18
- .logo {
19
- height: 6em;
20
- padding: 1.5em;
21
- will-change: filter;
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>
@@ -1,5 +1,7 @@
1
- import { createApp } from 'vue'
2
- import './style.css'
3
- import App from './App.vue'
1
+ import { createApp } from "vue";
2
+ import "./style.css";
3
+ import App from "./App.vue";
4
4
 
5
- createApp(App).mount('#app')
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 'vite'
2
- import vue from '@vitejs/plugin-vue'
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
+ });