Implements device authorization for React Native: - AES-256-GCM + PBKDF2 decryption via react-native-quick-crypto (lazy loaded) - AsyncStorage persistence with @xuqm:license:* keys - 10-minute in-memory + persistent cache with offline fallback - LicenseResult discriminated union type Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 行
738 B
JSON
27 行
738 B
JSON
{
|
|
"name": "@xuqm/rn-license",
|
|
"version": "0.2.0",
|
|
"description": "XuqmGroup RN SDK — License module (device registration & verification)",
|
|
"license": "UNLICENSED",
|
|
"main": "src/index.ts",
|
|
"react-native": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"private": false,
|
|
"publishConfig": {
|
|
"registry": "https://nexus.xuqinmin.com/repository/npm-hosted/"
|
|
},
|
|
"scripts": { "typecheck": "tsc --noEmit" },
|
|
"dependencies": {
|
|
"@xuqm/rn-common": ">=0.2.2"
|
|
},
|
|
"peerDependencies": {
|
|
"react-native": ">=0.76.0",
|
|
"@react-native-async-storage/async-storage": ">=1.21.0",
|
|
"react-native-quick-crypto": ">=0.7.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.9.3",
|
|
"@types/react-native": "^0.73.0"
|
|
}
|
|
}
|