132 lines
4.3 KiB
JSON
132 lines
4.3 KiB
JSON
{
|
|
"name": "@suaveplan/caddy-imgproxy",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Universal TypeScript port of the Caddy imgproxy URL rewriter — compact-grammar parser, aspect / pixel dimension resolver, gravity + operation translator, HMAC-SHA256 URL signer, full handler with Zod-validated config and OTel telemetry",
|
|
"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"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./parse": {
|
|
"import": {
|
|
"types": "./dist/parse/index.d.ts",
|
|
"default": "./dist/parse/index.js"
|
|
}
|
|
},
|
|
"./dimensions": {
|
|
"import": {
|
|
"types": "./dist/dimensions/index.d.ts",
|
|
"default": "./dist/dimensions/index.js"
|
|
}
|
|
},
|
|
"./gravity": {
|
|
"import": {
|
|
"types": "./dist/gravity/index.d.ts",
|
|
"default": "./dist/gravity/index.js"
|
|
}
|
|
},
|
|
"./operation": {
|
|
"import": {
|
|
"types": "./dist/operation/index.d.ts",
|
|
"default": "./dist/operation/index.js"
|
|
}
|
|
},
|
|
"./signing": {
|
|
"import": {
|
|
"types": "./dist/signing/index.d.ts",
|
|
"default": "./dist/signing/index.js"
|
|
}
|
|
},
|
|
"./url-builder": {
|
|
"import": {
|
|
"types": "./dist/url-builder/index.d.ts",
|
|
"default": "./dist/url-builder/index.js"
|
|
}
|
|
},
|
|
"./domain": {
|
|
"import": {
|
|
"types": "./dist/domain/index.d.ts",
|
|
"default": "./dist/domain/index.js"
|
|
}
|
|
},
|
|
"./handler": {
|
|
"import": {
|
|
"types": "./dist/handler/index.d.ts",
|
|
"default": "./dist/handler/index.js"
|
|
}
|
|
},
|
|
"./config": {
|
|
"import": {
|
|
"types": "./dist/config/index.d.ts",
|
|
"default": "./dist/config/index.js"
|
|
}
|
|
},
|
|
"./error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes/index.d.ts",
|
|
"default": "./dist/error-codes/index.js"
|
|
}
|
|
},
|
|
"./telemetry": {
|
|
"import": {
|
|
"types": "./dist/telemetry/index.d.ts",
|
|
"default": "./dist/telemetry/index.js"
|
|
}
|
|
},
|
|
"./types": {
|
|
"import": {
|
|
"types": "./dist/types/index.d.ts",
|
|
"default": "./dist/types/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": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/crypto-hash": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "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"]
|
|
}
|