@callstack/repack-dev-server
Advanced tools
Comparing version 4.0.0-rc.0 to 4.0.0-rc.1
# @callstack/repack-dev-server | ||
## 4.0.0-rc.1 | ||
### Patch Changes | ||
- [#554](https://github.com/callstack/repack/pull/554) [`ed82e29`](https://github.com/callstack/repack/commit/ed82e29c2871411fd73616f29a7d4b75ff3dd913) Thanks [@jbroma](https://github.com/jbroma)! - Fix path to favicon.ico on Windows | ||
## 4.0.0-rc.0 | ||
@@ -4,0 +10,0 @@ |
@@ -0,1 +1,3 @@ | ||
import path from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import fastifyFavicon from 'fastify-favicon'; | ||
@@ -5,6 +7,7 @@ import fastifyPlugin from 'fastify-plugin'; | ||
// @ts-ignore | ||
const pathToImg = new URL('../../img', import.meta.url).pathname; | ||
const dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
const pathToImgDir = path.join(dirname, '../../img'); | ||
async function faviconPlugin(instance) { | ||
instance.register(fastifyFavicon, { | ||
path: pathToImg | ||
path: pathToImgDir | ||
}); | ||
@@ -11,0 +14,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "4.0.0-rc.0", | ||
"version": "4.0.0-rc.1", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
247030
2711
1