@peculiar/certificates-viewer 3.0.4 → 3.2.0

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.
Files changed (74) hide show
  1. package/dist/cjs/{certification_request-43396146.js → certification_request-cde57123.js} +138 -266
  2. package/dist/cjs/csr-78378ed0.js +150 -0
  3. package/dist/cjs/download-6724f3a7.js +79 -0
  4. package/dist/cjs/{download-5e7d5455.js → index-ff818d4d.js} +0 -72
  5. package/dist/cjs/index.cjs.js +2 -1
  6. package/dist/cjs/l10n-a048a686.js +145 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/peculiar-attribute-certificate-viewer_2.cjs.entry.js +479 -0
  9. package/dist/cjs/peculiar-button_5.cjs.entry.js +148 -0
  10. package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +173 -0
  11. package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
  12. package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +124 -0
  13. package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +6 -4
  14. package/dist/cjs/peculiar.cjs.js +1 -1
  15. package/dist/cjs/public_key-e56dbe52.js +1104 -0
  16. package/dist/cjs/x509_attribute_certificate-cc325b70.js +87 -0
  17. package/dist/cjs/x509_certificate-51a97033.js +139 -0
  18. package/dist/collection/components/certificate-decoder/certificate-decoder.js +54 -11
  19. package/dist/collection/constants/oids.js +1 -0
  20. package/dist/collection/utils/index.js +0 -1
  21. package/dist/collection/www-copy/index.js +80 -0
  22. package/dist/esm/{certification_request-16ea346c.js → certification_request-c0674647.js} +77 -205
  23. package/dist/esm/csr-c1b6a176.js +147 -0
  24. package/dist/esm/download-735fb2eb.js +76 -0
  25. package/dist/esm/{download-cf68ac2c.js → index-0ba131b0.js} +1 -71
  26. package/dist/esm/index.js +2 -1
  27. package/dist/esm/l10n-ac28fa92.js +141 -0
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/peculiar-attribute-certificate-viewer_2.entry.js +474 -0
  30. package/dist/esm/peculiar-button_5.entry.js +140 -0
  31. package/dist/esm/peculiar-certificate-decoder.entry.js +169 -0
  32. package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
  33. package/dist/esm/peculiar-certificate-viewer.entry.js +120 -0
  34. package/dist/esm/peculiar-certificates-viewer.entry.js +5 -3
  35. package/dist/esm/peculiar.js +1 -1
  36. package/dist/esm/public_key-43b2cbf0.js +1089 -0
  37. package/dist/esm/x509_attribute_certificate-a6d4aa15.js +85 -0
  38. package/dist/esm/x509_certificate-12f6d344.js +137 -0
  39. package/dist/peculiar/index.esm.js +1 -1
  40. package/dist/peculiar/p-006865d7.js +4 -0
  41. package/dist/peculiar/p-17c4da7b.js +11 -0
  42. package/dist/peculiar/p-1ebab45c.js +78 -0
  43. package/dist/peculiar/{p-b09a1f0b.entry.js → p-38635919.entry.js} +1 -1
  44. package/dist/peculiar/p-3f8d1008.entry.js +4 -0
  45. package/dist/peculiar/p-42da7f97.js +11 -0
  46. package/dist/peculiar/p-464e0943.js +87 -0
  47. package/dist/peculiar/p-4f4c1d30.js +12 -0
  48. package/dist/peculiar/p-530afe84.entry.js +11 -0
  49. package/dist/peculiar/p-6011646e.entry.js +11 -0
  50. package/dist/peculiar/p-6c510523.js +18 -0
  51. package/dist/peculiar/p-d7a13cb4.js +18 -0
  52. package/dist/peculiar/p-dafae164.entry.js +4 -0
  53. package/dist/peculiar/p-e77d0ccc.entry.js +18 -0
  54. package/dist/peculiar/peculiar.esm.js +1 -1
  55. package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +13 -0
  56. package/dist/types/components.d.ts +20 -0
  57. package/dist/types/constants/oids.d.ts +1 -0
  58. package/dist/types/utils/index.d.ts +0 -1
  59. package/package.json +2 -3
  60. package/dist/cjs/l10n-d4a77087.js +0 -767
  61. package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +0 -2175
  62. package/dist/collection/utils/history.js +0 -19
  63. package/dist/collection/utils/parse_hash.js +0 -28
  64. package/dist/collection/utils/query_stringify.js +0 -21
  65. package/dist/esm/l10n-9ac63748.js +0 -762
  66. package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +0 -2163
  67. package/dist/peculiar/p-7452b86e.entry.js +0 -4
  68. package/dist/peculiar/p-99797a49.js +0 -34
  69. package/dist/peculiar/p-c774ec0b.js +0 -18
  70. package/dist/peculiar/p-d0db9e70.entry.js +0 -113
  71. package/dist/peculiar/p-d7ed39f0.js +0 -87
  72. package/dist/types/utils/history.d.ts +0 -9
  73. package/dist/types/utils/parse_hash.d.ts +0 -9
  74. package/dist/types/utils/query_stringify.d.ts +0 -8
@@ -1,19 +0,0 @@
1
- /*!
2
- * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
- */
4
- /**
5
- * @license
6
- * Copyright (c) Peculiar Ventures, LLC.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- import { createBrowserHistory } from 'history';
12
- import parseHash from './parse_hash';
13
- import queryStringify from './query_stringify';
14
- const browserHistory = createBrowserHistory();
15
- const history = Object.assign(browserHistory, {
16
- parseHash,
17
- queryStringify,
18
- });
19
- export default history;
@@ -1,28 +0,0 @@
1
- /*!
2
- * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
- */
4
- /**
5
- * @license
6
- * Copyright (c) Peculiar Ventures, LLC.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- function parseHash(hash = window.location.hash) {
12
- if (!hash.length) {
13
- return {};
14
- }
15
- const pairs = hash.replace(/^(#|\?)?\/?/, '').split('&');
16
- const result = {};
17
- for (let i = 0; i < pairs.length; i += 1) {
18
- const pair = pairs[i].split('=');
19
- try {
20
- result[pair[0]] = pair[1] && decodeURIComponent(pair[1]);
21
- }
22
- catch (error) {
23
- console.warn(error);
24
- }
25
- }
26
- return result;
27
- }
28
- export default parseHash;
@@ -1,21 +0,0 @@
1
- /*!
2
- * © Peculiar Ventures https://peculiarventures.com/ - MIT License
3
- */
4
- /**
5
- * @license
6
- * Copyright (c) Peculiar Ventures, LLC.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */
11
- export default function queryStringify(options) {
12
- const parameters = [];
13
- Object.keys(options).forEach((o) => {
14
- if (typeof options[o] === 'string'
15
- || typeof options[o] === 'boolean'
16
- || typeof options[o] === 'number') {
17
- parameters.push(`${o}=${encodeURIComponent(options[o])}`);
18
- }
19
- });
20
- return parameters.join('&');
21
- }