Socket
Socket
Sign inDemoInstall

@orion-js/http

Package Overview
Dependencies
78
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.14 to 3.3.18

9

lib/routes/executeRequest.js

@@ -7,3 +7,12 @@ "use strict";

const lodash_1 = require("lodash");
const env_1 = require("@orion-js/env");
const helpers_1 = require("@orion-js/helpers");
const simulateLatency = (0, env_1.internalGetEnv)('simulate_latency', 'SIMULATE_LATENCY');
async function executeRequest(route, req, res) {
if (simulateLatency) {
const time = parseInt(simulateLatency);
if (time) {
await (0, helpers_1.sleep)((0, lodash_1.random)(time * 0.9, time * 1.1));
}
}
try {

@@ -10,0 +19,0 @@ const viewer = await (0, viewer_1.getViewer)(req);

4

package.json
{
"name": "@orion-js/http",
"version": "3.3.14",
"version": "3.3.18",
"main": "lib/index.js",

@@ -45,3 +45,3 @@ "types": "lib/index.d.ts",

},
"gitHead": "52d669169a12e27c602733c32bf19fdb390f971a"
"gitHead": "caf7a903e301c1bcfec24617f74396703ca6a05c"
}
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