Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@takuma-ru/auto-story-generator

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@takuma-ru/auto-story-generator - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

12

dist/index.js

@@ -587,6 +587,16 @@ var __defProp = Object.defineProperty;

return consola4.error("Could not find argTypes");
const defaultExportDeclaration = sourceFile.getExportedDeclarations();
let isDefaultExportComponent = false;
defaultExportDeclaration.forEach((declaration, exportName) => {
var _a;
if (exportName === "default") {
const defaultExportName = (_a = declaration[0].getSymbol()) == null ? void 0 : _a.getName();
isDefaultExportComponent = defaultExportName === pascalComponentName;
return;
}
});
const initialCode = `
import type { Meta, StoryObj } from "@storybook/react";
import { ${pascalComponentName} } from "./${fileName}";
${isDefaultExportComponent ? `import ${pascalComponentName} from "./${fileName}";` : `import { ${pascalComponentName} } from "./${fileName}";`}

@@ -593,0 +603,0 @@ const meta: Meta<typeof ${pascalComponentName}> = {

4

package.json
{
"name": "@takuma-ru/auto-story-generator",
"description": "Automatic real-time story file generation from React, Vue, Angular and Lit component files",
"private": false,
"version": "0.2.2",
"description": "",
"version": "0.2.3",
"main": "./dist/index.js",

@@ -7,0 +7,0 @@ "module": "./dist/index.js",

@@ -6,3 +6,3 @@ # @takuma-ru/auto-story-generator

## Description
Automatic real-time story file generation from React, Vue, and Lit component files
Automatic real-time story file generation from React, Vue, Angular and Lit component files

@@ -9,0 +9,0 @@ ## Getting Started

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