Initial commit: notification-elements-demo app

Interactive Angular 19 demo for @sda/notification-elements-ui with
6 sections: Bell & Feed, Notification Center, Inbox, Comments &
Threads, Mention Input, and Full-Featured layout. Includes mock
data, dark mode toggle, and real-time event log.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Giuliano Silvestro
2026-02-13 21:49:19 +10:00
commit 5d0c9ec7eb
36473 changed files with 3778146 additions and 0 deletions

201
node_modules/@jsonjoy.com/base64/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2024 jsonjoy.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

93
node_modules/@jsonjoy.com/base64/README.md generated vendored Normal file
View File

@@ -0,0 +1,93 @@
# Base64
Fast Base64 encoder and decoder for browser and Node.js.
## Encoder
- Implements Base64 encoding algorithm compatible with Node's Buffer.
- Isomorphic&mdash;it can be used in, both, Node and the browser.
- Faster than the Node's implementation for short blobs, smaller than 40 bytes.
- Uses Node's implementation for long blobs, if available. Hence, it also works
in browser, but in Node environment will perform faster for short strings.
- Can encode into Base64 text or Base64 `Uint8Array`.
### Usage
Use encoder compatible with Node's Buffer:
```ts
import {toBase64} from '@jsonjoy.com/base64';
toBase64(new Uint8Array([1, 2, 3]));
```
Create your custom encoder:
```ts
import {createToBase64} from '@jsonjoy.com/base64';
const encode = createToBase64('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_');
encode(new Uint8Array([1, 2, 3]));
```
### Benchmark
Below benchmark encodes random binary blobs of sizes 8, 16, 32, 64, 128, 256, 512, and 1024 byes.
`@jsonjoy.com/base64` is faster, because for short strings (less than 40 chars) it uses a
native JavaScript implementation, which is faster and also works in browsers. For blobs larger
than 40 chars, it falls back to Node `Buffer` implementation, if available.
Encoding:
```
node src/__bench__/encode.js
util/base64 toBase64(uint8) x 1,531,283 ops/sec ±0.30% (92 runs sampled), 653 ns/op
util/base64 createToBase64()(uint8) x 946,364 ops/sec ±0.76% (100 runs sampled), 1057 ns/op
js-base64 x 1,103,190 ops/sec ±1.27% (96 runs sampled), 906 ns/op
fast-base64-encode x 500,225 ops/sec ±0.64% (96 runs sampled), 1999 ns/op
base64-js x 328,368 ops/sec ±0.25% (95 runs sampled), 3045 ns/op
Buffer.from(uint8).toString('base64'); x 1,099,420 ops/sec ±0.20% (100 runs sampled), 910 ns/op
Fastest is util/base64 toBase64(uint8)
```
Decoding:
```
node src/__bench__/decode.js
@jsonjoy.com/base64 fromBase64(str) x 756,989 ops/sec ±0.46% (97 runs sampled), 1321 ns/op
@jsonjoy.com/base64 createFromBase64()(str) x 475,591 ops/sec ±0.37% (96 runs sampled), 2103 ns/op
Buffer.from(str, 'base64') x 545,012 ops/sec ±0.33% (101 runs sampled), 1835 ns/op
base64-js x 487,015 ops/sec ±1.19% (94 runs sampled), 2053 ns/op
js-base64 x 173,049 ops/sec ±0.20% (99 runs sampled), 5779 ns/op
Fastest is @jsonjoy.com/base64 fromBase64(str)
```
## Decoder
- Uses Node.js built-in `Buffer`, if available.
- When `Buffer` is not available, uses JavaScript implementation.
### Usage
Use decoder compatible with Node's Buffer:
```ts
import {toBase64, fromBase64} from '@jsonjoy.com/base64';
fromBase64(toBase64(new Uint8Array([1, 2, 3])));
```
Create your custom encoder:
```ts
import {createFromBase64} from '@jsonjoy.com/base64';
const decoder = createFromBase64('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_');
decoder(toBase64(new Uint8Array([1, 2, 3])));
```

