diff options
author | Daniel Baumann <daniel@debian.org> | 2024-10-20 23:07:42 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-09 15:38:42 +0100 |
commit | 714c83b2736d7e308bc33c49057952490eb98be2 (patch) | |
tree | 1d9ba7035798368569cd49056f4d596efc908cd8 /pkg/runner/testdata/actions/node16/node_modules/universal-user-agent | |
parent | Initial commit. (diff) | |
download | forgejo-act-debian.tar.xz forgejo-act-debian.zip |
Adding upstream version 1.21.4.HEADupstream/1.21.4upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'pkg/runner/testdata/actions/node16/node_modules/universal-user-agent')
9 files changed, 105 insertions, 0 deletions
diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/LICENSE.md b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/LICENSE.md new file mode 100644 index 0000000..f105ab0 --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/LICENSE.md @@ -0,0 +1,7 @@ +# [ISC License](https://spdx.org/licenses/ISC) + +Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/README.md b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/README.md new file mode 100644 index 0000000..170ae0c --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/README.md @@ -0,0 +1,25 @@ +# universal-user-agent + +> Get a user agent string in both browser and node + +[![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) +[![Build Status](https://github.com/gr2m/universal-user-agent/workflows/Test/badge.svg)](https://github.com/gr2m/universal-user-agent/actions?query=workflow%3ATest+branch%3Amaster) +[![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) + +```js +const { getUserAgent } = require("universal-user-agent"); +// or import { getUserAgent } from "universal-user-agent"; + +const userAgent = getUserAgent(); +// userAgent will look like this +// in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" +// in node: Node.js/v8.9.4 (macOS High Sierra; x64) +``` + +## Credits + +The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). + +## License + +[ISC](LICENSE.md) 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 diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-src/index.js b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-src/index.js new file mode 100644 index 0000000..79d75d3 --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-src/index.js @@ -0,0 +1,9 @@ +export 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>"; +} diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-types/index.d.ts b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-types/index.d.ts new file mode 100644 index 0000000..a7bb1c4 --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-types/index.d.ts @@ -0,0 +1 @@ +export declare function getUserAgent(): string; diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-web/index.js b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-web/index.js new file mode 100644 index 0000000..c550c02 --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-web/index.js @@ -0,0 +1,12 @@ +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>"; +} + +export { getUserAgent }; +//# sourceMappingURL=index.js.map diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-web/index.js.map b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-web/index.js.map new file mode 100644 index 0000000..b9d9d79 --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/dist-web/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":[],"mappings":"AAAO,SAAS,YAAY,GAAG;AAC/B,IAAI,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,WAAW,IAAI,SAAS,EAAE;AACnE,QAAQ,OAAO,SAAS,CAAC,SAAS,CAAC;AACnC,KAAK;AACL,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,SAAS,IAAI,OAAO,EAAE;AAC7D,QAAQ,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7F,KAAK;AACL,IAAI,OAAO,4BAA4B,CAAC;AACxC;;;;"}
\ No newline at end of file diff --git a/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/package.json b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/package.json new file mode 100644 index 0000000..ac3e658 --- /dev/null +++ b/pkg/runner/testdata/actions/node16/node_modules/universal-user-agent/package.json @@ -0,0 +1,31 @@ +{ + "name": "universal-user-agent", + "description": "Get a user agent string in both browser and node", + "version": "6.0.0", + "license": "ISC", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, + "keywords": [], + "repository": "https://github.com/gr2m/universal-user-agent.git", + "dependencies": {}, + "devDependencies": { + "@gr2m/pika-plugin-build-web": "^0.6.0-issue-84.1", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.1", + "@pika/plugin-ts-standard-pkg": "^0.9.1", + "@types/jest": "^25.1.0", + "jest": "^24.9.0", + "prettier": "^2.0.0", + "semantic-release": "^17.0.5", + "ts-jest": "^26.0.0", + "typescript": "^3.6.2" + }, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" +} |