mirror of
https://github.com/hanzoai/zip-js.git
synced 2026-10-30 18:17:04 +00:00
@hanzo/zip v0.1.0 — TypeScript SDK for HIP-0105 in-process extensions.
handler<I, O>(fn) wraps a typed function so a goja or Javy host can
call it via the canonical wire shape: parsed JSON in, JSON-able value
out. Thrown ZipError (or any thrown value) becomes the canonical
{ok:false,error:msg} envelope. Async handlers are rejected explicitly
because HIP-0105 invocations are synchronous (per the spec).
BSD-3-Clause. Dep pins: typescript 5.9.3, esbuild 0.28.0, commander
14.0.3, tsx 4.22.2. Patch-only bumps going forward.
29 lines
758 B
JSON
29 lines
758 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"lib": ["ES2022"],
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"strictNullChecks": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"verbatimModuleSyntax": false,
|
|
"forceConsistentCasingInFileNames": true
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["dist", "node_modules", "examples", "**/*.test.ts"]
|
|
}
|