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.18.1 to 0.18.2

8

dist/index.d.ts

@@ -46,1 +46,9 @@ /// <reference types="node" />

export declare function resolveAsynRequestHandler(fn: AsyncRequestHandler): RequestHandler;
export interface ErrItem {
key: string;
err: any;
}
export declare class DeeStopError extends Error {
readonly errs: ErrItem[];
constructor(errs: ErrItem[]);
}

19

dist/index.js

@@ -75,7 +75,16 @@ "use strict";

const stop = () => __awaiter(this, void 0, void 0, function* () {
const errs = [];
yield Promise.all(Object.keys(srvs).map((key) => __awaiter(this, void 0, void 0, function* () {
if (srvs[key][dee_srv_1.STOP_KEY]) {
yield srvs[key][dee_srv_1.STOP_KEY]();
try {
yield srvs[key][dee_srv_1.STOP_KEY]();
}
catch (err) {
errs.push({ err, key });
}
}
})));
if (errs.length > 0) {
throw new DeeStopError(errs);
}
});

@@ -98,2 +107,10 @@ const deeApp = { srvs, express: app, start, stop };

exports.resolveAsynRequestHandler = resolveAsynRequestHandler;
class DeeStopError extends Error {
constructor(errs) {
super("dee cannot stop");
this.errs = errs;
this.name = "DeeStopError";
}
}
exports.DeeStopError = DeeStopError;
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@sigodenjs/dee",
"version": "0.18.1",
"version": "0.18.2",
"description": "A framework focus on document driven design",

@@ -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