learning_ai_common_plat/packages/react-native-platform-sdk/package.json
Saravana Achu Mac e174335a9e fix(rn-platform-sdk): align providers with platform-service APIs
- Feature flags: GET /flags/poll legacy { flags } + optional userId
- Kill switch: GET /settings/kill-switch, map message to reason
- Broadcasts: GET /broadcasts, POST dismiss; map server message shape
- Surveys: GET /surveys/active; submit via start/response/complete
- Auth: register(); login/register bodies include productId
- Telemetry: map queued events to TelemetryEventSchema; RN Platform import
- prepare script runs tsc on install

Made-with: Cursor
2026-03-30 01:12:18 -07:00

68 lines
1.5 KiB
JSON

{
"name": "@bytelyst/react-native-platform-sdk",
"version": "1.0.0",
"description": "React Native SDK for ByteLyst platform services",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./auth": {
"import": "./dist/auth.js",
"types": "./dist/auth.d.ts"
},
"./telemetry": {
"import": "./dist/telemetry.js",
"types": "./dist/telemetry.d.ts"
},
"./feature-flags": {
"import": "./dist/feature-flags.js",
"types": "./dist/feature-flags.d.ts"
},
"./kill-switch": {
"import": "./dist/kill-switch.js",
"types": "./dist/kill-switch.d.ts"
},
"./broadcasts": {
"import": "./dist/broadcasts.js",
"types": "./dist/broadcasts.d.ts"
},
"./surveys": {
"import": "./dist/surveys.js",
"types": "./dist/surveys.d.ts"
}
},
"scripts": {
"build": "tsc",
"prepare": "tsc",
"test": "vitest run --pool forks",
"lint": "eslint src/**/*.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {},
"peerDependencies": {
"react": ">=18.0.0",
"react-native": ">=0.72.0",
"expo": ">=49.0.0"
},
"devDependencies": {
"@types/react": "^19.0.0",
"typescript": "^5.7.0",
"vitest": "^3.0.0"
},
"keywords": [
"react-native",
"bytelyst",
"platform",
"expo",
"mobile"
],
"license": "MIT",
"publishConfig": {
"registry": "http://localhost:3300/api/packages/bytelyst/npm/"
}
}