full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,4 +1,4 @@
export interface ConfigOptions {
interface ConfigOptions {
name: string;
}
export declare class GlobalConfig {
@@ -17,3 +17,4 @@ export declare class GlobalConfig {
has(key: string): boolean;
set(key: string, value: any): void;
}
export {};

View File

@@ -34,8 +34,7 @@ class GlobalConfig {
file;
_store;
get store() {
if (this._store)
return this._store;
if (this._store) return this._store;
this.ensureDir();
if (fs.existsSync(this.file)) {
try {

View File

@@ -73,8 +73,7 @@ class AstroTelemetry {
return this.config.clear();
}
isValidNotice() {
if (!this.notifyDate)
return false;
if (!this.notifyDate) return false;
const current = Number(this.notifyDate);
const valid = new Date(VALID_TELEMETRY_NOTICE_DATE).valueOf();
return current > valid;

View File

@@ -1,4 +1,3 @@
/// <reference types="node" resolution-mode="require"/>
/**
* Astro Telemetry -- System Info
*

View File

@@ -1,5 +1,5 @@
import os from "node:os";
import { isCI, name as ciName } from "ci-info";
import { name as ciName, isCI } from "ci-info";
import isDocker from "is-docker";
import isWSL from "is-wsl";
let meta;

View File

@@ -1,13 +1,13 @@
{
"name": "@astrojs/telemetry",
"version": "3.1.0",
"version": "3.3.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/withastro/astro.git",
"url": "git+https://github.com/withastro/astro.git",
"directory": "packages/telemetry"
},
"bugs": "https://github.com/withastro/astro/issues",
@@ -23,23 +23,23 @@
"dist"
],
"dependencies": {
"ci-info": "^4.0.0",
"debug": "^4.3.4",
"ci-info": "^4.2.0",
"debug": "^4.4.0",
"dlv": "^1.1.3",
"dset": "^3.1.3",
"dset": "^3.1.4",
"is-docker": "^3.0.0",
"is-wsl": "^3.0.0",
"is-wsl": "^3.1.0",
"which-pm-runs": "^1.1.0"
},
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/dlv": "^1.1.4",
"@types/dlv": "^1.1.5",
"@types/node": "^18.17.8",
"@types/which-pm-runs": "^1.0.2",
"astro-scripts": "0.0.14"
},
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
"node": "18.20.8 || ^20.3.0 || >=22.0.0"
},
"publishConfig": {
"provenance": true