{"_id":"@alicloud/u2f-api","_rev":"4-d35b8a6bfa4da4c17236cba50602d9cc","name":"@alicloud/u2f-api","dist-tags":{"latest":"0.0.1-alpha.6","alpha":"0.0.1-alpha.7"},"versions":{"0.0.1-alpha.3":{"name":"@alicloud/u2f-api","version":"0.0.1-alpha.3","description":"控制台子账号风控 U2F 相关的 API","license":"MIT","sideEffects":false,"main":"build/cjs/index.js","module":"build/es/index.js","types":"build/types/index.d.ts","homepage":"https://github.com/aliyun/alibabacloud-console-base/tree/master/packages/u2f-api","author":{"name":"Zhenlan Zhao","email":"zhenlantju@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aliyun/alibabacloud-console-base.git"},"publishConfig":{"access":"public"},"keywords":["console-base","u2f","risk-control"],"devDependencies":{"@alicloud/console-toolkit-cli":"^1.2.13","@alicloud/console-toolkit-preset-component":"^1.2.23","@alicloud/demo-rc-elements":"^1.3.31","@types/lodash":"^4.14.171","@types/react":"^17.0.15","react":"^17.0.2","typescript":"^4.3.5"},"scripts":{"start":"breezr start-storybook","test":"breezr test:unit","build:esm":"breezr build --engine babel --es-module","build:cjs":"breezr build --engine babel","build:bundle":"breezr build --engine webpack","build:typings":"tsc --outDir build/types --declaration --emitDeclarationOnly","build":"yarn build:esm && yarn build:cjs && yarn build:typings","clean":"rm -rf build","prepublishOnly":"yarn clean && yarn build"},"gitHead":"25bfa581b5dc2e1b49661ea3be31915095bad979","bugs":{"url":"https://github.com/aliyun/alibabacloud-console-base/issues"},"_id":"@alicloud/u2f-api@0.0.1-alpha.3","_nodeVersion":"14.17.5","_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (darwin)","dist":{"integrity":"sha512-YjU6JdY/jY3Kt8214CKtJ3pFIcqiFQytxLFdQdGwQIfmleUSV60SEeEPPgHZpON72lzrI/DYoSe8moCoxQdWmQ==","shasum":"41ff3164cf55e92f8e0b903ddb6753aa7ae6d437","tarball":"https://registry.npmjs.org/@alicloud/u2f-api/-/u2f-api-0.0.1-alpha.3.tgz","fileCount":28,"unpackedSize":65248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOylsCRA9TVsSAnZWagAAInQQAKDbhVY543ijuQiA4Gn4\nfeoawxfww55ug728oebnYozZHUmWNX8+Gd50xU06ThPkKp2n9OuGX6KVeAnL\nzLvfbuC4EHoZe/Zv50gql+lmGupu2p5oI0w1Jd2CLoKGa43YRyXjkZm3wNYM\nNb12h3taTj26EIhWiXX1Ja2b/DJ+snqP4KXwCUDh6Ukk0cjVZBzTa+tvVAPJ\nYtKutfIGU+XOjZI2Ctr6TYDT/N+bA9vScDN1FUS21r+8w11yyytg+EG3lCa0\niEiixn9BZqzoQNr+DaZnmsm5rAk4Uco6CLf/52XMJjof+M5XE5QTj4HsbwOJ\nvfArRCqZ5+jTUmrdohgN32vKaZ608w/EWchmzG4Jyes6T2OkwFfvavlfwgik\nWoamSI14lez21Zb7bjXNB3b/Phj+d6F4kQuAuvLCUeSu8R1SsIUZx+9dXHGe\nuYRhqPn6jDlkV2RzjWArbcOulP+f6ZMwYW7Se7I5McpjebGoGLmbOwlCtqwa\nWZ9vGJ1J2D6rCLic3XvzclDyXQV5zaiVjDQxxgTGyfCwunErT4w1iJY6Lbqw\n+2TKm/p6tmGO5dTcP5goYa4dLyhzpY1Ftq/2i2W7xxFH1/RMjMo1vC6kkxyZ\nVFidyei9vRCqzWuolw8up3nTmXaeZBRKodwifmDhjoSaAMbJZTdG4DWl16BV\nbiOC\r\n=z1ke\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu4NYu51nvHPWZMTMDj3LnZOQ/VYK9Kwat8jsL8J8vgwIgGmQ/Xo2rSiUjAuCthHDxf9x0pYsWSSuNFP9avYD8om4="}]},"_npmUser":{"name":"console-fe","email":"console-fe@alibabacloud.com"},"directories":{},"maintainers":[{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"pagecao","email":"cpj1106@gmail.com"},{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},{"name":"console-fe","email":"console-fe@alibabacloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/u2f-api_0.0.1-alpha.3_1631267180259_0.20397612432001688"},"_hasShrinkwrap":false},"0.0.1-alpha.6":{"name":"@alicloud/u2f-api","version":"0.0.1-alpha.6","description":"控制台子账号风控 U2F 相关的 API","license":"MIT","sideEffects":false,"main":"build/cjs/index.js","module":"build/es/index.js","types":"build/types/index.d.ts","homepage":"https://github.com/aliyun/alibabacloud-console-base/tree/master/packages/u2f-api","author":{"name":"Zhenlan Zhao","email":"zhenlantju@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aliyun/alibabacloud-console-base.git"},"publishConfig":{"access":"public"},"keywords":["console-base","u2f","risk-control"],"devDependencies":{"@alicloud/console-toolkit-cli":"^1.2.30","@alicloud/console-toolkit-preset-component":"^1.2.32","@alicloud/demo-rc-elements":"^1.3.67","@types/lodash":"^4.14.175","@types/react":"^17.0.29","react":"^17.0.2","typescript":"^4.4.4"},"scripts":{"start":"breezr start-storybook","test":"breezr test:unit","build:esm":"breezr build --engine babel --es-module","build:cjs":"breezr build --engine babel","build:bundle":"breezr build --engine webpack","build:typings":"tsc --outDir build/types --declaration --emitDeclarationOnly","build":"yarn build:esm && yarn build:cjs && yarn build:typings","clean":"rm -rf build","prepublishOnly":"yarn clean && yarn build"},"gitHead":"b5360991dff3217de4e4a0cba8460323e128e9a4","bugs":{"url":"https://github.com/aliyun/alibabacloud-console-base/issues"},"_id":"@alicloud/u2f-api@0.0.1-alpha.6","_nodeVersion":"14.17.5","_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (darwin)","dist":{"integrity":"sha512-efqcSwjJibzPU9AikarQGQzpcnxIkl3+P9wfwEwh+xkWEKoE2EiSUCoCazEiHkCgoAoOyAPhRsNFd+omp9efGw==","shasum":"a728de37d1c797dec836b7a6e77e8f6a7aa62a79","tarball":"https://registry.npmjs.org/@alicloud/u2f-api/-/u2f-api-0.0.1-alpha.6.tgz","fileCount":28,"unpackedSize":65280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxJatCRA9TVsSAnZWagAAeacP/jyeHh0lIMJmyXfZL6zL\nelNmOLHhexzSHutXFT5Y3LHEQGjrPgN9rs72eiJY5wpcAUuXcMtkCPUOLm/r\nCAcdvuVE3zbMhvXkAO1tr7bOcwnwAXrdu3K47EzrTd727rCDKwp2KFPaquKr\nfOZ3kAYgUo28PsoxC4oHzyyqMQkdsR7VPO5lMmO1Sy1njBt+k2agG6YlqW30\nomsFB9oK3WtiHwNQ5+YRH3W3cWA2R2S6kjWFvjPeCnepRGsu6E7swY6ZN6uW\n/Gem088HlQuFPTjGJO0ntX4yLqqTckbQRv4FAyrwyWxCOmnLEPvfxPb8lvQp\n1qFLZFEu3b1L9K7H9Enzv+6U/EzN6KzX3j7wtXLCy33TdQSQssIEYxb16VRe\ngHKDOa5HO+UXp3M6PFV0nRd/d+r3+Z+zwWor/WUXmxIOC9TZk7WvWRQbgtrD\nOuQFEcgNgQdCBnqlWFjcTwmYNqRKYlh/tOJTaVEd4Oz5LT0j5UUX5tl721Q6\nn9wJGS09bJWro8ZVjk2v7exSk/6Vsm87nIifYHgOmt4dK0fKNiG88Hr6NesE\n7+nx18myTMvZOGs3Q2tGJoBbp1R6QDZL0OScjiOPDAEqzppms0X+G8PEVOpI\nbNj5Odt2r5qmoX9zbdqyX9CQflQH3GHzSV2y2N065TnSO7/OXCOQ01DTZmJ7\nQhIz\r\n=cEeN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGW24nPHKTMo1xY/HX4hlnGckQQm/ePoJsLK7z8dzCyiAiAMTCDXYP91zvOmvKKDW2N1Tv/sCIB9F445iCgtQ+JHgw=="}]},"_npmUser":{"name":"console-fe","email":"console-fe@alibabacloud.com"},"directories":{},"maintainers":[{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"pagecao","email":"cpj1106@gmail.com"},{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},{"name":"console-fe","email":"console-fe@alibabacloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/u2f-api_0.0.1-alpha.6_1634092686137_0.8035179686521361"},"_hasShrinkwrap":false},"0.0.1-alpha.7":{"name":"@alicloud/u2f-api","version":"0.0.1-alpha.7","description":"控制台子账号风控 U2F 相关的 API","license":"MIT","sideEffects":false,"main":"build/cjs/index.js","module":"build/es/index.js","types":"build/types/index.d.ts","homepage":"https://github.com/aliyun/alibabacloud-console-base/tree/master/packages/u2f-api","author":{"name":"Zhenlan Zhao","email":"zhenlantju@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aliyun/alibabacloud-console-base.git"},"publishConfig":{"access":"public"},"keywords":["console-base","u2f","risk-control"],"devDependencies":{"@alicloud/console-toolkit-cli":"^1.2.30","@alicloud/console-toolkit-preset-component":"^1.2.32","@alicloud/demo-rc-elements":"^1.3.67","@types/lodash":"^4.14.175","@types/react":"^17.0.29","react":"^17.0.2","typescript":"^4.4.4"},"scripts":{"start":"breezr start-storybook","test":"breezr test:unit","build:esm":"breezr build --engine babel --es-module","build:cjs":"breezr build --engine babel","build:bundle":"breezr build --engine webpack","build:typings":"tsc --outDir build/types --declaration --emitDeclarationOnly","build":"yarn build:esm && yarn build:cjs && yarn build:typings","clean":"rm -rf build","prepublishOnly":"yarn clean && yarn build"},"gitHead":"fb5dcc6d17627f348e6d8f9e7a0d127d14635c15","readme":"@alicloud/u2f-api\n===\n\n> 在浏览器中使用的 U2F API，用于与 FIDO U2F 硬件设备交互。\n\n# INSTALL\n\n```\ntnpm i @alicloud/u2f-api -S\n```\n\n# U2F API 浏览器支持\nU2F API 目前支持的浏览器有：\n\n- Google Chrome 38及以上版本\n- Opera 40及以上版本\n- Mozilla Firefox 57及以上版本\n\n\n# API\n\n```typescript\nexport declare function register(registerRequests: RegisterRequest | ReadonlyArray<RegisterRequest>, signRequests: SignRequest | ReadonlyArray<SignRequest>, timeout?: number): Promise<RegisterResponse>;\nexport declare function register(registerRequests: RegisterRequest | ReadonlyArray<RegisterRequest>, timeout?: number): Promise<RegisterResponse>;\nexport declare function sign(signRequests: SignRequest | ReadonlyArray<SignRequest>, timeout?: number): Promise<SignResponse>;\nexport declare function isSupported(): Promise<boolean>;\nexport declare function ensureSupport(): Promise<void>;\n\n// 当前环境是否支持 U2F\nconst isU2FSupported = await u2fApi.isSupported();\n\n// 绑定 U2F\nconst {\n  clientData,\n  registrationData\n} = await u2fApi.register({\n  version: u2fVersion,\n  appId: u2fAppId,\n  challenge: u2fChallenge\n}, U2F_TIMEOUT);\n\n// 验证 U2F\nconst {\n  clientData,\n  keyHandle,\n  signatureData\n} = await u2fApi.sign({\n  version,\n  appId,\n  challenge,\n  keyHandle: u2fKeyHandle\n}, U2F_TIMEOUT);\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/aliyun/alibabacloud-console-base/issues"},"_id":"@alicloud/u2f-api@0.0.1-alpha.7","_nodeVersion":"14.17.5","_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (darwin)","dist":{"integrity":"sha512-IAlQNNs8AWH7M8P2ZGKx5DOE3lwr0foS9ClDYjHTpERJH9Up387nSJGC049Sg5D7/o/c6OH8RkukV185QlHSoQ==","shasum":"27985df85dc693c40a1e905bd3c13652eb4c8b12","tarball":"https://registry.npmjs.org/@alicloud/u2f-api/-/u2f-api-0.0.1-alpha.7.tgz","fileCount":28,"unpackedSize":65291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6d34qsBxkaJVfhmTNPEqlzhY22bXUpLv3xkJ+d4dWqAiEAhixw457J+FZqXNVb8EZfSy4Tb5Z/A2TxxBkTdJy4k6M="}]},"_npmUser":{"name":"console-fe","email":"console-fe@alibabacloud.com"},"directories":{},"maintainers":[{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"pagecao","email":"cpj1106@gmail.com"},{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},{"name":"console-fe","email":"console-fe@alibabacloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/u2f-api_0.0.1-alpha.7_1634203721623_0.2185644766651036"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-10T09:46:20.194Z","0.0.1-alpha.3":"2021-09-10T09:46:20.387Z","modified":"2022-04-04T12:58:47.059Z","0.0.1-alpha.6":"2021-10-13T02:38:06.365Z","0.0.1-alpha.7":"2021-10-14T09:28:41.774Z"},"maintainers":[{"name":"jacksontian","email":"shyvo1987@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"pagecao","email":"cpj1106@gmail.com"},{"name":"aliyunsdkteam","email":"sdk-team@alibabacloud.com"},{"name":"console-fe","email":"console-fe@alibabacloud.com"}],"description":"控制台子账号风控 U2F 相关的 API","homepage":"https://github.com/aliyun/alibabacloud-console-base/tree/master/packages/u2f-api","keywords":["console-base","u2f","risk-control"],"repository":{"type":"git","url":"git+https://github.com/aliyun/alibabacloud-console-base.git"},"author":{"name":"Zhenlan Zhao","email":"zhenlantju@gmail.com"},"bugs":{"url":"https://github.com/aliyun/alibabacloud-console-base/issues"},"license":"MIT","readme":"","readmeFilename":""}