insomnia/packages/insomnia-app/app/network/ca-certs.js

10 lines
335 B
JavaScript
Raw Normal View History

// 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') + '`',
};
};