@react-ddd/cli
Advanced tools
@@ -11,2 +11,3 @@ "use strict"; | ||
| const caseify_1 = __importDefault(require("#helpers/caseify")); | ||
| const fp_1 = require("lodash/fp"); | ||
| const template = path_1.default.join(__dirname, 'hook_template'); | ||
@@ -32,2 +33,3 @@ const options = { | ||
| const config = await (0, loadConfig_1.default)(args); | ||
| const name = (0, fp_1.replace)(/^use/, '', args.name); | ||
| (0, generator_1.default)(template, { | ||
@@ -37,3 +39,3 @@ config, | ||
| ...args, | ||
| name: (0, caseify_1.default)(args.name), | ||
| name: (0, caseify_1.default)(name), | ||
| }, | ||
@@ -40,0 +42,0 @@ }); |
| "use strict"; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const fp_1 = require("lodash/fp"); | ||
| const spinalCase_1 = __importDefault(require("./spinalCase")); | ||
| exports.default = (name) => ({ | ||
| camel: (0, fp_1.camelCase)(name), | ||
| spinal: (0, spinalCase_1.default)(name), | ||
| spinal: (0, fp_1.kebabCase)(name), | ||
| pascal: (0, fp_1.flow)(fp_1.camelCase, (0, fp_1.replace)(/^(.)/, fp_1.toUpper))(name), | ||
| }); |
+1
-1
| { | ||
| "name": "@react-ddd/cli", | ||
| "version": "0.0.7", | ||
| "version": "0.0.8", | ||
| "description": "Code generation", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const fp_1 = require("lodash/fp"); | ||
| exports.default = (0, fp_1.flow)(fp_1.snakeCase, (0, fp_1.replace)(/_/g, '-')); |
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
58608
-0.69%37
-2.63%452
-1.31%