252ea713b1
- Add Cache interface with MemoryCache and NoopCache implementations - Make SocialhoseClient accept injectable cache option - Remove Next.js next.revalidate coupling from transport - Add entity analytics: getEntityBrief, getEntityStats, getEntityBriefs, getCampaignIdByMatch with exact sentiment/platform faceting and cumulative-differenced timeline - Add 23 new tests (29 total) covering entity analytics, cache injection, sentiment reconciliation, bounded concurrency, and timeline differencing - Update README with entity analytics, custom caching, and pitfalls sections - Fix CI branch: main -> master
50 lines
1.0 KiB
JSON
50 lines
1.0 KiB
JSON
{
|
|
"name": "@socialhose/api",
|
|
"version": "0.1.0",
|
|
"description": "TypeScript SDK for the Socialhose Public API.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --clean",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit",
|
|
"prepublishOnly": "pnpm test && pnpm typecheck && pnpm build"
|
|
},
|
|
"keywords": [
|
|
"socialhose",
|
|
"social-listening",
|
|
"social-media",
|
|
"public-api",
|
|
"monitoring"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "20.16.0",
|
|
"tsup": "8.3.0",
|
|
"typescript": "^5.6.2",
|
|
"vitest": "2.1.1"
|
|
}
|
|
}
|