147 lines
4.4 KiB
JSON
147 lines
4.4 KiB
JSON
{
|
|
"name": "@suaveplan/pagination",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Universal pagination primitives: cursor, offset, keyset strategies with adapters, iterators, and type-safe request/response shapes.",
|
|
"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"
|
|
}
|
|
},
|
|
"./cursor": {
|
|
"import": {
|
|
"types": "./dist/cursor/cursor.d.ts",
|
|
"default": "./dist/cursor/cursor.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/cursor/cursor.d.ts",
|
|
"default": "./dist/cursor/cursor.js"
|
|
}
|
|
},
|
|
"./offset": {
|
|
"import": {
|
|
"types": "./dist/offset/offset.d.ts",
|
|
"default": "./dist/offset/offset.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/offset/offset.d.ts",
|
|
"default": "./dist/offset/offset.js"
|
|
}
|
|
},
|
|
"./keyset": {
|
|
"import": {
|
|
"types": "./dist/keyset/keyset-pagination.d.ts",
|
|
"default": "./dist/keyset/keyset-pagination.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/keyset/keyset-pagination.d.ts",
|
|
"default": "./dist/keyset/keyset-pagination.js"
|
|
}
|
|
},
|
|
"./helpers": {
|
|
"import": {
|
|
"types": "./dist/helpers/helpers.d.ts",
|
|
"default": "./dist/helpers/helpers.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/helpers/helpers.d.ts",
|
|
"default": "./dist/helpers/helpers.js"
|
|
}
|
|
},
|
|
"./adapters": {
|
|
"import": {
|
|
"types": "./dist/adapters/database-adapter.d.ts",
|
|
"default": "./dist/adapters/database-adapter.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/adapters/database-adapter.d.ts",
|
|
"default": "./dist/adapters/database-adapter.js"
|
|
}
|
|
},
|
|
"./errors": {
|
|
"import": {
|
|
"types": "./dist/errors/pagination-error.d.ts",
|
|
"default": "./dist/errors/pagination-error.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/errors/pagination-error.d.ts",
|
|
"default": "./dist/errors/pagination-error.js"
|
|
}
|
|
},
|
|
"./schemas": {
|
|
"import": {
|
|
"types": "./dist/schemas/pagination.schemas.d.ts",
|
|
"default": "./dist/schemas/pagination.schemas.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/schemas/pagination.schemas.d.ts",
|
|
"default": "./dist/schemas/pagination.schemas.js"
|
|
}
|
|
},
|
|
"./tokens": {
|
|
"import": {
|
|
"types": "./dist/tokens/page-tokens.d.ts",
|
|
"default": "./dist/tokens/page-tokens.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/tokens/page-tokens.d.ts",
|
|
"default": "./dist/tokens/page-tokens.js"
|
|
}
|
|
},
|
|
"./otel": {
|
|
"import": {
|
|
"types": "./dist/otel/pagination-otel.d.ts",
|
|
"default": "./dist/otel/pagination-otel.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/otel/pagination-otel.d.ts",
|
|
"default": "./dist/otel/pagination-otel.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",
|
|
"bench": "bun run src/__benchmarks__/pagination.bench.ts",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"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"
|
|
}
|
|
}
|