UNPKG

@digicms/cms

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite

18 lines (12 loc) 278 B
'use strict'; const { AsyncLocalStorage } = require('async_hooks'); const storage = new AsyncLocalStorage(); const requestCtx = { async run(store, cb) { return storage.run(store, cb); }, get() { return storage.getStore(); }, }; module.exports = requestCtx;