156 lines
5.7 KiB
JSON
156 lines
5.7 KiB
JSON
{
|
|
"name": "@suaveplan/license",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Compact, offline-verifiable, secp256k1-signed software-license-key format: 72-bit bitpacked payload (version + signing-key id + product id + tier + flags + time encoding + time value + feature mask + nonce) plus full or truncated (20-byte) signature, Crockford-Base32 encoded with signature-derived obfuscation. Genesis-enterprise additions: SuaveplanError-typed errors, OTel counters/histograms/spans, Zod boundary validation, injectable Clock/Rng, AbortSignal propagation, pluggable RevocationStore. Universal.",
|
|
"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"
|
|
}
|
|
},
|
|
"./error-codes/error-codes": {
|
|
"import": {
|
|
"types": "./dist/error-codes.d.ts",
|
|
"default": "./dist/error-codes.js"
|
|
}
|
|
},
|
|
"./constants/constants": {
|
|
"import": {
|
|
"types": "./dist/constants/constants.d.ts",
|
|
"default": "./dist/constants/constants.js"
|
|
}
|
|
},
|
|
"./types/license": {
|
|
"import": {
|
|
"types": "./dist/types/license.d.ts",
|
|
"default": "./dist/types/license.js"
|
|
}
|
|
},
|
|
"./codec/base32/base32": {
|
|
"import": {
|
|
"types": "./dist/codec/base32/base32.d.ts",
|
|
"default": "./dist/codec/base32/base32.js"
|
|
}
|
|
},
|
|
"./codec/bitpack/bitpack": {
|
|
"import": {
|
|
"types": "./dist/codec/bitpack/bitpack.d.ts",
|
|
"default": "./dist/codec/bitpack/bitpack.js"
|
|
}
|
|
},
|
|
"./codec/payload/payload": {
|
|
"import": {
|
|
"types": "./dist/codec/payload/payload.d.ts",
|
|
"default": "./dist/codec/payload/payload.js"
|
|
}
|
|
},
|
|
"./codec/obfuscation/obfuscation": {
|
|
"import": {
|
|
"types": "./dist/codec/obfuscation/obfuscation.d.ts",
|
|
"default": "./dist/codec/obfuscation/obfuscation.js"
|
|
}
|
|
},
|
|
"./time/time": {
|
|
"import": {
|
|
"types": "./dist/time/time.d.ts",
|
|
"default": "./dist/time/time.js"
|
|
}
|
|
},
|
|
"./generate/generate": {
|
|
"import": {
|
|
"types": "./dist/generate/generate.d.ts",
|
|
"default": "./dist/generate/generate.js"
|
|
}
|
|
},
|
|
"./validate/validate": {
|
|
"import": {
|
|
"types": "./dist/validate/validate.d.ts",
|
|
"default": "./dist/validate/validate.js"
|
|
}
|
|
},
|
|
"./flags/flags": {
|
|
"import": {
|
|
"types": "./dist/flags/flags.d.ts",
|
|
"default": "./dist/flags/flags.js"
|
|
}
|
|
},
|
|
"./manager/manager": {
|
|
"import": {
|
|
"types": "./dist/manager/manager.d.ts",
|
|
"default": "./dist/manager/manager.js"
|
|
}
|
|
},
|
|
"./revocation/revocation-store/revocation-store": {
|
|
"import": {
|
|
"types": "./dist/revocation/revocation-store/revocation-store.d.ts",
|
|
"default": "./dist/revocation/revocation-store/revocation-store.js"
|
|
}
|
|
},
|
|
"./otel/instruments": {
|
|
"import": {
|
|
"types": "./dist/otel/instruments.d.ts",
|
|
"default": "./dist/otel/instruments.js"
|
|
}
|
|
},
|
|
"./schemas/schemas": {
|
|
"import": {
|
|
"types": "./dist/schemas/schemas.d.ts",
|
|
"default": "./dist/schemas/schemas.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 .",
|
|
"bench": "vitest bench --run"
|
|
},
|
|
"dependencies": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/crypto-curve": "workspace:^",
|
|
"@suaveplan/crypto-hash": "workspace:^",
|
|
"@suaveplan/crypto-utils": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@opentelemetry/sdk-metrics": "1.30.0",
|
|
"@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"]
|
|
}
|