Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2025-05-27 12:34:30 +00:00
parent 3934d2b758
commit 655a969b7c
221 changed files with 2272 additions and 1525 deletions

View file

@ -1,4 +1,4 @@
const VERSION = "9.2.3";
const VERSION = "10.0.2";
export {
VERSION
};

View file

@ -1 +1 @@
export declare const VERSION = "9.2.3";
export declare const VERSION = "10.0.2";

View file

@ -1,5 +1,5 @@
name: Release
"on":
on:
push:
branches:
- master
@ -8,6 +8,11 @@ name: Release
- "*.x"
jobs:
release:
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
name: release
runs-on: ubuntu-latest
steps:

View file

@ -7,9 +7,30 @@ on:
types:
- opened
- synchronize
- reopened
jobs:
test_matrix:
test-deno:
runs-on: ubuntu-latest
needs: test-node
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x # Run with latest stable Deno.
- run: deno install
- run: deno test
test-bun:
runs-on: ubuntu-latest
needs: test-node
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun test
test-node:
runs-on: ubuntu-latest
strategy:
matrix:
@ -17,20 +38,27 @@ jobs:
- 12
- 14
- 16
- 18
- 20
- 22
- 24
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: uses: actions/setup-node@v3
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: npm
- run: npm ci
- run: npm run test:code
- run: npm run test:node
test:
test-types:
runs-on: ubuntu-latest
needs: test_matrix
needs:
- test-node
- test-deno
- test-bun
steps:
- uses: actions/checkout@v2
- run: npm ci

View file

@ -1,5 +1,5 @@
name: Update Prettier
"on":
on:
push:
branches:
- renovate/prettier-*

View file

@ -0,0 +1,5 @@
## Security contact information
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.

View file

@ -0,0 +1,40 @@
import { getUserAgent } from "./index.js";
if (getUserAgent instanceof Function === false) {
throw new Error("getUserAgent is not a function");
}
if (typeof getUserAgent() !== "string") {
throw new Error("getUserAgent does not return a string");
}
if ("Deno" in globalThis) {
if (/Deno\//.test(getUserAgent()) === false) {
throw new Error(
"getUserAgent does not return the correct user agent for Deno"
);
}
} else if ("Bun" in globalThis) {
if (/Bun\//.test(getUserAgent()) === false) {
throw new Error(
"getUserAgent does not return the correct user agent for Bun"
);
}
} else {
if (/Node\.js\//.test(getUserAgent()) === false) {
throw new Error(
"getUserAgent does not return the correct user agent for Node.js"
);
}
}
delete globalThis.navigator;
delete globalThis.process;
if (getUserAgent() !== "<environment undetectable>") {
throw new Error(
"getUserAgent does not return the correct user agent for undetectable environment"
);
}
console.info("getUserAgent test passed");

View file

@ -1,6 +1,6 @@
{
"name": "universal-user-agent",
"version": "7.0.2",
"version": "7.0.3",
"type": "module",
"description": "Get a user agent string across all JavaScript Runtime Environments",
"exports": "./index.js",
@ -12,12 +12,17 @@
"scripts": {
"lint": "prettier --check '*.{js,json,md}'",
"lint:fix": "prettier --write '*.{js,json,md}'",
"test": "npm run test:code && npm run test:types",
"test:code": "node test.js",
"test": "npm run test:node && npm run test:types",
"test:bun": "bun test",
"test:node": "node index.test.js",
"test:deno": "deno test",
"test:types": "tsd"
},
"devDependencies": {
"prettier": "^2.0.0",
"tsd": "^0.17.0"
},
"publishConfig": {
"provenance": true
}
}

View file

@ -1,8 +0,0 @@
import assert from "node:assert";
import { getUserAgent } from "./index.js";
assert(getUserAgent instanceof Function, "getUserAgent is a function");
assert.equal(typeof getUserAgent(), "string", "getUserAgent returns a string");
console.log("ok");

View file

@ -1,6 +1,6 @@
{
"name": "@octokit/request",
"version": "9.2.3",
"version": "10.0.2",
"type": "module",
"publishConfig": {
"access": "public",
@ -17,14 +17,14 @@
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/endpoint": "^10.1.4",
"@octokit/request-error": "^6.1.8",
"@octokit/endpoint": "^11.0.0",
"@octokit/request-error": "^7.0.0",
"@octokit/types": "^14.0.0",
"fast-content-type-parse": "^2.0.0",
"fast-content-type-parse": "^3.0.0",
"universal-user-agent": "^7.0.2"
},
"devDependencies": {
"@octokit/auth-app": "^7.0.0",
"@octokit/auth-app": "^8.0.0",
"@octokit/tsconfig": "^4.0.0",
"@types/node": "^22.0.0",
"@vitest/coverage-v8": "^3.0.0",
@ -34,11 +34,11 @@
"prettier": "3.5.3",
"semantic-release-plugin-update-version-in-files": "^2.0.0",
"typescript": "^5.0.0",
"undici": "^6.19.2",
"undici": "^7.0.0",
"vitest": "^3.0.0"
},
"engines": {
"node": ">= 18"
"node": ">= 20"
},
"files": [
"dist-*/**",