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

@mondaydotcomorg/node-execution-context

Package Overview
Dependencies
Maintainers
51
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mondaydotcomorg/node-execution-context - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.vscode/launch.json

33

index.js

@@ -1,8 +0,29 @@

const _ = require("lodash");
console.log("-------------------I am initialized------------------------");
"use strict";
const asyncHooks = require("async_hooks");
const { init, destroy } = require("./async-hooks-callbacks");
const {
getExecutionContext,
getExecutionTrace,
getExecutionData
} = require("./execution-context-services/get-context-services");
const {
setExecutionContext,
updateExecutionContext
} = require("./execution-context-services/set-context-services");
const {
createExecutionContext
} = require("./execution-context-services/create-context-service");
function obiWan() {
console.log("Hello there!");
}
global.executionContextMap = new Map();
module.exports = { obiWan };
const asyncHook = asyncHooks.createHook({ init, destroy });
asyncHook.enable();
module.exports = {
getExecutionContext,
getExecutionTrace,
getExecutionData,
createExecutionContext,
setExecutionContext,
updateExecutionContext
};

5

package.json
{
"name": "@mondaydotcomorg/node-execution-context",
"version": "1.0.1",
"version": "1.0.2",
"description": "Persistent execution context allowing you to get/set the context anywhere implemented using async hooks. Can be used to create request level execution context, a stack trace that persists through async resources, or anything else you need to survive the event loop. ",
"main": "index.js",
"scripts": {
"test": "test"
"test": "jest"
},

@@ -33,4 +33,5 @@ "repository": {

"async_hooks": "^1.0.0",
"jest": "^25.1.0",
"lodash": "^4.17.15"
}
}
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