Socket
Socket
Sign inDemoInstall

vite

Package Overview
Dependencies
Maintainers
1
Versions
569
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite - npm Package Compare versions

Comparing version 0.16.8 to 0.16.9

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## [0.16.9](https://github.com/vuejs/vite/compare/v0.16.8...v0.16.9) (2020-05-23)
### Bug Fixes
* public dir should be copied to dist root ([bf2b2a9](https://github.com/vuejs/vite/commit/bf2b2a9c7d66b001260e60d825ae72e8c3e0c301))
* quote resolved urls in rendered html ([fd68ecf](https://github.com/vuejs/vite/commit/fd68ecfa5c5e74a1a463ed5c91b9fecba356f846))
## [0.16.8](https://github.com/vuejs/vite/compare/v0.16.7...v0.16.8) (2020-05-23)

@@ -2,0 +12,0 @@

5

dist/build/buildPluginAsset.js

@@ -14,2 +14,3 @@ "use strict";

const assetResolveCache = new Map();
const publicDirRE = /^public(\/|\\)/;
exports.resolveAsset = async (id, root, publicBase, assetsDir, inlineLimit) => {

@@ -22,3 +23,3 @@ const cached = assetResolveCache.get(id);

const pathFromRoot = path_1.default.relative(root, id);
if (/^public(\/|\\)/.test(pathFromRoot)) {
if (publicDirRE.test(pathFromRoot)) {
// assets inside the public directory will be copied over verbatim

@@ -29,3 +30,3 @@ // so all we need to do is just append the baseDir

fileName: null,
url: slash_1.default(path_1.default.join(publicBase, pathFromRoot))
url: slash_1.default(path_1.default.join(publicBase, pathFromRoot.replace(publicDirRE, '')))
};

@@ -32,0 +33,0 @@ }

2

dist/build/buildPluginHtml.js

@@ -157,3 +157,3 @@ "use strict";

const { url } = await buildPluginAsset_1.resolveAsset(resolver.requestToFile(value.content), root, publicBasePath, assetsDir, inlineLimit);
s.overwrite(value.loc.start.offset, value.loc.end.offset, url);
s.overwrite(value.loc.start.offset, value.loc.end.offset, `"${url}"`);
}

@@ -160,0 +160,0 @@ return {

@@ -238,3 +238,5 @@ "use strict";

if (fs_extra_1.default.existsSync(publicDir)) {
await fs_extra_1.default.copy(publicDir, path_1.default.resolve(outDir, 'public'));
for (const file of await fs_extra_1.default.readdir(publicDir)) {
await fs_extra_1.default.copy(path_1.default.join(publicDir, file), path_1.default.resolve(outDir, file));
}
}

@@ -241,0 +243,0 @@ }

{
"name": "vite",
"version": "0.16.8",
"version": "0.16.9",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Evan You",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc