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

nest-utilities-cli

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

nest-utilities-cli - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

2

package.json
{
"name": "nest-utilities-cli",
"version": "1.1.0",
"version": "1.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,3 @@ "use strict";

@Controller("{name}")
@Controller("{controller}")
export class {name}Controller extends CrudController<I{name}Model> {

@@ -26,3 +26,4 @@ constructor(private readonly service: {name}Service) {

.replace(/{name}/g, name)
.replace(/{controller}/g, string_utils_1.StringUtils.hyphenate(name))
.replace(/{servicePath}/g, string_utils_1.StringUtils.pathToImport(servicePath))
.replace(/{schemaPath}/g, string_utils_1.StringUtils.pathToImport(schemaPath));

@@ -9,3 +9,13 @@ "use strict";

}
static hyphenate(value) {
const text = value + "A";
const words = [];
for (let i = 1; i < text.length; i++) {
if (text[i] === text[i].toUpperCase()) {
words.push(text.substring(words.join("").length, i).toLowerCase());
}
}
return words.join("-");
}
}
exports.StringUtils = StringUtils;
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