XuqmGroup-Vue3SDK/package.json
XuqmGroup df7557b77f fix(ImClient): make sendSync/scheduleReconnect safe when SDK not initialized
ImClient.sendSync() called getConfig() which throws when init() hasn't been
called, breaking headless usage (e.g. platform event listeners). Now wraps
the call in a try-catch and skips the sync frame if appKey is unavailable.
Same fix for scheduleReconnect's debug log.

Also: add vite-plugin-dts to generate TypeScript declarations on every build,
fixing the missing dist/index.d.ts that broke IDE type resolution. Bump to 0.2.3.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 14:12:47 +08:00

42 行
976 B
JSON

{
"name": "@xuqm/vue3-sdk",
"version": "0.2.3",
"description": "XuqmGroup Vue3 SDK — IM & platform integration for web",
"private": false,
"publishConfig": {
"registry": "https://nexus.xuqinmin.com/repository/npm-hosted/"
},
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.es.js",
"require": "./dist/index.cjs.js"
}
},
"files": [
"dist"
],
"scripts": {
"dev": "vite build --watch",
"build": "vite build",
"type-check": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage"
},
"peerDependencies": {
"vue": "^3.5.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"typescript": "^5.6.0",
"vite": "^6.0.0",
"vite-plugin-dts": "^4.3.0",
"vue": "^3.5.13"
}
}