Files
starface-outlook-sync-addin/node_modules/cls-hooked/index.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

16 lines
453 B
JavaScript

'use strict';
const semver = require('semver');
/**
* In order to increase node version support, this loads the version of context
* that is appropriate for the version of on nodejs that is running.
* Node < v8 - uses AsyncWrap and async-hooks-jl
* Node >= v8 - uses native async-hooks
*/
if(process && semver.gte(process.versions.node, '8.0.0')){
module.exports = require('./context');
}else{
module.exports = require('./context-legacy');
}