2
node_modules/@jsonjoy.com/base64/lib/constants.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export declare const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
export declare const hasBuffer: boolean;

6
node_modules/@jsonjoy.com/base64/lib/constants.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasBuffer = exports.alphabet = void 0;
exports.alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
exports.hasBuffer = typeof Buffer === 'function' && typeof Buffer.from === 'function';
//# sourceMappingURL=constants.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,kEAAkE,CAAC;AAC9E,QAAA,SAAS,GAAG,OAAO,MAAM,KAAK,UAAU,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC"}

View File

@@ -0,0 +1 @@
export declare const createFromBase64: (chars?: string, noPadding?: boolean) => (encoded: string) => Uint8Array;

View File

@@ -0,0 +1,80 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createFromBase64 = void 0;
const constants_1 = require("./constants");
const E = '=';
const createFromBase64 = (chars = constants_1.alphabet, noPadding = false) => {
if (chars.length !== 64)
throw new Error('chars must be 64 characters long');
let max = 0;
for (let i = 0; i < chars.length; i++)
max = Math.max(max, chars.charCodeAt(i));
const table = [];
for (let i = 0; i <= max; i += 1)
table[i] = -1;
for (let i = 0; i < chars.length; i++)
table[chars.charCodeAt(i)] = i;
return (encoded) => {
if (!encoded)
return new Uint8Array(0);
let length = encoded.length;
if (noPadding) {
const mod = length % 4;
if (mod === 2) {
encoded += '==';
length += 2;
}
else if (mod === 3) {
encoded += '=';
length += 1;
}
}
if (length % 4 !== 0)
throw new Error('Base64 string length must be a multiple of 4');
const mainLength = encoded[length - 1] !== E ? length : length - 4;
let bufferLength = (length >> 2) * 3;
let padding = 0;
if (encoded[length - 2] === E) {
padding = 2;
bufferLength -= 2;
}
else if (encoded[length - 1] === E) {
padding = 1;
bufferLength -= 1;
}
const buf = new Uint8Array(bufferLength);
let j = 0;
let i = 0;
for (; i < mainLength; i += 4) {
const sextet0 = table[encoded.charCodeAt(i)];
const sextet1 = table[encoded.charCodeAt(i + 1)];
const sextet2 = table[encoded.charCodeAt(i + 2)];
const sextet3 = table[encoded.charCodeAt(i + 3)];
if (sextet0 < 0 || sextet1 < 0 || sextet2 < 0 || sextet3 < 0)
throw new Error('INVALID_BASE64_STRING');
buf[j] = (sextet0 << 2) | (sextet1 >> 4);
buf[j + 1] = (sextet1 << 4) | (sextet2 >> 2);
buf[j + 2] = (sextet2 << 6) | sextet3;
j += 3;
}
if (padding === 2) {
const sextet0 = table[encoded.charCodeAt(mainLength)];
const sextet1 = table[encoded.charCodeAt(mainLength + 1)];
if (sextet0 < 0 || sextet1 < 0)
throw new Error('INVALID_BASE64_STRING');
buf[j] = (sextet0 << 2) | (sextet1 >> 4);
}
else if (padding === 1) {
const sextet0 = table[encoded.charCodeAt(mainLength)];
const sextet1 = table[encoded.charCodeAt(mainLength + 1)];
const sextet2 = table[encoded.charCodeAt(mainLength + 2)];
if (sextet0 < 0 || sextet1 < 0 || sextet2 < 0)
throw new Error('INVALID_BASE64_STRING');
buf[j] = (sextet0 << 2) | (sextet1 >> 4);
buf[j + 1] = (sextet1 << 4) | (sextet2 >> 2);
}
return buf;
};
};
exports.createFromBase64 = createFromBase64;
//# sourceMappingURL=createFromBase64.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"createFromBase64.js","sourceRoot":"","sources":["../src/createFromBase64.ts"],"names":[],"mappings":";;;AAAA,2CAAqC;AAErC,MAAM,CAAC,GAAG,GAAG,CAAC;AAEP,MAAM,gBAAgB,GAAG,CAAC,QAAgB,oBAAQ,EAAE,YAAqB,KAAK,EAAE,EAAE;IACvF,IAAI,KAAK,CAAC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MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YACxF,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;YACzC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC/C,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;AACJ,CAAC,CAAC;AA7DW,QAAA,gBAAgB,oBA6D3B"}

