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

@atelier-wb/vite-plugin-svelte

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atelier-wb/vite-plugin-svelte - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0-alpha.0

12

package.json
{
"name": "@atelier-wb/vite-plugin-svelte",
"version": "0.1.0",
"version": "0.2.0-alpha.0",
"description": "Vite plugin to process your svelte components",

@@ -11,8 +11,8 @@ "main": "src/index.js",

"dependencies": {
"@atelier-wb/ui": "^0.1.0",
"ajv": "^8.1.0",
"sirv": "^1.0.11"
"@atelier-wb/ui": "^0.2.0-alpha.0",
"ajv": "^8.6.3",
"sirv": "^1.0.17"
},
"peerDependencies": {
"vite": "^2.1.5"
"vite": "^2.5.10"
},

@@ -23,3 +23,3 @@ "devDependencies": {

"got": "^11.8.2",
"jest": "^26.6.3",
"jest": "^27.2.2",
"jest-watch-typeahead": "^0.6.2"

@@ -26,0 +26,0 @@ },

@@ -14,3 +14,3 @@ const { resolve } = require('path')

path: { type: 'string' },
url: { type: 'string', pattern: '^\\/.' },
url: { type: 'string', pattern: '^\\/' },
toolRegexp: { type: 'string' },

@@ -70,2 +70,3 @@ workframeHtml: { type: 'string' },

const options = { ...defaultOptions, ...pluginOptions }
const hasTrailingUrl = options.url.endsWith('/')
const valid = validate(options)

@@ -87,4 +88,2 @@ if (!valid) {

async configureServer(server) {
const hasTrailingUrl = options.url.endsWith('/')
let uiPath = resolve(__dirname, '..', '..', 'ui')

@@ -135,3 +134,6 @@ if (options.bundled) {

async load(id) {
if (id === `${options.url}/${options.workframeId}`) {
if (
id ===
`${options.url}${hasTrailingUrl ? '' : '/'}${options.workframeId}`
) {
return buildWorkframe(

@@ -138,0 +140,0 @@ await findTools(options.path, toolRegexp),

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