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

@sigodenjs/dee

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

@sigodenjs/dee - npm Package Compare versions

Comparing version 0.9.1 to 0.10.0

113

dist/index.d.ts

@@ -13,63 +13,60 @@ /// <reference types="node" />

interface Request {
srvs: Dee.ServiceGroup;
srvs: ServiceGroup;
}
}
}
declare namespace Dee {
interface Request extends expressCore.Request {
}
interface Response extends expressCore.Response {
}
interface NextFunction extends expressCore.NextFunction {
}
interface RequestHandler extends expressCore.RequestHandler {
}
interface HandlerFuncMap extends swaggerize.HandlerFuncMap {
}
interface Express extends expressCore.Express {
}
interface Options {
config: Config;
swaggerize: swaggerize.Options;
beforeRoute?: RouteHooks;
afterRoute?: RouteHooks;
errorHandler?: express.ErrorRequestHandler;
ready?: (app: App) => void;
services?: ServicesOptionsMap;
}
interface ServiceInitializeContext {
srvs: ServiceGroup;
}
interface Args {
}
interface App {
srvs: ServiceGroup;
express: Dee.Express;
start: () => Promise<Server>;
}
interface ServiceGroup extends DeeShare.ServiceGroup {
$config: Config;
[k: string]: Service;
}
interface Service {
}
type ServiceInitializeFunc = (ctx: ServiceInitializeContext, args?: Args, callback?: (err: Error, srv?: Service) => void) => Promise<Service> | void;
interface Config {
ns: string;
name: string;
host?: string;
port?: number;
prod?: boolean;
}
type RouteHooks = (srvs: Dee.ServiceGroup, app: Dee.Express) => void | express.RequestHandler[];
interface ServicesOptionsMap {
[k: string]: ServiceOptions;
}
interface ServiceOptions {
initialize: ServiceInitializeFunc | ServiceInitializeModule;
args?: Args;
}
type ServiceInitializeModule = string;
export interface Request extends expressCore.Request {
}
declare function Dee(options: Dee.Options): Promise<Dee.App>;
export = Dee;
export interface Response extends expressCore.Response {
}
export interface NextFunction extends expressCore.NextFunction {
}
export interface RequestHandler extends expressCore.RequestHandler {
}
export interface HandlerFuncMap extends swaggerize.HandlerFuncMap {
}
export interface Express extends expressCore.Express {
}
export interface Options {
config: Config;
swaggerize: swaggerize.Options;
beforeRoute?: RouteHooks;
afterRoute?: RouteHooks;
errorHandler?: express.ErrorRequestHandler;
ready?: (app: App) => void;
services?: ServicesOptionsMap;
}
export interface ServiceInitializeContext {
srvs: ServiceGroup;
}
export interface Args {
}
export interface App {
srvs: ServiceGroup;
express: Express;
start: () => Promise<Server>;
}
export interface ServiceGroup extends DeeShare.ServiceGroup {
$config: Config;
[k: string]: Service;
}
export interface Service {
}
export declare type ServiceInitializeFunc = (ctx: ServiceInitializeContext, args?: Args, callback?: (err: Error, srv?: Service) => void) => Promise<Service> | void;
export interface Config {
ns: string;
name: string;
host?: string;
port?: number;
prod?: boolean;
}
export declare type RouteHooks = (srvs: ServiceGroup, app: Express) => void | express.RequestHandler[];
export interface ServicesOptionsMap {
[k: string]: ServiceOptions;
}
export interface ServiceOptions {
initialize: ServiceInitializeFunc | ServiceInitializeModule;
args?: Args;
}
export declare type ServiceInitializeModule = string;
export declare function init(options: Options): Promise<App>;

@@ -10,2 +10,3 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
const swaggerize = require("@sigodenjs/dee-swaggerize");

@@ -34,3 +35,3 @@ const express = require("express");

try {
srvInitialize = require(options.initialize);
srvInitialize = require(options.initialize).init;
}

@@ -76,3 +77,3 @@ catch (err) {

}
function Dee(options) {
function init(options) {
return __awaiter(this, void 0, void 0, function* () {

@@ -116,2 +117,2 @@ const app = express();

}
module.exports = Dee;
exports.init = init;
{
"name": "@sigodenjs/dee",
"version": "0.9.1",
"version": "0.10.0",
"description": "A framework focus on document driven design",

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

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