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
+81
View File
@@ -0,0 +1,81 @@
# it-all
[![codecov](https://img.shields.io/codecov/c/github/achingbrain/it.svg?style=flat-square)](https://codecov.io/gh/achingbrain/it)
[![CI](https://img.shields.io/github/actions/workflow/status/achingbrain/it/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/achingbrain/it/actions/workflows/js-test-and-release.yml?query=branch%3Amain)
> Collects all values from an (async) iterable and returns them as an array
# About
<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->
For when you need a one-liner to collect iterable values.
## Example
```javascript
import all from 'it-all'
// This can also be an iterator, etc
const values = function * () {
yield * [0, 1, 2, 3, 4]
}
const arr = all(values)
console.info(arr) // 0, 1, 2, 3, 4
```
Async sources must be awaited:
```javascript
const values = async function * () {
yield * [0, 1, 2, 3, 4]
}
const arr = await all(values())
console.info(arr) // 0, 1, 2, 3, 4
```
# Install
```console
$ npm i it-all
```
## Browser `<script>` tag
Loading this module through a script tag will make its exports available as `ItAll` in the global namespace.
```html
<script src="https://unpkg.com/it-all/dist/index.min.js"></script>
```
# API Docs
- <https://achingbrain.github.io/it/modules/it_all.html>
# License
Licensed under either of
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-all/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-all/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
# Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
+4
View File
@@ -0,0 +1,4 @@
(function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.ItAll = factory()}(typeof self !== 'undefined' ? self : this, function () {
"use strict";var ItAll=(()=>{var e=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var c=(n,r)=>{for(var t in r)e(n,t,{get:r[t],enumerable:!0})},l=(n,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of s(r))!u.call(n,o)&&o!==t&&e(n,o,{get:()=>r[o],enumerable:!(a=f(r,o))||a.enumerable});return n};var y=n=>l(e({},"__esModule",{value:!0}),n);var h={};c(h,{default:()=>b});function i(n){return n[Symbol.asyncIterator]!=null}function p(n){if(i(n))return(async()=>{let t=[];for await(let a of n)t.push(a);return t})();let r=[];for(let t of n)r.push(t);return r}var b=p;return y(h);})();
return ItAll}));
//# sourceMappingURL=index.min.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../src/index.ts"],
"sourcesContent": ["/**\n * @packageDocumentation\n *\n * For when you need a one-liner to collect iterable values.\n *\n * @example\n *\n * ```javascript\n * import all from 'it-all'\n *\n * // This can also be an iterator, etc\n * const values = function * () {\n * yield * [0, 1, 2, 3, 4]\n * }\n *\n * const arr = all(values)\n *\n * console.info(arr) // 0, 1, 2, 3, 4\n * ```\n *\n * Async sources must be awaited:\n *\n * ```javascript\n * const values = async function * () {\n * yield * [0, 1, 2, 3, 4]\n * }\n *\n * const arr = await all(values())\n *\n * console.info(arr) // 0, 1, 2, 3, 4\n * ```\n */\n\nfunction isAsyncIterable <T> (thing: any): thing is AsyncIterable<T> {\n return thing[Symbol.asyncIterator] != null\n}\n\n/**\n * Collects all values from an (async) iterable and returns them as an array\n */\nfunction all <T> (source: Iterable<T>): T[]\nfunction all <T> (source: Iterable<T> | AsyncIterable<T>): Promise<T[]>\nfunction all <T> (source: Iterable<T> | AsyncIterable<T>): Promise<T[]> | T[] {\n if (isAsyncIterable(source)) {\n return (async () => {\n const arr = []\n\n for await (const entry of source) {\n arr.push(entry)\n }\n\n return arr\n })()\n }\n\n const arr = []\n\n for (const entry of source) {\n arr.push(entry)\n }\n\n return arr\n}\n\nexport default all\n"],
"mappings": ";ybAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAiCA,SAASC,EAAqBC,EAAU,CACtC,OAAOA,EAAM,OAAO,aAAa,GAAK,IACxC,CAOA,SAASC,EAASC,EAAsC,CACtD,GAAIH,EAAgBG,CAAM,EACxB,OAAQ,SAAW,CACjB,IAAMC,EAAM,CAAA,EAEZ,cAAiBC,KAASF,EACxBC,EAAI,KAAKC,CAAK,EAGhB,OAAOD,CACT,GAAE,EAGJ,IAAMA,EAAM,CAAA,EAEZ,QAAWC,KAASF,EAClBC,EAAI,KAAKC,CAAK,EAGhB,OAAOD,CACT,CAEA,IAAAL,EAAeG",
"names": ["index_exports", "__export", "index_default", "isAsyncIterable", "thing", "all", "source", "arr", "entry"]
}
+39
View File
@@ -0,0 +1,39 @@
/**
* @packageDocumentation
*
* For when you need a one-liner to collect iterable values.
*
* @example
*
* ```javascript
* import all from 'it-all'
*
* // This can also be an iterator, etc
* const values = function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const arr = all(values)
*
* console.info(arr) // 0, 1, 2, 3, 4
* ```
*
* Async sources must be awaited:
*
* ```javascript
* const values = async function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const arr = await all(values())
*
* console.info(arr) // 0, 1, 2, 3, 4
* ```
*/
/**
* Collects all values from an (async) iterable and returns them as an array
*/
declare function all<T>(source: Iterable<T>): T[];
declare function all<T>(source: Iterable<T> | AsyncIterable<T>): Promise<T[]>;
export default all;
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAMH;;GAEG;AACH,iBAAS,GAAG,CAAE,CAAC,EAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAA;AAC3C,iBAAS,GAAG,CAAE,CAAC,EAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAA;AAuBvE,eAAe,GAAG,CAAA"}
+53
View File
@@ -0,0 +1,53 @@
/**
* @packageDocumentation
*
* For when you need a one-liner to collect iterable values.
*
* @example
*
* ```javascript
* import all from 'it-all'
*
* // This can also be an iterator, etc
* const values = function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const arr = all(values)
*
* console.info(arr) // 0, 1, 2, 3, 4
* ```
*
* Async sources must be awaited:
*
* ```javascript
* const values = async function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const arr = await all(values())
*
* console.info(arr) // 0, 1, 2, 3, 4
* ```
*/
function isAsyncIterable(thing) {
return thing[Symbol.asyncIterator] != null;
}
function all(source) {
if (isAsyncIterable(source)) {
return (async () => {
const arr = [];
for await (const entry of source) {
arr.push(entry);
}
return arr;
})();
}
const arr = [];
for (const entry of source) {
arr.push(entry);
}
return arr;
}
export default all;
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,SAAS,eAAe,CAAM,KAAU;IACtC,OAAO,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,IAAI,CAAA;AAC5C,CAAC;AAOD,SAAS,GAAG,CAAM,MAAsC;IACtD,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,IAAI,EAAE;YACjB,MAAM,GAAG,GAAG,EAAE,CAAA;YAEd,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBACjC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACjB,CAAC;YAED,OAAO,GAAG,CAAA;QACZ,CAAC,CAAC,EAAE,CAAA;IACN,CAAC;IAED,MAAM,GAAG,GAAG,EAAE,CAAA;IAEd,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACjB,CAAC;IAED,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,eAAe,GAAG,CAAA"}
+142
View File
@@ -0,0 +1,142 @@
{
"name": "it-all",
"version": "3.0.9",
"description": "Collects all values from an (async) iterable and returns them as an array",
"author": "Alex Potsides <alex@achingbrain.net>",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/achingbrain/it/tree/main/packages/it-all#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/achingbrain/it.git"
},
"bugs": {
"url": "https://github.com/achingbrain/it/issues"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"breaking": true,
"release": "major"
},
{
"revert": true,
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "deps",
"release": "patch"
},
{
"scope": "no-release",
"release": false
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Trivial Changes"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "test",
"section": "Tests"
}
]
}
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json"
]
}
]
]
},
"scripts": {
"build": "aegir build",
"lint": "aegir lint",
"dep-check": "aegir dep-check",
"clean": "aegir clean",
"test": "aegir test",
"test:node": "aegir test -t node --cov",
"test:chrome": "aegir test -t browser --cov",
"test:chrome-webworker": "aegir test -t webworker",
"test:firefox": "aegir test -t browser -- --browser firefox",
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
"release": "aegir release"
},
"devDependencies": {
"aegir": "^47.0.16"
}
}
+65
View File
@@ -0,0 +1,65 @@
/**
* @packageDocumentation
*
* For when you need a one-liner to collect iterable values.
*
* @example
*
* ```javascript
* import all from 'it-all'
*
* // This can also be an iterator, etc
* const values = function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const arr = all(values)
*
* console.info(arr) // 0, 1, 2, 3, 4
* ```
*
* Async sources must be awaited:
*
* ```javascript
* const values = async function * () {
* yield * [0, 1, 2, 3, 4]
* }
*
* const arr = await all(values())
*
* console.info(arr) // 0, 1, 2, 3, 4
* ```
*/
function isAsyncIterable <T> (thing: any): thing is AsyncIterable<T> {
return thing[Symbol.asyncIterator] != null
}
/**
* Collects all values from an (async) iterable and returns them as an array
*/
function all <T> (source: Iterable<T>): T[]
function all <T> (source: Iterable<T> | AsyncIterable<T>): Promise<T[]>
function all <T> (source: Iterable<T> | AsyncIterable<T>): Promise<T[]> | T[] {
if (isAsyncIterable(source)) {
return (async () => {
const arr = []
for await (const entry of source) {
arr.push(entry)
}
return arr
})()
}
const arr = []
for (const entry of source) {
arr.push(entry)
}
return arr
}
export default all