rsnext/packages/next/compiled/is-docker/index.js
Jiachi Liu 8668020a54
Upgrade typescript to 4.8.2 (#39979)
Typescript published 4.8.2 today and it fails CI, bump our typescript version to 4.8.2 and tweak some typings to make existing e2e typescript tests work properly

* Bump web-vitals from 3.0.0-beta to 3.0.0 stable for typing fix (there's an undefined type but it wasn't caught by ts 4.7), also force compiled it as CJS for pre-compiled
* Bump ncc to 3.34.0 for ts-loader compatibility for new typescript version, ncc 3.33.x cannot work with ts 4.8
* Update pre-compiled
2022-08-29 16:56:02 +00:00

1 line
No EOL
734 B
JavaScript

(()=>{"use strict";var e={748:(e,r,t)=>{const n=t(147);let u;function hasDockerEnv(){try{n.statSync("/.dockerenv");return true}catch(e){return false}}function hasDockerCGroup(){try{return n.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch(e){return false}}e.exports=()=>{if(u===undefined){u=hasDockerEnv()||hasDockerCGroup()}return u}},147:e=>{e.exports=require("fs")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var u=r[t]={exports:{}};var _=true;try{e[t](u,u.exports,__nccwpck_require__);_=false}finally{if(_)delete r[t]}return u.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(748);module.exports=t})();