diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 934b1b41..d821af46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,11 +65,19 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 + + - name: Deploy html docs + env: + GH_TOKEN: ${{ secrets.PLUTO_GITHUB }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + npm run docs-html + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - # Upload entire repository - path: './packages/database/coverage' + path: './docs-html' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v3 \ No newline at end of file diff --git a/.gitignore b/.gitignore index c60c5bdc..1f8d887c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ build .npmrc prism-db *.tgz +docs-html diff --git a/README.md b/README.md index ba9557f3..62632dd8 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ We are not going to stop here but ensure that our SDK can be used in any platfor ## QA & Documentation | Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | -| ![Statements](https://img.shields.io/badge/statements-95.8%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-92.66%25-brightgreen.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-86.66%25-yellow.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-95.8%25-brightgreen.svg?style=flat) | +| ![Statements](https://img.shields.io/badge/statements-92.45%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-91.44%25-brightgreen.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-83.87%25-yellow.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-92.45%25-brightgreen.svg?style=flat) | ### Documentation diff --git a/docs/classes/Database.md b/docs/classes/Database.md index 318a7ab2..8d34c353 100644 --- a/docs/classes/Database.md +++ b/docs/classes/Database.md @@ -82,7 +82,7 @@ preferred underlying storage technology, most appropriate for your use case. #### Defined in -[index.ts:99](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L99) +[index.ts:99](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L99) ## Accessors @@ -123,7 +123,7 @@ await db.credentialmetadatas.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:133](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L133) +[index.ts:133](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L133) ___ @@ -164,7 +164,7 @@ await db.credentials.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:229](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L229) +[index.ts:229](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L229) ___ @@ -205,7 +205,7 @@ await db.didpairs.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:197](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L197) +[index.ts:197](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L197) ___ @@ -246,7 +246,7 @@ await db.dids.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:293](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L293) +[index.ts:293](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L293) ___ @@ -287,7 +287,7 @@ await db.linksecrets.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:165](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L165) +[index.ts:165](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L165) ___ @@ -328,7 +328,7 @@ await db.mediators.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:261](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L261) +[index.ts:261](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L261) ___ @@ -369,7 +369,7 @@ await db.messages.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:357](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L357) +[index.ts:357](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L357) ___ @@ -410,7 +410,7 @@ await db.privatekeys.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:325](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L325) +[index.ts:325](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L325) ## Methods @@ -424,7 +424,7 @@ await db.privatekeys.remove({selector: {id: {$eq: 1}}}) #### Defined in -[index.ts:101](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L101) +[index.ts:101](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L101) ___ @@ -441,7 +441,7 @@ and then destroy the database itself. #### Defined in -[index.ts:365](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L365) +[index.ts:365](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L365) ___ @@ -465,7 +465,7 @@ Domain.Pluto.fetchCredentialMetadata #### Defined in -[index.ts:1187](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1187) +[index.ts:1187](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1187) ___ @@ -483,7 +483,7 @@ Domain.Pluto.getAllCredentials #### Defined in -[index.ts:1137](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1137) +[index.ts:1137](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1137) ___ @@ -505,7 +505,7 @@ Domain.Pluto.getAllDidPairs #### Defined in -[index.ts:751](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L751) +[index.ts:751](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L751) ___ @@ -523,7 +523,7 @@ Domain.Pluto.getAllMediators #### Defined in -[index.ts:1132](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1132) +[index.ts:1132](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1132) ___ @@ -545,7 +545,7 @@ Domain.Pluto.getAllMessages #### Defined in -[index.ts:469](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L469) +[index.ts:469](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L469) ___ @@ -569,7 +569,7 @@ Domain.Pluto.getAllMessagesByDID #### Defined in -[index.ts:945](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L945) +[index.ts:945](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L945) ___ @@ -594,7 +594,7 @@ Domain.Pluto.getAllMessagesByFromToDID #### Defined in -[index.ts:1058](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1058) +[index.ts:1058](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1058) ___ @@ -619,7 +619,7 @@ Domain.Pluto.getAllMessagesOfType #### Defined in -[index.ts:1027](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1027) +[index.ts:1027](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1027) ___ @@ -637,7 +637,7 @@ Domain.Pluto.getAllMessagesReceived #### Defined in -[index.ts:978](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L978) +[index.ts:978](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L978) ___ @@ -661,7 +661,7 @@ Domain.Pluto.getAllMessagesReceivedFrom #### Defined in -[index.ts:1010](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1010) +[index.ts:1010](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1010) ___ @@ -679,7 +679,7 @@ Domain.Pluto.getAllMessagesSent #### Defined in -[index.ts:963](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L963) +[index.ts:963](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L963) ___ @@ -703,7 +703,7 @@ Domain.Pluto.getAllMessagesSentTo #### Defined in -[index.ts:993](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L993) +[index.ts:993](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L993) ___ @@ -721,7 +721,7 @@ Domain.Pluto.getAllPeerDIDs #### Defined in -[index.ts:1095](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1095) +[index.ts:1095](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1095) ___ @@ -739,7 +739,7 @@ Domain.Pluto.getAllPrismDIDs #### Defined in -[index.ts:853](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L853) +[index.ts:853](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L853) ___ @@ -763,7 +763,7 @@ Domain.Pluto.getDIDInfoByAlias #### Defined in -[index.ts:918](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L918) +[index.ts:918](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L918) ___ @@ -787,7 +787,7 @@ Domain.Pluto.getDIDInfoByDID #### Defined in -[index.ts:885](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L885) +[index.ts:885](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L885) ___ @@ -811,7 +811,7 @@ Domain.Pluto.getDIDPrivateKeyByID #### Defined in -[index.ts:829](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L829) +[index.ts:829](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L829) ___ @@ -835,7 +835,7 @@ Domain.Pluto.getDIDPrivateKeysByDID #### Defined in -[index.ts:817](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L817) +[index.ts:817](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L817) ___ @@ -859,7 +859,7 @@ Domain.Pluto.getLinkSecret #### Defined in -[index.ts:1144](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1144) +[index.ts:1144](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1144) ___ @@ -887,7 +887,7 @@ Domain.Pluto.getMessage #### Defined in -[index.ts:411](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L411) +[index.ts:411](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L411) ___ @@ -915,7 +915,7 @@ Domain.Pluto.getPairByDID #### Defined in -[index.ts:765](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L765) +[index.ts:765](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L765) ___ @@ -939,7 +939,7 @@ Domain.Pluto.getPairByName #### Defined in -[index.ts:789](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L789) +[index.ts:789](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L789) ___ @@ -963,7 +963,7 @@ Domain.Pluto.getPrismDIDKeyPathIndex #### Defined in -[index.ts:1079](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1079) +[index.ts:1079](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1079) ___ @@ -981,7 +981,7 @@ Domain.Pluto.getPrismLastKeyPathIndex #### Defined in -[index.ts:1087](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1087) +[index.ts:1087](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1087) ___ @@ -1001,7 +1001,7 @@ Domain.Pluto.start #### Defined in -[index.ts:481](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L481) +[index.ts:481](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L481) ___ @@ -1025,7 +1025,7 @@ Domain.Pluto.storeCredential #### Defined in -[index.ts:1122](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1122) +[index.ts:1122](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1122) ___ @@ -1050,7 +1050,7 @@ Domain.Pluto.storeCredentialMetadata #### Defined in -[index.ts:1176](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1176) +[index.ts:1176](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1176) ___ @@ -1078,7 +1078,7 @@ Domain.Pluto.storeDIDPair #### Defined in -[index.ts:693](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L693) +[index.ts:693](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L693) ___ @@ -1103,7 +1103,7 @@ Domain.Pluto.storeLinkSecret #### Defined in -[index.ts:1166](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L1166) +[index.ts:1166](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L1166) ___ @@ -1129,7 +1129,7 @@ Domain.Pluto.storeMediator #### Defined in -[index.ts:840](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L840) +[index.ts:840](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L840) ___ @@ -1157,7 +1157,7 @@ Domain.Pluto.storeMessage #### Defined in -[index.ts:430](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L430) +[index.ts:430](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L430) ___ @@ -1185,7 +1185,7 @@ Domain.Pluto.storeMessages #### Defined in -[index.ts:459](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L459) +[index.ts:459](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L459) ___ @@ -1212,7 +1212,7 @@ Domain.Pluto.storePeerDID #### Defined in -[index.ts:651](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L651) +[index.ts:651](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L651) ___ @@ -1242,7 +1242,7 @@ Domain.Pluto.storePrismDID #### Defined in -[index.ts:624](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L624) +[index.ts:624](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L624) ___ @@ -1271,7 +1271,7 @@ Domain.Pluto.storePrivateKeys #### Defined in -[index.ts:712](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L712) +[index.ts:712](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L712) ___ @@ -1299,4 +1299,4 @@ Database #### Defined in -[index.ts:378](https://github.com/elribonazo/pluto-encrypted/blob/96fb8d7/packages/database/src/index.ts#L378) +[index.ts:378](https://github.com/elribonazo/pluto-encrypted/blob/7f66dfa/packages/database/src/index.ts#L378) diff --git a/package-lock.json b/package-lock.json index 878840b8..6cdca079 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "devDependencies": { "@babel/preset-env": "^7.22.20", "@babel/preset-typescript": "^7.22.15", + "@bndynet/typedoc-theme": "^0.0.1", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-inject": "^5.0.3", "@rollup/plugin-json": "^6.0.0", @@ -1930,6 +1931,18 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@bndynet/typedoc-theme": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@bndynet/typedoc-theme/-/typedoc-theme-0.0.1.tgz", + "integrity": "sha512-8krJC83rXALS9Awt5j2OMbUMEQX41WbVmBHYbllW4RrNLiG3ei/iw87b6KPvK6/fq8h7BNwIumd9fzhX8/XBAQ==", + "dev": true, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "typedoc": "^0.24.1" + } + }, "node_modules/@colors/colors": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", @@ -26263,7 +26276,7 @@ }, "packages/database": { "name": "@pluto-encrypted/database", - "version": "1.0.7", + "version": "1.0.9", "license": "Apache-2.0", "dependencies": { "rxdb": "^14.17.0", @@ -26287,7 +26300,7 @@ }, "packages/indexdb": { "name": "@pluto-encrypted/indexdb", - "version": "1.0.2", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { "rxdb": "^14.17.0", @@ -26296,7 +26309,7 @@ }, "packages/inmemory": { "name": "@pluto-encrypted/inmemory", - "version": "1.0.2", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { "rxdb": "^14.17.0", @@ -26305,7 +26318,7 @@ }, "packages/leveldb": { "name": "@pluto-encrypted/leveldb", - "version": "1.0.2", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { "level": "^6.0.1", diff --git a/package.json b/package.json index 191bf613..682527a6 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "coverage": "npx lerna run --stream coverage", "test": "npx lerna run --stream test", "docs": "npx lerna run --stream docs", + "docs-html": "npx lerna run --stream docs-html", "release": "npx lerna exec --concurrency 1 -- semantic-release -e semantic-release-monorepo --tag-format='${LERNA_PACKAGE_NAME}-v\\${version}'" }, "author": "elribonazo@gmail.com", @@ -18,6 +19,7 @@ "devDependencies": { "@babel/preset-env": "^7.22.20", "@babel/preset-typescript": "^7.22.15", + "@bndynet/typedoc-theme": "^0.0.1", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-inject": "^5.0.3", "@rollup/plugin-json": "^6.0.0", diff --git a/packages/database/.gitignore b/packages/database/.gitignore index c294ec98..6e68e506 100644 --- a/packages/database/.gitignore +++ b/packages/database/.gitignore @@ -2,4 +2,5 @@ node_modules junit.xml lcov.info build -.npmrc \ No newline at end of file +.npmrc +coverage/*.json \ No newline at end of file diff --git a/packages/database/coverage/base.css b/packages/database/coverage/base.css deleted file mode 100644 index f418035b..00000000 --- a/packages/database/coverage/base.css +++ /dev/null @@ -1,224 +0,0 @@ -body, html { - margin:0; padding: 0; - height: 100%; -} -body { - font-family: Helvetica Neue, Helvetica, Arial; - font-size: 14px; - color:#333; -} -.small { font-size: 12px; } -*, *:after, *:before { - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - } -h1 { font-size: 20px; margin: 0;} -h2 { font-size: 14px; } -pre { - font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin: 0; - padding: 0; - -moz-tab-size: 2; - -o-tab-size: 2; - tab-size: 2; -} -a { color:#0074D9; text-decoration:none; } -a:hover { text-decoration:underline; } -.strong { font-weight: bold; } -.space-top1 { padding: 10px 0 0 0; } -.pad2y { padding: 20px 0; } -.pad1y { padding: 10px 0; } -.pad2x { padding: 0 20px; } -.pad2 { padding: 20px; } -.pad1 { padding: 10px; } -.space-left2 { padding-left:55px; } -.space-right2 { padding-right:20px; } -.center { text-align:center; } -.clearfix { display:block; } -.clearfix:after { - content:''; - display:block; - height:0; - clear:both; - visibility:hidden; - } -.fl { float: left; } -@media only screen and (max-width:640px) { - .col3 { width:100%; max-width:100%; } - .hide-mobile { display:none!important; } -} - -.quiet { - color: #7f7f7f; - color: rgba(0,0,0,0.5); -} -.quiet a { opacity: 0.7; } - -.fraction { - font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 10px; - color: #555; - background: #E8E8E8; - padding: 4px 5px; - border-radius: 3px; - vertical-align: middle; -} - -div.path a:link, div.path a:visited { color: #333; } -table.coverage { - border-collapse: collapse; - margin: 10px 0 0 0; - padding: 0; -} - -table.coverage td { - margin: 0; - padding: 0; - vertical-align: top; -} -table.coverage td.line-count { - text-align: right; - padding: 0 5px 0 20px; -} -table.coverage td.line-coverage { - text-align: right; - padding-right: 10px; - min-width:20px; -} - -table.coverage td span.cline-any { - display: inline-block; - padding: 0 5px; - width: 100%; -} -.missing-if-branch { - display: inline-block; - margin-right: 5px; - border-radius: 3px; - position: relative; - padding: 0 4px; - background: #333; - color: yellow; -} - -.skip-if-branch { - display: none; - margin-right: 10px; - position: relative; - padding: 0 4px; - background: #ccc; - color: white; -} -.missing-if-branch .typ, .skip-if-branch .typ { - color: inherit !important; -} -.coverage-summary { - border-collapse: collapse; - width: 100%; -} -.coverage-summary tr { border-bottom: 1px solid #bbb; } -.keyline-all { border: 1px solid #ddd; } -.coverage-summary td, .coverage-summary th { padding: 10px; } -.coverage-summary tbody { border: 1px solid #bbb; } -.coverage-summary td { border-right: 1px solid #bbb; } -.coverage-summary td:last-child { border-right: none; } -.coverage-summary th { - text-align: left; - font-weight: normal; - white-space: nowrap; -} -.coverage-summary th.file { border-right: none !important; } -.coverage-summary th.pct { } -.coverage-summary th.pic, -.coverage-summary th.abs, -.coverage-summary td.pct, -.coverage-summary td.abs { text-align: right; } -.coverage-summary td.file { white-space: nowrap; } -.coverage-summary td.pic { min-width: 120px !important; } -.coverage-summary tfoot td { } - -.coverage-summary .sorter { - height: 10px; - width: 7px; - display: inline-block; - margin-left: 0.5em; - background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; -} -.coverage-summary .sorted .sorter { - background-position: 0 -20px; -} -.coverage-summary .sorted-desc .sorter { - background-position: 0 -10px; -} -.status-line { height: 10px; } -/* yellow */ -.cbranch-no { background: yellow !important; color: #111; } -/* dark red */ -.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } -.low .chart { border:1px solid #C21F39 } -.highlighted, -.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ - background: #C21F39 !important; -} -/* medium red */ -.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } -/* light red */ -.low, .cline-no { background:#FCE1E5 } -/* light green */ -.high, .cline-yes { background:rgb(230,245,208) } -/* medium green */ -.cstat-yes { background:rgb(161,215,106) } -/* dark green */ -.status-line.high, .high .cover-fill { background:rgb(77,146,33) } -.high .chart { border:1px solid rgb(77,146,33) } -/* dark yellow (gold) */ -.status-line.medium, .medium .cover-fill { background: #f9cd0b; } -.medium .chart { border:1px solid #f9cd0b; } -/* light yellow */ -.medium { background: #fff4c2; } - -.cstat-skip { background: #ddd; color: #111; } -.fstat-skip { background: #ddd; color: #111 !important; } -.cbranch-skip { background: #ddd !important; color: #111; } - -span.cline-neutral { background: #eaeaea; } - -.coverage-summary td.empty { - opacity: .5; - padding-top: 4px; - padding-bottom: 4px; - line-height: 1; - color: #888; -} - -.cover-fill, .cover-empty { - display:inline-block; - height: 12px; -} -.chart { - line-height: 0; -} -.cover-empty { - background: white; -} -.cover-full { - border-right: none !important; -} -pre.prettyprint { - border: none !important; - padding: 0 !important; - margin: 0 !important; -} -.com { color: #999 !important; } -.ignore-none { color: #999; font-weight: normal; } - -.wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -48px; -} -.footer, .push { - height: 48px; -} diff --git a/packages/database/coverage/block-navigation.js b/packages/database/coverage/block-navigation.js deleted file mode 100644 index cc121302..00000000 --- a/packages/database/coverage/block-navigation.js +++ /dev/null @@ -1,87 +0,0 @@ -/* eslint-disable */ -var jumpToCode = (function init() { - // Classes of code we would like to highlight in the file view - var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; - - // Elements to highlight in the file listing view - var fileListingElements = ['td.pct.low']; - - // We don't want to select elements that are direct descendants of another match - var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` - - // Selecter that finds elements on the page to which we can jump - var selector = - fileListingElements.join(', ') + - ', ' + - notSelector + - missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` - - // The NodeList of matching elements - var missingCoverageElements = document.querySelectorAll(selector); - - var currentIndex; - - function toggleClass(index) { - missingCoverageElements - .item(currentIndex) - .classList.remove('highlighted'); - missingCoverageElements.item(index).classList.add('highlighted'); - } - - function makeCurrent(index) { - toggleClass(index); - currentIndex = index; - missingCoverageElements.item(index).scrollIntoView({ - behavior: 'smooth', - block: 'center', - inline: 'center' - }); - } - - function goToPrevious() { - var nextIndex = 0; - if (typeof currentIndex !== 'number' || currentIndex === 0) { - nextIndex = missingCoverageElements.length - 1; - } else if (missingCoverageElements.length > 1) { - nextIndex = currentIndex - 1; - } - - makeCurrent(nextIndex); - } - - function goToNext() { - var nextIndex = 0; - - if ( - typeof currentIndex === 'number' && - currentIndex < missingCoverageElements.length - 1 - ) { - nextIndex = currentIndex + 1; - } - - makeCurrent(nextIndex); - } - - return function jump(event) { - if ( - document.getElementById('fileSearch') === document.activeElement && - document.activeElement != null - ) { - // if we're currently focused on the search input, we don't want to navigate - return; - } - - switch (event.which) { - case 78: // n - case 74: // j - goToNext(); - break; - case 66: // b - case 75: // k - case 80: // p - goToPrevious(); - break; - } - }; -})(); -window.addEventListener('keydown', jumpToCode); diff --git a/packages/database/coverage/coverage-summary.json b/packages/database/coverage/coverage-summary.json deleted file mode 100644 index 2d2bb4f7..00000000 --- a/packages/database/coverage/coverage-summary.json +++ /dev/null @@ -1,13 +0,0 @@ -{"total": {"lines":{"total":1932,"covered":1851,"skipped":0,"pct":95.8},"statements":{"total":1932,"covered":1851,"skipped":0,"pct":95.8},"functions":{"total":60,"covered":52,"skipped":0,"pct":86.66},"branches":{"total":150,"covered":139,"skipped":0,"pct":92.66},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/rollup/rollup.mjs": {"lines":{"total":5,"covered":0,"skipped":0,"pct":0},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":5,"covered":0,"skipped":0,"pct":0},"branches":{"total":1,"covered":0,"skipped":0,"pct":0}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/index.ts": {"lines":{"total":1204,"covered":1176,"skipped":0,"pct":97.67},"functions":{"total":52,"covered":46,"skipped":0,"pct":88.46},"statements":{"total":1204,"covered":1176,"skipped":0,"pct":97.67},"branches":{"total":117,"covered":109,"skipped":0,"pct":93.16}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/types.ts": {"lines":{"total":45,"covered":0,"skipped":0,"pct":0},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":45,"covered":0,"skipped":0,"pct":0},"branches":{"total":1,"covered":0,"skipped":0,"pct":0}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/Credential.ts": {"lines":{"total":116,"covered":116,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":116,"covered":116,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/CredentialRequestMetadata.ts": {"lines":{"total":79,"covered":79,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":79,"covered":79,"skipped":0,"pct":100},"branches":{"total":1,"covered":1,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/DID.ts": {"lines":{"total":45,"covered":45,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":45,"covered":45,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/DIDPair.ts": {"lines":{"total":33,"covered":33,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":33,"covered":33,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/LinkSecret.ts": {"lines":{"total":48,"covered":48,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":48,"covered":48,"skipped":0,"pct":100},"branches":{"total":1,"covered":1,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/Mediator.ts": {"lines":{"total":56,"covered":56,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":56,"covered":56,"skipped":0,"pct":100},"branches":{"total":1,"covered":1,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/Message.ts": {"lines":{"total":128,"covered":128,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":128,"covered":128,"skipped":0,"pct":100},"branches":{"total":1,"covered":1,"skipped":0,"pct":100}} -,"/home/runner/work/pluto-encrypted/pluto-encrypted/packages/database/src/schemas/PrivateKey.ts": {"lines":{"total":173,"covered":170,"skipped":0,"pct":98.26},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":173,"covered":170,"skipped":0,"pct":98.26},"branches":{"total":23,"covered":22,"skipped":0,"pct":95.65}} -} diff --git a/packages/database/coverage/favicon.png b/packages/database/coverage/favicon.png deleted file mode 100644 index c1525b81..00000000 Binary files a/packages/database/coverage/favicon.png and /dev/null differ diff --git a/packages/database/coverage/index.html b/packages/database/coverage/index.html deleted file mode 100644 index 736f14f3..00000000 --- a/packages/database/coverage/index.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - -
-- Press n or j to go to the next uncovered block, b, p or k for the previous block. -
- -File | -- | Statements | -- | Branches | -- | Functions | -- | Lines | -- |
---|---|---|---|---|---|---|---|---|---|
rollup | -
-
- |
- 0% | -0/5 | -0% | -0/1 | -0% | -0/1 | -0% | -0/5 | -
src | -
-
- |
- 94.15% | -1176/1249 | -92.37% | -109/118 | -86.79% | -46/53 | -94.15% | -1176/1249 | -
src/schemas | -
-
- |
- 99.55% | -675/678 | -96.77% | -30/31 | -100% | -6/6 | -99.55% | -675/678 | -