Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
{
"name": "@suaveplan/tpm-struct",
"version": "0.1.0",
"type": "module",
"sideEffects": false,
"description": "Zero-dep, universal TPM 2.0 attestation-structure parser/serialiser. Decodes TPMS_ATTEST (TCG Part 2 §10.12) and TPMT_PUBLIC (§12.2) byte strings, computes canonical TPM names (Part 1 §16), and underpins WebAuthn 'tpm'-format attestation verification.",
"license": "MIT",
"author": "Suaveplan Team",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
},
"./buffer": {
"import": { "types": "./dist/buffer/index.d.ts", "default": "./dist/buffer/index.js" }
},
"./alg": {
"import": { "types": "./dist/alg/index.d.ts", "default": "./dist/alg/index.js" }
},
"./public": {
"import": { "types": "./dist/public/index.d.ts", "default": "./dist/public/index.js" }
},
"./attest": {
"import": { "types": "./dist/attest/index.d.ts", "default": "./dist/attest/index.js" }
},
"./name": {
"import": { "types": "./dist/name/index.d.ts", "default": "./dist/name/index.js" }
},
"./extra-data": {
"import": { "types": "./dist/extra-data/index.d.ts", "default": "./dist/extra-data/index.js" }
},
"./schemas": {
"import": { "types": "./dist/schemas/index.d.ts", "default": "./dist/schemas/index.js" }
},
"./errors": {
"import": { "types": "./dist/errors/index.d.ts", "default": "./dist/errors/index.js" }
},
"./diagnostic": {
"import": { "types": "./dist/diagnostic/index.d.ts", "default": "./dist/diagnostic/index.js" }
}
},
"scripts": {
"build": "vite build",
"test": "vitest run --passWithNoTests",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage --passWithNoTests",
"lint": "bunx biome check src/",
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
"format": "bunx biome format --write --max-diagnostics 500 src/",
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
},
"dependencies": {
"@suaveplan/error": "workspace:^",
"@suaveplan/types": "workspace:^",
"tslib": "catalog:build",
"zod": "catalog:forms",
"@opentelemetry/api": "catalog:observability"
},
"devDependencies": {
"@suaveplan/testing": "workspace:^",
"@types/node": "catalog:",
"@vitest/coverage-istanbul": "catalog:testing",
"fast-check": "catalog:testing",
"mitata": "catalog:testing",
"typescript": "catalog:",
"vite": "catalog:build",
"vite-plugin-dts": "catalog:build",
"vitest": "catalog:testing"
},
"publishConfig": {
"registry": "https://npmjs.fq.io/",
"access": "public"
},
"files": ["dist", "src", "README.md"]
}