View File

@@ -0,0 +1 @@
export declare const createFromBase64Bin: (chars?: string, pad?: string) => (view: DataView, offset: number, length: number) => Uint8Array;

View File

@@ -0,0 +1,87 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createFromBase64Bin = void 0;
const constants_1 = require("./constants");
const createFromBase64Bin = (chars = constants_1.alphabet, pad = '=') => {
if (chars.length !== 64)
throw new Error('chars must be 64 characters long');
let max = 0;
for (let i = 0; i < chars.length; i++)
max = Math.max(max, chars.charCodeAt(i));
const table = [];
for (let i = 0; i <= max; i += 1)
table[i] = -1;
for (let i = 0; i < chars.length; i++)
table[chars.charCodeAt(i)] = i;
const doExpectPadding = pad.length === 1;
const PAD = doExpectPadding ? pad.charCodeAt(0) : 0;
return (view, offset, length) => {
if (!length)
return new Uint8Array(0);
let padding = 0;
if (length % 4 !== 0) {
padding = 4 - (length % 4);
length += padding;
}
else {
const end = offset + length;
const last = end - 1;
if (view.getUint8(last) === PAD) {
padding = 1;
if (length > 1 && view.getUint8(last - 1) === PAD)
padding = 2;
}
}
if (length % 4 !== 0)
throw new Error('Base64 string length must be a multiple of 4');
const mainEnd = offset + length - (padding ? 4 : 0);
const bufferLength = (length >> 2) * 3 - padding;
const buf = new Uint8Array(bufferLength);
let j = 0;
let i = offset;
for (; i < mainEnd; i += 4) {
const word = view.getUint32(i);
const octet0 = word >>> 24;
const octet1 = (word >>> 16) & 0xff;
const octet2 = (word >>> 8) & 0xff;
const octet3 = word & 0xff;
const sextet0 = table[octet0];
const sextet1 = table[octet1];
const sextet2 = table[octet2];
const sextet3 = table[octet3];
if (sextet0 < 0 || sextet1 < 0 || sextet2 < 0 || sextet3 < 0)
throw new Error('INVALID_BASE64_SEQ');
buf[j] = (sextet0 << 2) | (sextet1 >> 4);
buf[j + 1] = (sextet1 << 4) | (sextet2 >> 2);
buf[j + 2] = (sextet2 << 6) | sextet3;
j += 3;
}
if (!padding)
return buf;
if (padding === 1) {
const word = view.getUint16(mainEnd);
const octet0 = word >> 8;
const octet1 = word & 0xff;
const octet2 = view.getUint8(mainEnd + 2);
const sextet0 = table[octet0];
const sextet1 = table[octet1];
const sextet2 = table[octet2];
if (sextet0 < 0 || sextet1 < 0 || sextet2 < 0)
throw new Error('INVALID_BASE64_SEQ');
buf[j] = (sextet0 << 2) | (sextet1 >> 4);
buf[j + 1] = (sextet1 << 4) | (sextet2 >> 2);
return buf;
}
const word = view.getUint16(mainEnd);
const octet0 = word >> 8;
const octet1 = word & 0xff;
const sextet0 = table[octet0];
const sextet1 = table[octet1];
if (sextet0 < 0 || sextet1 < 0)
throw new Error('INVALID_BASE64_SEQ');
buf[j] = (sextet0 << 2) | (sextet1 >> 4);
return buf;
};
};
exports.createFromBase64Bin = createFromBase64Bin;
//# sourceMappingURL=createFromBase64Bin.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"createFromBase64Bin.js","sourceRoot":"","sources":["../src/createFromBase64Bin.ts"],"names":[],"mappings":";;;AAAA,2CAAqC;AAE9B,MAAM,mBAAmB,GAAG,CAAC,QAAgB,oBAAQ,EAAE,MAAc,GAAG,EAAE,EAAE;IACjF,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC7E,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,C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AG,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;YAC7C,OAAO,GAAG,CAAC;QACb,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACrC,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,CAAC;QACzB,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;QAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9B,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9B,IAAI,OAAO,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACtE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QACzC,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAtEW,QAAA,mBAAmB,uBAsE9B"}

View File

@@ -0,0 +1 @@
export declare const createToBase64: (chars?: string, pad?: string) => (uint8: Uint8Array, length: number) => string;

48
node_modules/@jsonjoy.com/base64/lib/createToBase64.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createToBase64 = void 0;
const flatstr_1 = require("./util/strings/flatstr");
const constants_1 = require("./constants");
const createToBase64 = (chars = constants_1.alphabet, pad = '=') => {
if (chars.length !== 64)
throw new Error('chars must be 64 characters long');
const table = chars.split('');
const table2 = [];
for (const c1 of table) {
for (const c2 of table) {
const two = (0, flatstr_1.flatstr)(c1 + c2);
table2.push(two);
}
}
const E = pad;
const EE = (0, flatstr_1.flatstr)(pad + pad);
return (uint8, length) => {
let out = '';
const extraLength = length % 3;
const baseLength = length - extraLength;
for (let i = 0; i < baseLength; i += 3) {
const o1 = uint8[i];
const o2 = uint8[i + 1];
const o3 = uint8[i + 2];
const v1 = (o1 << 4) | (o2 >> 4);
const v2 = ((o2 & 0b1111) << 8) | o3;
out += table2[v1] + table2[v2];
}
if (!extraLength)
return out;
if (extraLength === 1) {
const o1 = uint8[baseLength];
out += table2[o1 << 4] + EE;
}
else {
const o1 = uint8[baseLength];
const o2 = uint8[baseLength + 1];
const v1 = (o1 << 4) | (o2 >> 4);
const v2 = (o2 & 0b1111) << 2;
out += table2[v1] + table[v2] + E;
}
return out;
};
};
exports.createToBase64 = createToBase64;
//# sourceMappingURL=createToBase64.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"createToBase64.js","sourceRoot":"","sources":["../src/createToBase64.ts"],"names":[],"mappings":";;;AAAA,oDAA+C;AAC/C,2CAAqC;AAE9B,MAAM,cAAc,GAAG,CAAC,QAAgB,oBAAQ,EAAE,MAAc,GAAG,EAAE,EAAE;IAC5E,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAE7E,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC9B,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,KAAK,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;QACvB,KAAK,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,GAAG,GAAG,IAAA,iBAAO,EAAC,EAAE,GAAG,EAAE,CAAC,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;IAED,MAAM,CAAC,GAAW,GAAG,CAAC;IACtB,MAAM,EAAE,GAAW,IAAA,iBAAO,EAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAEtC,OAAO,CAAC,KAAiB,EAAE,MAAc,EAAU,EAAE;QACnD,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,MAAM,WAAW,GAAG,MAAM,G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AAC,GAAG,CAAC,CAAC;QACpC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAzCW,QAAA,cAAc,kBAyCzB"}

View File

@@ -0,0 +1 @@
export declare const createToBase64Bin: (chars?: string, pad?: string) => (uint8: Uint8Array, start: number, length: number, dest: DataView, offset: number) => number;

View File

@@ -0,0 +1,62 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createToBase64Bin = void 0;
const constants_1 = require("./constants");
const createToBase64Bin = (chars = constants_1.alphabet, pad = '=') => {
if (chars.length !== 64)
throw new Error('chars must be 64 characters long');
const table = chars.split('').map((c) => c.charCodeAt(0));
const table2 = [];
for (const c1 of table) {
for (const c2 of table) {
const two = (c1 << 8) + c2;
table2.push(two);
}
}
const doAddPadding = pad.length === 1;
const E = doAddPadding ? pad.charCodeAt(0) : 0;
const EE = doAddPadding ? (E << 8) | E : 0;
return (uint8, start, length, dest, offset) => {
const extraLength = length % 3;
const baseLength = length - extraLength;
for (; start < baseLength; start += 3) {
const o1 = uint8[start];
const o2 = uint8[start + 1];
const o3 = uint8[start + 2];
const v1 = (o1 << 4) | (o2 >> 4);
const v2 = ((o2 & 0b1111) << 8) | o3;
dest.setInt32(offset, (table2[v1] << 16) + table2[v2]);
offset += 4;
}
if (extraLength === 1) {
const o1 = uint8[baseLength];
if (doAddPadding) {
dest.setInt32(offset, (table2[o1 << 4] << 16) + EE);
offset += 4;
}
else {
dest.setInt16(offset, table2[o1 << 4]);
offset += 2;
}
}
else if (extraLength) {
const o1 = uint8[baseLength];
const o2 = uint8[baseLength + 1];
const v1 = (o1 << 4) | (o2 >> 4);
const v2 = (o2 & 0b1111) << 2;
if (doAddPadding) {
dest.setInt32(offset, (table2[v1] << 16) + (table[v2] << 8) + E);
offset += 4;
}
else {
dest.setInt16(offset, table2[v1]);
offset += 2;
dest.setInt8(offset, table[v2]);
offset += 1;
}
}
return offset;
};
};
exports.createToBase64Bin = createToBase64Bin;
//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M,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;YACjC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;YAC9B,IAAI,YAAY,EAAE,CAAC;gBACjB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;gBACjE,MAAM,IAAI,CAAC,CAAC;YACd,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;gBAClC,MAAM,IAAI,CAAC,CAAC;gBACZ,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;gBAChC,MAAM,IAAI,CAAC,CAAC;YACd,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC,CAAC;AAvDW,QAAA,iBAAiB,qBAuD5B"}

View File

@@ -0,0 +1 @@
export declare const createToBase64BinUint8: (chars?: string, pad?: string) => (uint8: Uint8Array, start: number, length: number, dest: Uint8Array, offset: number) => number;

View File

@@ -0,0 +1,59 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createToBase64BinUint8 = void 0;
const constants_1 = require("./constants");
const createToBase64BinUint8 = (chars = constants_1.alphabet, pad = '=') => {
if (chars.length !== 64)
throw new Error('chars must be 64 characters long');
const table = chars.split('').map((c) => c.charCodeAt(0));
const table2 = [];
for (const c1 of table) {
for (const c2 of table) {
const two = (c1 << 8) + c2;
table2.push(two);
}
}
const PAD = pad.length === 1 ? pad.charCodeAt(0) : 0;
return (uint8, start, length, dest, offset) => {
const extraLength = length % 3;
const baseLength = length - extraLength;
for (; start < baseLength; start += 3) {
const o1 = uint8[start];
const o2 = uint8[start + 1];
const o3 = uint8[start + 2];
const v1 = (o1 << 4) | (o2 >> 4);
const v2 = ((o2 & 0b1111) << 8) | o3;
let u16 = table2[v1];
dest[offset++] = u16 >> 8;
dest[offset++] = u16;
u16 = table2[v2];
dest[offset++] = u16 >> 8;
dest[offset++] = u16;
}
if (extraLength === 1) {
const o1 = uint8[baseLength];
const u16 = table2[o1 << 4];
dest[offset++] = u16 >> 8;
dest[offset++] = u16;
if (PAD) {
dest[offset++] = PAD;
dest[offset++] = PAD;
}
}
else if (extraLength) {
const o1 = uint8[baseLength];
const o2 = uint8[baseLength + 1];
const v1 = (o1 << 4) | (o2 >> 4);
const v2 = (o2 & 0b1111) << 2;
const u16 = table2[v1];
dest[offset++] = u16 >> 8;
dest[offset++] = u16;
dest[offset++] = table[v2];
if (PAD)
dest[offset++] = PAD;
}
return offset;
};
};
exports.createToBase64BinUint8 = createToBase64BinUint8;
//# sourceMappingURL=createToBase64BinUint8.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"createToBase64BinUint8.js","sourceRoot":"","sources":["../src/createToBase64BinUint8.ts"],"names":[],"mappings":";;;AAAA,2CAAqC;AAE9B,MAAM,sBAAsB,GAAG,CAAC,QAAgB,oBAAQ,EAAE,MAAc,GAAG,EAAE,EAAE;IACpF,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAE7E,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1D,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,KAAK,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;QACvB,KAAK,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,GAAG,GA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com/base64/lib/fromBase64.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export declare const fromBase64: (encoded: string) => Uint8Array;

12
node_modules/@jsonjoy.com/base64/lib/fromBase64.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromBase64 = void 0;
const bufferToUint8Array_1 = require("./util/buffers/bufferToUint8Array");
const constants_1 = require("./constants");
const createFromBase64_1 = require("./createFromBase64");
const fromBase64Cpp = constants_1.hasBuffer ? (encoded) => (0, bufferToUint8Array_1.bufferToUint8Array)(Buffer.from(encoded, 'base64')) : null;
const fromBase64Native = (0, createFromBase64_1.createFromBase64)();
exports.fromBase64 = !fromBase64Cpp
? fromBase64Native
: (encoded) => (encoded.length > 48 ? fromBase64Cpp(encoded) : fromBase64Native(encoded));
//# sourceMappingURL=fromBase64.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fromBase64.js","sourceRoot":"","sources":["../src/fromBase64.ts"],"names":[],"mappings":";;;AAAA,0EAAqE;AACrE,2CAAsC;AACtC,yDAAoD;AAEpD,MAAM,aAAa,GAAG,qBAAS,CAAC,CAAC,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,uCAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACjH,MAAM,gBAAgB,GAAG,IAAA,mCAAgB,GAAE,CAAC;AAE/B,QAAA,UAAU,GAAG,CAAC,aAAa;IACtC,CAAC,CAAC,gBAAgB;IAClB,CAAC,CAAC,CAAC,OAAe,EAAc,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export declare const fromBase64Bin: (view: DataView, offset: number, length: number) => Uint8Array;

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromBase64Bin = void 0;
const createFromBase64Bin_1 = require("./createFromBase64Bin");
exports.fromBase64Bin = (0, createFromBase64Bin_1.createFromBase64Bin)();
//# sourceMappingURL=fromBase64Bin.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fromBase64Bin.js","sourceRoot":"","sources":["../src/fromBase64Bin.ts"],"names":[],"mappings":";;;AAAA,+DAA0D;AAE7C,QAAA,aAAa,GAAG,IAAA,yCAAmB,GAAE,CAAC"}

View File

@@ -0,0 +1 @@
export declare const fromBase64Url: (encoded: string) => Uint8Array;

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromBase64Url = void 0;
const createFromBase64_1 = require("./createFromBase64");
exports.fromBase64Url = (0, createFromBase64_1.createFromBase64)('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_', true);
//# sourceMappingURL=fromBase64Url.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fromBase64Url.js","sourceRoot":"","sources":["../src/fromBase64Url.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAEvC,QAAA,aAAa,GAAG,IAAA,mCAAgB,EAAC,kEAAkE,EAAE,IAAI,CAAC,CAAC"}

7
node_modules/@jsonjoy.com/base64/lib/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
export * from './createToBase64';
export * from './createToBase64Bin';
export * from './createFromBase64';
export * from './toBase64';
export * from './toBase64Bin';
export * from './fromBase64';
export * from './fromBase64Bin';

11
node_modules/@jsonjoy.com/base64/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./createToBase64"), exports);
tslib_1.__exportStar(require("./createToBase64Bin"), exports);
tslib_1.__exportStar(require("./createFromBase64"), exports);
tslib_1.__exportStar(require("./toBase64"), exports);
tslib_1.__exportStar(require("./toBase64Bin"), exports);
tslib_1.__exportStar(require("./fromBase64"), exports);
tslib_1.__exportStar(require("./fromBase64Bin"), exports);
//# sourceMappingURL=index.js.map

1
node_modules/@jsonjoy.com/base64/lib/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,8DAAoC;AACpC,6DAAmC;AACnC,qDAA2B;AAC3B,wDAA8B;AAC9B,uDAA6B;AAC7B,0DAAgC"}

1
node_modules/@jsonjoy.com/base64/lib/toBase64.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export declare const toBase64: (uint8: Uint8Array) => string;

15
node_modules/@jsonjoy.com/base64/lib/toBase64.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toBase64 = void 0;
const constants_1 = require("./constants");
const createToBase64_1 = require("./createToBase64");
const encodeSmall = (0, createToBase64_1.createToBase64)();
exports.toBase64 = !constants_1.hasBuffer
? (uint8) => encodeSmall(uint8, uint8.length)
: (uint8) => {
const length = uint8.length;
if (length <= 48)
return encodeSmall(uint8, length);
return Buffer.from(uint8).toString('base64');
};
//# sourceMappingURL=toBase64.js.map

1
node_modules/@jsonjoy.com/base64/lib/toBase64.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"toBase64.js","sourceRoot":"","sources":["../src/toBase64.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AACtC,qDAAgD;AAEhD,MAAM,WAAW,GAAG,IAAA,+BAAc,GAAE,CAAC;AAExB,QAAA,QAAQ,GAAG,CAAC,qBAAS;IAChC,CAAC,CAAC,CAAC,KAAiB,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC;IACzD,CAAC,CAAC,CAAC,KAAiB,EAAU,EAAE;QAC5B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,MAAM,IAAI,EAAE;YAAE,OAAO,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACpD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export declare const toBase64Bin: (uint8: Uint8Array, start: number, length: number, dest: DataView, offset: number) => number;

6
node_modules/@jsonjoy.com/base64/lib/toBase64Bin.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toBase64Bin = void 0;
const createToBase64Bin_1 = require("./createToBase64Bin");
exports.toBase64Bin = (0, createToBase64Bin_1.createToBase64Bin)();
//# sourceMappingURL=toBase64Bin.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"toBase64Bin.js","sourceRoot":"","sources":["../src/toBase64Bin.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAEzC,QAAA,WAAW,GAAG,IAAA,qCAAiB,GAAE,CAAC"}

View File

@@ -0,0 +1 @@
export declare const toBase64Url: (uint8: Uint8Array, length: number) => string;

6
node_modules/@jsonjoy.com/base64/lib/toBase64Url.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toBase64Url = void 0;
const createToBase64_1 = require("./createToBase64");
exports.toBase64Url = (0, createToBase64_1.createToBase64)('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_', '');
//# sourceMappingURL=toBase64Url.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"toBase64Url.js","sourceRoot":"","sources":["../src/toBase64Url.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAEnC,QAAA,WAAW,GAAG,IAAA,+BAAc,EAAC,kEAAkE,EAAE,EAAE,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export declare const b: (...args: number[]) => Uint8Array;

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.b = void 0;
const b = (...args) => new Uint8Array(args);
exports.b = b;
//# sourceMappingURL=b.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"b.js","sourceRoot":"","sources":["../../../src/util/buffers/b.ts"],"names":[],"mappings":";;;AAAO,MAAM,CAAC,GAAG,CAAC,GAAG,IAAc,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;AAAhD,QAAA,CAAC,KAA+C"}

View File

@@ -0,0 +1,2 @@
/// <reference types="node" />
export declare const bufferToUint8Array: (buf: Buffer) => Uint8Array;

View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bufferToUint8Array = void 0;
const bufferToUint8Array = (buf) => new Uint8Array(buf.buffer, buf.byteOffset, buf.length);
exports.bufferToUint8Array = bufferToUint8Array;
//# sourceMappingURL=bufferToUint8Array.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"bufferToUint8Array.js","sourceRoot":"","sources":["../../../src/util/buffers/bufferToUint8Array.ts"],"names":[],"mappings":";;;AAAO,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAc,EAAE,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;AAAzG,QAAA,kBAAkB,sBAAuF"}

View File

@@ -0,0 +1 @@
export declare const copy: <T extends Uint8Array>(arr: T) => T;

View File

@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.copy = void 0;
const copy = (arr) => {
const dupe = new Uint8Array(arr.length);
dupe.set(arr);
return dupe;
};
exports.copy = copy;
//# sourceMappingURL=copy.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../../src/util/buffers/copy.ts"],"names":[],"mappings":";;;AAAO,MAAM,IAAI,GAAG,CAAuB,GAAM,EAAK,EAAE;IACtD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,CAAM,CAAC;IAC7C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACd,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAJW,QAAA,IAAI,QAIf"}

View File

@@ -0,0 +1 @@
export declare const flatstr: (s: string) => string;

View File

@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.flatstr = void 0;
const flatstr = (s) => {
s | 0;
Number(s);
return s;
};
exports.flatstr = flatstr;
//# sourceMappingURL=flatstr.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"flatstr.js","sourceRoot":"","sources":["../../../src/util/strings/flatstr.ts"],"names":[],"mappings":";;;AAAO,MAAM,OAAO,GAAG,CAAC,CAAS,EAAU,EAAE;IACrC,CAAE,GAAG,CAAC,CAAC;IACb,MAAM,CAAC,CAAC,CAAC,CAAC;IACV,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB"}

109
node_modules/@jsonjoy.com/base64/package.json generated vendored Normal file
View File

@@ -0,0 +1,109 @@
{
"name": "@jsonjoy.com/base64",
"private": false,
"publishConfig": {
"access": "public"
},
"version": "1.1.2",
"description": "High-performance Base64 encoder and decoder",
"author": {
"name": "streamich",
"url": "https://github.com/streamich"
},
"homepage": "https://github.com/jsonjoy-com/base64",
"repository": "jsonjoy-com/base64",
"license": "Apache-2.0",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/streamich"
},
"keywords": [
"base64",
"base64url",
"base64-url",
"base64urlsafe",
"base64url-safe"
],
"engines": {
"node": ">=10.0"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"typings": "lib/index.d.ts",
"files": [
"LICENSE",
"lib/"
],
"scripts": {
"prettier": "prettier --ignore-path .gitignore --write \"src/**/*.{ts,tsx,js,jsx}\"",
"prettier:check": "prettier --ignore-path .gitignore --list-different 'src/**/*.{ts,tsx,js,jsx}'",
"lint": "yarn tslint",
"tslint": "tslint 'src/**/*.{js,jsx,ts,tsx}' -t verbose --project .",
"clean": "rimraf lib typedocs coverage gh-pages yarn-error.log",
"build": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib",
"jest": "node -r ts-node/register ./node_modules/.bin/jest",
"test": "jest --maxWorkers 7",
"test:ci": "yarn jest --maxWorkers 3 --no-cache",
"coverage": "yarn test --collectCoverage",
"typedoc": "typedoc",
"build:pages": "rimraf gh-pages && mkdir -p gh-pages && cp -r typedocs/* gh-pages && cp -r coverage gh-pages/coverage",
"deploy:pages": "gh-pages -d gh-pages",
"publish-coverage-and-typedocs": "yarn typedoc && yarn coverage && yarn build:pages && yarn deploy:pages"
},
"peerDependencies": {
"tslib": "2"
},
"dependencies": {},
"devDependencies": {
"@types/benchmark": "^2.1.2",
"@types/jest": "^29.5.12",
"base64-js": "^1.5.1",
"benchmark": "^2.1.4",
"jest": "^29.7.0",
"js-base64": "^3.7.2",
"prettier": "^3.2.5",
"pretty-quick": "^3.1.3",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"tslint": "^6.1.3",
"tslint-config-common": "^1.6.2",
"typedoc": "^0.25.12",
"typescript": "^5.4.4"
},
"jest": {
"verbose": true,
"testEnvironmentOptions": {
"url": "http://localhost/"
},
"setupFiles": [
"<rootDir>/src/__tests__/setup.js"
],
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"transformIgnorePatterns": [],
"testRegex": ".*/(__tests__|__jest__|demo)/.*\\.(test|spec)\\.ts$"
},
"prettier": {
"arrowParens": "always",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false
},
"release": {
"branches": [
"master",
"next"
]
}
}