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

akyuu

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akyuu - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

.github/ISSUE_TEMPLATE.md

11

lib/loader/service.js

@@ -13,2 +13,3 @@ /**

const _ = require("lodash");
const Case = require("case");

@@ -37,4 +38,10 @@ class Service {

const apiName = filenames[i].substr(0, filenames[i].length - 3).toLowerCase();
this.services[apiName] = new (require(`${directory}/${filenames[i]}`))();
this.serviceClasses[apiName] = require(`${directory}/${filenames[i]}`);
const apiClass = require(`${directory}/${filenames[i]}`);
const apiClassInstance = new apiClass();
let apiClassName = apiClassInstance.constructor.name;
apiClassName = Case.snake(apiClassName);
this.services[apiClassName] = apiClassInstance;
this.serviceClasses[apiClassName] = apiClass;
this.logger.info(`Service \`${apiName}\` loaded.`);

@@ -41,0 +48,0 @@ }

3

package.json
{
"name": "akyuu",
"version": "0.2.0",
"version": "0.3.0",
"description": "Yet another web framework based on express.js named Akyuu.",

@@ -30,2 +30,3 @@ "main": "index.js",

"async": "^2.1.5",
"case": "^1.5.2",
"config": "^1.20.1",

@@ -32,0 +33,0 @@ "debug": "^2.2.0",

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