t0n 0.1.13 → 0.1.14

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/import.ts +4 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "t0n",
3
3
  "description": "Collection of elegant typescript resources for web artisans",
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
7
7
  "files": ["src"],
@@ -15,7 +15,7 @@
15
15
  "-prepublishOnly": "bun run build"
16
16
  },
17
17
  "dependencies": {
18
- "hono": "^4.11.7"
18
+ "hono": "^4.12.8"
19
19
  },
20
20
  "devDependencies": {
21
21
  "bun-types": "^1.3.8",
package/src/import.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  export async function IMPORT(path: string) {
2
- return import(path +'?v='+ Date.now())
2
+ if (process.platform === 'win32' && !path.startsWith('file://'))
3
+ path = 'file://' + path
4
+
5
+ return import(path + '?v=' + Date.now())
3
6
  }