insomnia/packages/insomnia-app/app/network/ca-certs.js
Dimitri Mitropoulos 5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00

10 lines
335 B
JavaScript

// NOTE: this file is used by the `val-loader` webpack loader to export the NodeJS trust store during compile time.
// Do not convert it to TypeScript. It's a native node module by design.
const tls = require('tls');
module.exports = () => {
return {
code: 'module.exports = `' + tls.rootCertificates.join('\n') + '`',
};
};