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

@easy-breezy/generator-api

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easy-breezy/generator-api - npm Package Compare versions

Comparing version 2.0.16 to 2.0.17

24

dist/index.js
import { dirname, join, relative } from 'path';
import { fileURLToPath } from 'url';
import { ESLint } from 'eslint';
import { cloneNode } from 'ts-clone-node';

@@ -21,7 +20,2 @@ import ts from 'typescript';

const __dirname = dirname(__filename);
const eslint = new ESLint({
overrideConfigFile: join(__dirname, '../.eslintrc.yml'),
fix: true,
useEslintrc: false
});
export default ({ i18n, config, fs, output, colors }) => {

@@ -97,3 +91,3 @@ i18n.addResource('ru', ru);

if (payload) {
fs.updateFile(path, this.schemaStringify(deepSortObject(payload)));
fs.updateFile(path, this.schemaStringify(deepSortObject(payload)), true);
}

@@ -341,3 +335,3 @@ };

imports.push(pathRelative);
const typeFile = createTypes({
fs.updateFile(pathEndpoint, createTypes({
i18n,

@@ -357,5 +351,3 @@ types,

}
}).print;
const typeFileLint = await eslint.lintText(typeFile);
fs.updateFile(pathEndpoint, typeFileLint[0].output || typeFile);
}).print, true);
endpointsAST.push(createEndpoint({

@@ -394,3 +386,3 @@ name: this.camelcase(this.path(path, method)),

}
const indexFile = createIndex({
fs.updateFile(this.path(pathAPI, 'index.ts'), createIndex({
i18n,

@@ -401,8 +393,4 @@ name: this.answers.name,

imports
}).print;
const indexFileLint = await eslint.lintText(indexFile);
fs.updateFile(this.path(pathAPI, 'index.ts'), indexFileLint[0].output || indexFile);
const extensionFile = createExtension({ i18n }).print;
const extensionFileLint = await eslint.lintText(extensionFile);
fs.createFile(this.path(pathAPI, 'extension.ts'), extensionFileLint[0].output || extensionFile);
}).print, true);
fs.createFile(this.path(pathAPI, 'extension.ts'), createExtension({ i18n }).print);
};

@@ -409,0 +397,0 @@ }

{
"name": "@easy-breezy/generator-api",
"version": "2.0.16",
"version": "2.0.17",
"main": "dist/index.js",

@@ -35,7 +35,4 @@ "type": "module",

"@apidevtools/swagger-parser": "10.1.0",
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
"camelcase": "7.0.1",
"enquirer": "2.3.6",
"eslint": "8.36.0",
"json-schema-to-typescript": "12.0.0",

@@ -42,0 +39,0 @@ "lodash.get": "4.4.2",

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