@keeper-security/keeperapi 16.0.1 → 16.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/4939a895ecf4daac58b0d73bccd49876515d41b8 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/77aced5528ce05fe900fdf7634042ec3c0f18255 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741 +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf +0 -0
- package/.rpt2_cache/rpt2_73ef004c41e5fb714e8076cf96455df4f040d49c/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/code/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/semanticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/05d17f791979143cbce20e3e3e811aa19ed8b492 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/07113f92cc3a9f5dc57b92f54542a63463f1fa9a +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1ba6467ba06d4bfc0c8581f4ee12c2c0f687214e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/1de1e40928c5c58c4f677d93986cdff01b3d0417 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/47382883a57ad5790d3fd6abd39f33f773726b3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4d58c1113d07816b1909aaef4395fd8b4d0ee13c +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/4ee978699d6de2a60214b16c42d87f8e9309636b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/50f4a014d14ada987c125e6ea55d4e6e75605313 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/58aa8c228c99b690d3ca1f3b464585c41d1cd4bb +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/592d89407340c5ec6ad006df327e588b3f442eca +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/59783c8cc0cc9d984f5407c218d213bca4c98503 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/61fa6cf725249a1cae9b94b74a8c23aa3efd2ca1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/89f8a81d9d078b69f9fa7fa95251b38ccc394a3b +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/b32ea8d6d3de0c6d8e178eff069fea4e11fa92b1 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/c05be8364ff56aba0298689783666ddb97a31285 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/e23bf49223ba8b7ec926e46c40b27b0353cfc50e +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/syntacticDiagnostics/cache/eec92c105b2694c31bff21903ddc3ef81af8f056 +1 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/20b49cde4def23063b280689e4ff4d5a3803712b +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/3809196a67de680945038f2b4846e2e3b4af35aa +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/4ad5d47b1ce7bf45cc7d9ff8c970e1fc57f446f3 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/5a0816a3c916ff0e4961dc0ec2da48646f2ac5aa +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/6182f5491d41e8f10acfbcf46ee875587904f5a3 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/7ca2e31bcece668dfa5de5e1349ba34a757b5140 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/86a4b0102f5568ac0a5b946d05c55f42c30b472d +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/87fae47dd5b05377c04cfe377699d748414dc1c9 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/a7c23ecebcaf23c9346007731c5796b96c580738 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/ac4d101c3489192db3e0ec98430a2336cba9a741 +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b1eb441c5b806d06ba6bb36fcfd0cc4746c23a8a +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/b7942903000069a51e317fef1595a8ea1d8b828d +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/cee91236390168fd38b01aaae7bed3099bb4555a +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/d7c87ce194d923e6f02c7e570008e88ade1cbabf +0 -0
- package/.rpt2_cache/rpt2_e52dc086a65136b8064433446ffcd05307935b95/types/cache/fba70878178c036fb4e9e1f19bdb465a1270d258 +0 -0
- package/babel.config.js +6 -0
- package/package.json +7 -10
- package/rollup.config.js +50 -0
- package/scripts/cleanDistFolder.js +9 -0
- package/src/__tests__/utils.test.js +13 -0
- package/src/auth.ts +1514 -0
- package/src/browser/asn1hex.ts +296 -0
- package/src/browser/index.ts +17 -0
- package/src/browser/jsbn.ts +1213 -0
- package/src/browser/platform.ts +434 -0
- package/src/browser/rng.ts +15 -0
- package/src/browser/rsa.ts +262 -0
- package/src/commands.ts +1378 -0
- package/src/company.ts +244 -0
- package/src/configuration.ts +125 -0
- package/src/endpoint.ts +350 -0
- package/src/node/index.ts +17 -0
- package/src/node/platform.ts +283 -0
- package/src/platform.ts +76 -0
- package/{dist → src}/proto.d.ts +0 -0
- package/src/proto.js +136564 -0
- package/src/restMessages.ts +311 -0
- package/src/utils.ts +169 -0
- package/src/vault.ts +844 -0
- package/src/vendorContext.ts +69 -0
- package/src/vendorModel.ts +36 -0
- package/tsconfig.json +14 -0
- package/tsconfig.rollup.json +14 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/*! asn1hex-1.1.js (c) 2012 Kenji Urushima | kjur.github.com/jsrsasign/license
|
|
2
|
+
*/
|
|
3
|
+
//
|
|
4
|
+
// asn1hex.js - Hexadecimal represented ASN.1 string library
|
|
5
|
+
//
|
|
6
|
+
// version: 1.1 (09-May-2012)
|
|
7
|
+
//
|
|
8
|
+
// Copyright (c) 2010-2012 Kenji Urushima (kenji.urushima@gmail.com)
|
|
9
|
+
//
|
|
10
|
+
// This software is licensed under the terms of the MIT License.
|
|
11
|
+
// http://kjur.github.com/jsrsasign/license/
|
|
12
|
+
//
|
|
13
|
+
// The above copyright and license notice shall be
|
|
14
|
+
// included in all copies or substantial portions of the Software.
|
|
15
|
+
//
|
|
16
|
+
// Depends on:
|
|
17
|
+
//
|
|
18
|
+
|
|
19
|
+
// MEMO:
|
|
20
|
+
// f('3082025b02...', 2) ... 82025b ... 3bytes
|
|
21
|
+
// f('020100', 2) ... 01 ... 1byte
|
|
22
|
+
// f('0203001...', 2) ... 03 ... 1byte
|
|
23
|
+
// f('02818003...', 2) ... 8180 ... 2bytes
|
|
24
|
+
// f('3080....0000', 2) ... 80 ... -1
|
|
25
|
+
//
|
|
26
|
+
// Requirements:
|
|
27
|
+
// - ASN.1 type octet length MUST be 1.
|
|
28
|
+
// (i.e. ASN.1 primitives like SET, SEQUENCE, INTEGER, OCTETSTRING ...)
|
|
29
|
+
// -
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @fileOverview
|
|
33
|
+
* @name asn1hex-1.1.js
|
|
34
|
+
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
35
|
+
* @version 1.1
|
|
36
|
+
* @license <a href="http://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
import {parseBigInt} from './jsbn';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* get byte length for ASN.1 L(length) bytes
|
|
43
|
+
* @name getByteLengthOfL_AtObj
|
|
44
|
+
* @memberOf ASN1HEX
|
|
45
|
+
* @function
|
|
46
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
47
|
+
* @param {Number} pos string index
|
|
48
|
+
* @return byte length for ASN.1 L(length) bytes
|
|
49
|
+
*/
|
|
50
|
+
function _asnhex_getByteLengthOfL_AtObj(s, pos) {
|
|
51
|
+
if (s.substring(pos + 2, pos + 3) != '8') return 1;
|
|
52
|
+
var i = parseInt(s.substring(pos + 3, pos + 4));
|
|
53
|
+
if (i == 0) return -1; // length octet '80' indefinite length
|
|
54
|
+
if (0 < i && i < 10) return i + 1; // including '8?' octet;
|
|
55
|
+
return -2; // malformed format
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* get hexadecimal string for ASN.1 L(length) bytes
|
|
61
|
+
* @name getHexOfL_AtObj
|
|
62
|
+
* @memberOf ASN1HEX
|
|
63
|
+
* @function
|
|
64
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
65
|
+
* @param {Number} pos string index
|
|
66
|
+
* @return {String} hexadecimal string for ASN.1 L(length) bytes
|
|
67
|
+
*/
|
|
68
|
+
function _asnhex_getHexOfL_AtObj(s, pos) {
|
|
69
|
+
var len = _asnhex_getByteLengthOfL_AtObj(s, pos);
|
|
70
|
+
if (len < 1) return '';
|
|
71
|
+
return s.substring(pos + 2, pos + 2 + len * 2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
//
|
|
75
|
+
// getting ASN.1 length value at the position 'idx' of
|
|
76
|
+
// hexa decimal string 's'.
|
|
77
|
+
//
|
|
78
|
+
// f('3082025b02...', 0) ... 82025b ... ???
|
|
79
|
+
// f('020100', 0) ... 01 ... 1
|
|
80
|
+
// f('0203001...', 0) ... 03 ... 3
|
|
81
|
+
// f('02818003...', 0) ... 8180 ... 128
|
|
82
|
+
/**
|
|
83
|
+
* get integer value of ASN.1 length for ASN.1 data
|
|
84
|
+
* @name getIntOfL_AtObj
|
|
85
|
+
* @memberOf ASN1HEX
|
|
86
|
+
* @function
|
|
87
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
88
|
+
* @param {Number} pos string index
|
|
89
|
+
* @return ASN.1 L(length) integer value
|
|
90
|
+
*/
|
|
91
|
+
function _asnhex_getIntOfL_AtObj(s, pos) {
|
|
92
|
+
var hLength = _asnhex_getHexOfL_AtObj(s, pos);
|
|
93
|
+
if (hLength == '') return -1;
|
|
94
|
+
var bi;
|
|
95
|
+
if (parseInt(hLength.substring(0, 1)) < 8) {
|
|
96
|
+
bi = parseBigInt(hLength, 16);
|
|
97
|
+
} else {
|
|
98
|
+
bi = parseBigInt(hLength.substring(2), 16);
|
|
99
|
+
}
|
|
100
|
+
return bi.intValue();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* get ASN.1 value starting string position for ASN.1 object refered by index 'idx'.
|
|
105
|
+
* @name getStartPosOfV_AtObj
|
|
106
|
+
* @memberOf ASN1HEX
|
|
107
|
+
* @function
|
|
108
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
109
|
+
* @param {Number} pos string index
|
|
110
|
+
*/
|
|
111
|
+
function _asnhex_getStartPosOfV_AtObj(s, pos) {
|
|
112
|
+
var l_len = _asnhex_getByteLengthOfL_AtObj(s, pos);
|
|
113
|
+
if (l_len < 0) return l_len;
|
|
114
|
+
return pos + (l_len + 1) * 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* get hexadecimal string of ASN.1 V(value)
|
|
119
|
+
* @name getHexOfV_AtObj
|
|
120
|
+
* @memberOf ASN1HEX
|
|
121
|
+
* @function
|
|
122
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
123
|
+
* @param {Number} pos string index
|
|
124
|
+
* @return {String} hexadecimal string of ASN.1 value.
|
|
125
|
+
*/
|
|
126
|
+
export function _asnhex_getHexOfV_AtObj(s, pos) {
|
|
127
|
+
var pos1 = _asnhex_getStartPosOfV_AtObj(s, pos);
|
|
128
|
+
var len = _asnhex_getIntOfL_AtObj(s, pos);
|
|
129
|
+
return s.substring(pos1, pos1 + len * 2);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* get hexadecimal string of ASN.1 TLV at
|
|
134
|
+
* @name getHexOfTLV_AtObj
|
|
135
|
+
* @memberOf ASN1HEX
|
|
136
|
+
* @function
|
|
137
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
138
|
+
* @param {Number} pos string index
|
|
139
|
+
* @return {String} hexadecimal string of ASN.1 TLV.
|
|
140
|
+
* @since 1.1
|
|
141
|
+
*/
|
|
142
|
+
function _asnhex_getHexOfTLV_AtObj(s, pos) {
|
|
143
|
+
var hT = s.substr(pos, 2);
|
|
144
|
+
var hL = _asnhex_getHexOfL_AtObj(s, pos);
|
|
145
|
+
var hV = _asnhex_getHexOfV_AtObj(s, pos);
|
|
146
|
+
return hT + hL + hV;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* get next sibling starting index for ASN.1 object string
|
|
151
|
+
* @name getPosOfNextSibling_AtObj
|
|
152
|
+
* @memberOf ASN1HEX
|
|
153
|
+
* @function
|
|
154
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
155
|
+
* @param {Number} pos string index
|
|
156
|
+
* @return next sibling starting index for ASN.1 object string
|
|
157
|
+
*/
|
|
158
|
+
function _asnhex_getPosOfNextSibling_AtObj(s, pos) {
|
|
159
|
+
var pos1 = _asnhex_getStartPosOfV_AtObj(s, pos);
|
|
160
|
+
var len = _asnhex_getIntOfL_AtObj(s, pos);
|
|
161
|
+
return pos1 + len * 2;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* get array of indexes of child ASN.1 objects
|
|
166
|
+
* @name getPosArrayOfChildren_AtObj
|
|
167
|
+
* @memberOf ASN1HEX
|
|
168
|
+
* @function
|
|
169
|
+
* @param {String} s hexadecimal string of ASN.1 DER encoded data
|
|
170
|
+
* @param {Number} start string index of ASN.1 object
|
|
171
|
+
* @return {Array of Number} array of indexes for childen of ASN.1 objects
|
|
172
|
+
*/
|
|
173
|
+
export function _asnhex_getPosArrayOfChildren_AtObj(h, pos) {
|
|
174
|
+
var a = new Array();
|
|
175
|
+
var p0 = _asnhex_getStartPosOfV_AtObj(h, pos);
|
|
176
|
+
a.push(p0);
|
|
177
|
+
|
|
178
|
+
var len = _asnhex_getIntOfL_AtObj(h, pos);
|
|
179
|
+
var p = p0;
|
|
180
|
+
var k = 0;
|
|
181
|
+
while (1) {
|
|
182
|
+
var pNext = _asnhex_getPosOfNextSibling_AtObj(h, p);
|
|
183
|
+
if (pNext == null || (pNext - p0 >= (len * 2))) break;
|
|
184
|
+
if (k >= 200) break;
|
|
185
|
+
|
|
186
|
+
a.push(pNext);
|
|
187
|
+
p = pNext;
|
|
188
|
+
|
|
189
|
+
k++;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return a;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* get string index of nth child object of ASN.1 object refered by h, idx
|
|
197
|
+
* @name getNthChildIndex_AtObj
|
|
198
|
+
* @memberOf ASN1HEX
|
|
199
|
+
* @function
|
|
200
|
+
* @param {String} h hexadecimal string of ASN.1 DER encoded data
|
|
201
|
+
* @param {Number} idx start string index of ASN.1 object
|
|
202
|
+
* @param {Number} nth for child
|
|
203
|
+
* @return {Number} string index of nth child.
|
|
204
|
+
* @since 1.1
|
|
205
|
+
*/
|
|
206
|
+
function _asnhex_getNthChildIndex_AtObj(h, idx, nth) {
|
|
207
|
+
var a = _asnhex_getPosArrayOfChildren_AtObj(h, idx);
|
|
208
|
+
return a[nth];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// ========== decendant methods ==============================
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* get string index of nth child object of ASN.1 object refered by h, idx
|
|
215
|
+
* @name getDecendantIndexByNthList
|
|
216
|
+
* @memberOf ASN1HEX
|
|
217
|
+
* @function
|
|
218
|
+
* @param {String} h hexadecimal string of ASN.1 DER encoded data
|
|
219
|
+
* @param {Number} currentIndex start string index of ASN.1 object
|
|
220
|
+
* @param {Array of Number} nthList array list of nth
|
|
221
|
+
* @return {Number} string index refered by nthList
|
|
222
|
+
* @since 1.1
|
|
223
|
+
*/
|
|
224
|
+
function _asnhex_getDecendantIndexByNthList(h, currentIndex, nthList) {
|
|
225
|
+
if (nthList.length == 0) {
|
|
226
|
+
return currentIndex;
|
|
227
|
+
}
|
|
228
|
+
var firstNth = nthList.shift();
|
|
229
|
+
var a = _asnhex_getPosArrayOfChildren_AtObj(h, currentIndex);
|
|
230
|
+
return _asnhex_getDecendantIndexByNthList(h, a[firstNth], nthList);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* get hexadecimal string of ASN.1 TLV refered by current index and nth index list.
|
|
235
|
+
* @name getDecendantHexTLVByNthList
|
|
236
|
+
* @memberOf ASN1HEX
|
|
237
|
+
* @function
|
|
238
|
+
* @param {String} h hexadecimal string of ASN.1 DER encoded data
|
|
239
|
+
* @param {Number} currentIndex start string index of ASN.1 object
|
|
240
|
+
* @param {Array of Number} nthList array list of nth
|
|
241
|
+
* @return {Number} hexadecimal string of ASN.1 TLV refered by nthList
|
|
242
|
+
* @since 1.1
|
|
243
|
+
*/
|
|
244
|
+
function _asnhex_getDecendantHexTLVByNthList(h, currentIndex, nthList) {
|
|
245
|
+
var idx = _asnhex_getDecendantIndexByNthList(h, currentIndex, nthList);
|
|
246
|
+
return _asnhex_getHexOfTLV_AtObj(h, idx);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* get hexadecimal string of ASN.1 V refered by current index and nth index list.
|
|
251
|
+
* @name getDecendantHexVByNthList
|
|
252
|
+
* @memberOf ASN1HEX
|
|
253
|
+
* @function
|
|
254
|
+
* @param {String} h hexadecimal string of ASN.1 DER encoded data
|
|
255
|
+
* @param {Number} currentIndex start string index of ASN.1 object
|
|
256
|
+
* @param {Array of Number} nthList array list of nth
|
|
257
|
+
* @return {Number} hexadecimal string of ASN.1 V refered by nthList
|
|
258
|
+
* @since 1.1
|
|
259
|
+
*/
|
|
260
|
+
function _asnhex_getDecendantHexVByNthList(h, currentIndex, nthList) {
|
|
261
|
+
var idx = _asnhex_getDecendantIndexByNthList(h, currentIndex, nthList);
|
|
262
|
+
return _asnhex_getHexOfV_AtObj(h, idx);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function _rsapem_getPosArrayOfChildrenFromHex(hPrivateKey) {
|
|
266
|
+
var a = new Array();
|
|
267
|
+
var v1 = _asnhex_getStartPosOfV_AtObj(hPrivateKey, 0);
|
|
268
|
+
var n1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, v1);
|
|
269
|
+
var e1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, n1);
|
|
270
|
+
var d1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, e1);
|
|
271
|
+
var p1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, d1);
|
|
272
|
+
var q1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, p1);
|
|
273
|
+
var dp1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, q1);
|
|
274
|
+
var dq1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, dp1);
|
|
275
|
+
var co1 = _asnhex_getPosOfNextSibling_AtObj(hPrivateKey, dq1);
|
|
276
|
+
a.push(v1, n1, e1, d1, p1, q1, dp1, dq1, co1);
|
|
277
|
+
return a;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export function _rsapem_getHexValueArrayOfChildrenFromHex(hPrivateKey) {
|
|
281
|
+
var posArray = _rsapem_getPosArrayOfChildrenFromHex(hPrivateKey);
|
|
282
|
+
|
|
283
|
+
var v = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[0]);
|
|
284
|
+
var n = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[1]);
|
|
285
|
+
var e = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[2]);
|
|
286
|
+
var d = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[3]);
|
|
287
|
+
var p = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[4]);
|
|
288
|
+
var q = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[5]);
|
|
289
|
+
var dp = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[6]);
|
|
290
|
+
var dq = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[7]);
|
|
291
|
+
var co = _asnhex_getHexOfV_AtObj(hPrivateKey, posArray[8]);
|
|
292
|
+
var a = new Array();
|
|
293
|
+
a.push(v, n, e, d, p, q, dp, dq, co);
|
|
294
|
+
return a;
|
|
295
|
+
}
|
|
296
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "../endpoint";
|
|
2
|
+
export * from "../auth";
|
|
3
|
+
export * from "../vendorContext";
|
|
4
|
+
export * from "../vendorModel";
|
|
5
|
+
export * from "../vault";
|
|
6
|
+
export * from "../company";
|
|
7
|
+
export * from "../configuration";
|
|
8
|
+
export * from "../commands";
|
|
9
|
+
export * from "../restMessages";
|
|
10
|
+
export * from "../utils";
|
|
11
|
+
export * from "../platform";
|
|
12
|
+
export * from "../proto";
|
|
13
|
+
import {connectPlatform} from "../platform";
|
|
14
|
+
import {browserPlatform} from "./platform";
|
|
15
|
+
|
|
16
|
+
connectPlatform(browserPlatform);
|
|
17
|
+
|