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

@noreajs/core

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noreajs/core - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

dist/lib/api-routes.d.ts

10

dist/index.js

@@ -13,5 +13,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const app_1 = __importDefault(require("./app"));
const app_1 = __importDefault(require("./lib/app"));
const http = __importStar(require("http"));
const https = __importStar(require("http"));
const group_1 = __importDefault(require("./lib/routes/group"));
const NoreaRouter_1 = __importDefault(require("./lib/routes/NoreaRouter"));
const PORT = process.env.PORT || 3000;

@@ -24,2 +26,8 @@ // create server

});
module.exports = {
route: {
group: group_1.default,
NoreaRouter: NoreaRouter_1.default
}
};
//# sourceMappingURL=index.js.map

6

lib/routes/group.ts
import express, { NextFunction } from "express";
import NoreRouter from './NoreRouter';
import NoreaRouter from './NoreaRouter';

@@ -10,3 +10,3 @@ /**

*/
export default function group(prefix: string, middlewares: NextFunction[], routes: (router: NoreRouter) => void) {
export default function group(prefix: string, middlewares: NextFunction[], routes: (router: NoreaRouter) => void) {
const expressRouter = express.Router();

@@ -21,5 +21,5 @@

// define routes
routes(new NoreRouter(expressRouter, prefix));
routes(new NoreaRouter(expressRouter, prefix));
return expressRouter;
}
{
"name": "@noreajs/core",
"version": "1.0.2",
"version": "1.0.3",
"description": "Norea.Js is a framework for building scalable Node.js server applications. Is is built with Typescript and use Express as web framework.",

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

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