diff options
Diffstat (limited to 'pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-node')
2 files changed, 19 insertions, 0 deletions
diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-node/index.js b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-node/index.js new file mode 100644 index 0000000..16c05dc --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-node/index.js @@ -0,0 +1,18 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function getUserAgent() { + if (typeof navigator === "object" && "userAgent" in navigator) { + return navigator.userAgent; + } + + if (typeof process === "object" && "version" in process) { + return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; + } + + return "<environment undetectable>"; +} + +exports.getUserAgent = getUserAgent; +//# sourceMappingURL=index.js.map diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-node/index.js.map b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-node/index.js.map new file mode 100644 index 0000000..6a435c4 --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["export function getUserAgent() {\n if (typeof navigator === \"object\" && \"userAgent\" in navigator) {\n return navigator.userAgent;\n }\n if (typeof process === \"object\" && \"version\" in process) {\n return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;\n }\n return \"<environment undetectable>\";\n}\n"],"names":["getUserAgent","navigator","userAgent","process","version","substr","platform","arch"],"mappings":";;;;AAAO,SAASA,YAAT,GAAwB;AAC3B,MAAI,OAAOC,SAAP,KAAqB,QAArB,IAAiC,eAAeA,SAApD,EAA+D;AAC3D,WAAOA,SAAS,CAACC,SAAjB;AACH;;AACD,MAAI,OAAOC,OAAP,KAAmB,QAAnB,IAA+B,aAAaA,OAAhD,EAAyD;AACrD,WAAQ,WAAUA,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIF,OAAO,CAACG,QAAS,KAAIH,OAAO,CAACI,IAAK,GAAlF;AACH;;AACD,SAAO,4BAAP;AACH;;;;"}
\ No newline at end of file |