New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kuma-ui/vite

Package Overview
Dependencies
Maintainers
3
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kuma-ui/vite - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

23

dist/index.js

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

}
const cssLookup = {};
const cssTable = [];
const virtualModuleId = "virtual:kuma-ui";

@@ -96,9 +96,9 @@ const userTheme = import_sheet.theme.getUserTheme();

const css = result.metadata.css || "";
const cssFilename = import_path.default.normalize(
`${id.replace(/\.[jt]sx?$/, "")}-${(0, import_sheet.generateHash)(css)}.css`
);
const cssRelativePath = import_path.default.relative(process.cwd(), cssFilename).replace(/\\/g, import_path.default.posix.sep);
cssLookup[cssRelativePath] = css;
const cssPath = import_path.default.normalize(id.replace(/\.[jt]sx?$/, ""));
const url = `${virtualModuleId}/${(0, import_sheet.generateHash)(
import_path.default.dirname(cssPath)
)}/${import_path.default.basename(cssPath)}-${(0, import_sheet.generateHash)(css)}.css`;
cssTable.push({ url, css });
import_sheet.sheet.reset();
return `import "${virtualModuleId}/${cssRelativePath}";
return `import "${url}";
` + result.code;

@@ -109,4 +109,4 @@ },

return void 0;
const id = url.slice(`\0${virtualModuleId}`.length + 1);
return cssLookup[id];
const urlContent = url.slice(`\0`.length);
return cssTable.find((c) => c.url === urlContent)?.css ?? void 0;
},

@@ -118,5 +118,4 @@ resolveId(importeeUrl) {

},
handleHotUpdate({ server }) {
import_sheet.sheet.reset();
server.ws.send({ type: "full-reload" });
handleHotUpdate() {
cssTable.length = 0;
},

@@ -123,0 +122,0 @@ configResolved(config) {

{
"name": "@kuma-ui/vite",
"version": "1.1.5",
"version": "1.2.0",
"description": "🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.",

@@ -32,4 +32,4 @@ "repository": {

"eval": "^0.1.8",
"@kuma-ui/babel-plugin": "^1.1.12",
"@kuma-ui/system": "^1.7.0",
"@kuma-ui/babel-plugin": "^1.1.13",
"@kuma-ui/system": "^1.7.1",
"@kuma-ui/sheet": "^1.3.0"

@@ -40,2 +40,5 @@ },

},
"peerDependencies": {
"vite": "^4 || ^5"
},
"publishConfig": {

@@ -42,0 +45,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

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