Socket
Socket
Sign inDemoInstall

@storybook/addon-svelte-csf

Package Overview
Dependencies
Maintainers
31
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.5--canary.113.25a4298.0 to 3.0.5--canary.113.70c1500.0

2

dist/config-loader.js

@@ -6,3 +6,3 @@ // This file is a rewrite of `@sveltejs/vite-plugin-svelte` without the `Vite`

import fs from 'fs';
import { logger } from '@storybook/client-logger';
import { logger } from '@storybook/node-logger';
import path from 'path';

@@ -9,0 +9,0 @@ import { pathExists } from 'fs-extra';

export declare function getNameFromFilename(filename: string): string;
declare function transformSvelteStories(code: string): any;
declare function transformSvelteStories(code: string): string;
export default transformSvelteStories;

@@ -5,3 +5,4 @@ import dedent from 'dedent';

import { readFileSync } from 'fs';
const parser = fileURLToPath(new URL('./collect-stories.js', import.meta.url));
const parser = fileURLToPath(new URL('./collect-stories.js', import.meta.url))
.replace(/\\/g, "\\\\"); // For Windows paths;
// From https://github.com/sveltejs/svelte/blob/8db3e8d0297e052556f0b6dde310ef6e197b8d18/src/compiler/compile/utils/get_name_from_filename.ts

@@ -8,0 +9,0 @@ // Copied because it is not exported from the compiler

@@ -8,3 +8,4 @@ import * as svelte from 'svelte/compiler';

import { readFileSync } from 'fs';
const parser = fileURLToPath(new URL('../parser/collect-stories.js', import.meta.url));
const parser = fileURLToPath(new URL('../parser/collect-stories.js', import.meta.url))
.replace(/\\/g, "\\\\"); // For Windows paths
export default function csfPlugin(svelteOptions) {

@@ -11,0 +12,0 @@ const include = /\.stories\.svelte$/;

import { fileURLToPath } from 'url';
import { svelteIndexer } from './indexer.js';
export function managerEntries(entry = []) {
return [...entry, fileURLToPath(new URL('./manager.js', import.meta.url))];
return [
...entry,
fileURLToPath(new URL('./manager.js', import.meta.url))
.replace(/\\/g, "\\\\"), // For Windows paths
];
}

@@ -18,3 +22,4 @@ export function webpack(config) {

{
loader: fileURLToPath(new URL('../parser/svelte-stories-loader.js', import.meta.url)),
loader: fileURLToPath(new URL('../parser/svelte-stories-loader.js', import.meta.url))
.replace(/\\/g, "\\\\"), // For Windows paths
},

@@ -21,0 +26,0 @@ ],

{
"name": "@storybook/addon-svelte-csf",
"version": "3.0.5--canary.113.25a4298.0",
"version": "3.0.5--canary.113.70c1500.0",
"description": "Allows to write stories in Svelte syntax",

@@ -37,3 +37,3 @@ "keywords": [

"clean": "rimraf ./dist",
"build": "svelte-package -i ./src -t",
"build": "svelte-package --input ./src --types",
"prepublish": "yarn clean && yarn build",

@@ -53,3 +53,3 @@ "test": "vitest run",

"magic-string": "^0.30.1",
"ts-dedent": "^2.2.0"
"dedent": "^1.2.0"
},

@@ -56,0 +56,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc