Add comprehensive installation and setup documentation

- Add GETTING_STARTED.md with quick start guide and development modes
- Add INSTALL.sh automated installation script
- Add INSTALLATION_CHECKLIST.md, INSTALLATION_SUCCESS.md, and INSTALLATION_SUMMARY.md
- Add QUICK_REFERENCE.md for common commands
- Add SETUP_GUIDE.md with detailed setup instructions
- Update README.md with improved project overview
- Add did-wallet app dependencies and node_modules
This commit is contained in:
Dorian
2026-01-27 17:18:21 +00:00
parent a81f655133
commit 0d073fa89e
22658 changed files with 4494151 additions and 6 deletions
+44
View File
@@ -0,0 +1,44 @@
/**
* @packageDocumentation
*
* The final batch may be smaller than the max.
*
* @example
*
* ```javascript
* import batch from 'it-batch'
* import all from 'it-all'
*
* // This can also be an iterator, generator, etc
* const values = [0, 1, 2, 3, 4]
* const batchSize = 2
*
* const result = all(batch(values, batchSize))
*
* console.info(result) // [0, 1], [2, 3], [4]
* ```
*
* Async sources must be awaited:
*
* ```javascript
* import batch from 'it-batch'
* import all from 'it-all'
*
* const values = async function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const batchSize = 2
* const result = await all(batch(values(), batchSize))
*
* console.info(result) // [0, 1], [2, 3], [4]
* ```
*/
/**
* Takes an (async) iterable that emits things and returns an async iterable that
* emits those things in fixed-sized batches
*/
declare function batch<T>(source: Iterable<T>, size?: number): Generator<T[], void, undefined>;
declare function batch<T>(source: Iterable<T> | AsyncIterable<T>, size?: number): AsyncGenerator<T[], void, undefined>;
export default batch;
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAMH;;;GAGG;AACH,iBAAS,KAAK,CAAE,CAAC,EAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AACxF,iBAAS,KAAK,CAAE,CAAC,EAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;AA+DhH,eAAe,KAAK,CAAA"}
+86
View File
@@ -0,0 +1,86 @@
/**
* @packageDocumentation
*
* The final batch may be smaller than the max.
*
* @example
*
* ```javascript
* import batch from 'it-batch'
* import all from 'it-all'
*
* // This can also be an iterator, generator, etc
* const values = [0, 1, 2, 3, 4]
* const batchSize = 2
*
* const result = all(batch(values, batchSize))
*
* console.info(result) // [0, 1], [2, 3], [4]
* ```
*
* Async sources must be awaited:
*
* ```javascript
* import batch from 'it-batch'
* import all from 'it-all'
*
* const values = async function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const batchSize = 2
* const result = await all(batch(values(), batchSize))
*
* console.info(result) // [0, 1], [2, 3], [4]
* ```
*/
function isAsyncIterable(thing) {
return thing[Symbol.asyncIterator] != null;
}
function batch(source, size = 1) {
size = Number(size);
if (isAsyncIterable(source)) {
return (async function* () {
let things = [];
if (size < 1) {
size = 1;
}
if (size !== Math.round(size)) {
throw new Error('Batch size must be an integer');
}
for await (const thing of source) {
things.push(thing);
while (things.length >= size) {
yield things.slice(0, size);
things = things.slice(size);
}
}
while (things.length > 0) {
yield things.slice(0, size);
things = things.slice(size);
}
}());
}
return (function* () {
let things = [];
if (size < 1) {
size = 1;
}
if (size !== Math.round(size)) {
throw new Error('Batch size must be an integer');
}
for (const thing of source) {
things.push(thing);
while (things.length >= size) {
yield things.slice(0, size);
things = things.slice(size);
}
}
while (things.length > 0) {
yield things.slice(0, size);
things = things.slice(size);
}
}());
}
export default batch;
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA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