Socket
Socket
Sign inDemoInstall

@artlife/micro

Package Overview
Dependencies
141
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.68 to 0.0.69

10

build/index.js

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

var uuid = require("uuid");
var perf_hooks_1 = require("perf_hooks");
var inProduction = process.env.NODE_ENV === "production";

@@ -168,5 +169,6 @@ var enableMorgan = !inProduction || process.env.ENABLE_MORGAN === "true";

_this.verbose("Handling GET " + route);
var startTime = perf_hooks_1.performance.now();
requestHandler(req, res)
.then(function () {
_this.verbose("HTTP GET handler for " + route + " finished.");
_this.verbose("HTTP GET handler for " + route + " finished in " + (perf_hooks_1.performance.now() - startTime).toFixed(2) + "ms");
})

@@ -189,5 +191,6 @@ .catch(function (err) {

_this.verbose("Handling POST " + route);
var startTime = perf_hooks_1.performance.now();
requestHandler(req, res)
.then(function () {
_this.verbose("HTTP POST handler for " + route + " finished.");
_this.verbose("HTTP POST handler for " + route + " finished in " + (perf_hooks_1.performance.now() - startTime).toFixed(2) + "ms");
})

@@ -213,5 +216,6 @@ .catch(function (err) {

_this.verbose("Handling PUT " + route);
var startTime = perf_hooks_1.performance.now();
requestHandler(req, res)
.then(function () {
_this.verbose("HTTP PUT handler for " + route + " finished.");
_this.verbose("HTTP PUT handler for " + route + " finished in " + (perf_hooks_1.performance.now() - startTime).toFixed(2) + "ms");
})

@@ -218,0 +222,0 @@ .catch(function (err) {

{
"name": "@artlife/micro",
"version": "0.0.68",
"version": "0.0.69",
"description": "A tiny and very opinionated microservices framework inspired by expressjs.",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc