fix(core): Fixed module name inconsistencies and documentation links

This commit is contained in:
Philipp Kunz 2024-07-01 16:43:21 +02:00
parent 2499578bb1
commit 46c235b82b
18 changed files with 7137 additions and 236 deletions

View File

@ -120,7 +120,7 @@ pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @gitzone/tsdoc
- npmci command npm install -g @git.zone/tsdoc
- npmci npm prepare
- npmci npm install
- npmci command tsdoc

4
.vscode/launch.json vendored
View File

@ -8,7 +8,7 @@
"args": [
"${relativeFile}"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"runtimeArgs": ["-r", "@git.zone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
@ -20,7 +20,7 @@
"args": [
"test/test.ts"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"runtimeArgs": ["-r", "@git.zone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"

19
changelog.md Normal file
View File

@ -0,0 +1,19 @@
# Changelog
## 2024-07-01 - 1.0.5 - fix(core)
Fixed module name inconsistencies and documentation links
- Corrected module names in package.json and VSCode launch configuration.
- Updated npm package name from '@pushrocks' to '@push.rocks' in readme.md and package.json.
- Fixed test imports and improved test scripts.
- Added updated TypeScript configuration file tsconfig.json.
## 2020-11-17 - 1.0.4 - No significant changes
No significant changes made in this version update.
## 2020-11-16 - 1.0.3 to 1.0.1 - Core Updates
Routine maintenance and updates in the core functionality.
- fix(core): update

View File

@ -6,7 +6,7 @@
"gitscope": "mojoio",
"gitrepo": "medium",
"shortDescription": "an unofficial medium.com API package",
"npmPackagename": "@pushrocks/medium",
"npmPackagename": "@push.rocks/medium",
"license": "MIT",
"projectDomain": "mojo.io"
}

370
package-lock.json generated
View File

@ -11,11 +11,11 @@
"dev": true,
"requires": {
"@apiglobal/typedrequest-interfaces": "^1.0.15",
"@pushrocks/isounique": "^1.0.4",
"@pushrocks/lik": "^4.0.17",
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/webrequest": "^2.0.12"
"@push.rocks/isounique": "^1.0.4",
"@push.rocks/lik": "^4.0.17",
"@push.rocks/smartdelay": "^2.0.10",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/webrequest": "^2.0.12"
}
},
"@apiglobal/typedrequest-interfaces": {
@ -1121,22 +1121,22 @@
"to-fast-properties": "^2.0.0"
}
},
"@gitzone/tsbuild": {
"@git.zone/tsbuild": {
"version": "2.1.25",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.25.tgz",
"integrity": "sha512-KtesoQEm96x0/x1800R3pcj06RcYTdqwBhG9oje+jQW4qZs/bnUirWZXkRMSLAK92cVm899KzZtYkq/fKga2+A==",
"dev": true,
"requires": {
"@pushrocks/early": "^3.0.6",
"@pushrocks/smartcli": "^3.0.12",
"@pushrocks/smartfile": "^8.0.0",
"@pushrocks/smartlog": "^2.0.36",
"@pushrocks/smartpath": "^4.0.3",
"@pushrocks/smartpromise": "^3.0.6",
"@push.rocks/early": "^3.0.6",
"@push.rocks/smartcli": "^3.0.12",
"@push.rocks/smartfile": "^8.0.0",
"@push.rocks/smartlog": "^2.0.36",
"@push.rocks/smartpath": "^4.0.3",
"@push.rocks/smartpromise": "^3.0.6",
"typescript": "^3.9.7"
}
},
"@gitzone/tsbundle": {
"@git.zone/tsbundle": {
"version": "1.0.78",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.78.tgz",
"integrity": "sha512-QcjzUPYfp7w2uaNom2eOFiBBPabVOqmaI7Cun1P+BBB+a8JwNlpyNOwDY6cPr2MEW2t9Picbiz9yyqkG1qYrtw==",
@ -1148,12 +1148,12 @@
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/runtime": "^7.11.2",
"@pushrocks/early": "^3.0.6",
"@pushrocks/smartcli": "^3.0.12",
"@pushrocks/smartfile": "^8.0.0",
"@pushrocks/smartlog": "^2.0.36",
"@pushrocks/smartlog-destination-local": "^8.0.8",
"@pushrocks/smartparcel": "^1.0.5",
"@push.rocks/early": "^3.0.6",
"@push.rocks/smartcli": "^3.0.12",
"@push.rocks/smartfile": "^8.0.0",
"@push.rocks/smartlog": "^2.0.36",
"@push.rocks/smartlog-destination-local": "^8.0.8",
"@push.rocks/smartparcel": "^1.0.5",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^8.4.0",
@ -1168,28 +1168,28 @@
"typescript": "^3.9.7"
}
},
"@gitzone/tsrun": {
"@git.zone/tsrun": {
"version": "1.2.12",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.12.tgz",
"integrity": "sha512-xR+Ry3dj1L4fR72cYgEAmlE9colXXSPNg0i2jRJFudGO7ZqeGn+mPDOXmg/g7RbEd1wa9uJepgsOy4IlC9JB+g==",
"dev": true,
"requires": {
"@pushrocks/smartfile": "^7.0.12",
"@push.rocks/smartfile": "^7.0.12",
"ts-node": "^8.10.2",
"typescript": "^3.9.3"
},
"dependencies": {
"@pushrocks/smartfile": {
"@push.rocks/smartfile": {
"version": "7.0.12",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-7.0.12.tgz",
"integrity": "sha512-/4T4K07WqOXGvQQ/VFyRMUd8kN1RdqQgmrqHjZE/vMDLz7RYsqU9FlEN6OGX1G1E6pR9IdHnT4ClXPlvzClHYg==",
"dev": true,
"requires": {
"@pushrocks/smarthash": "^2.1.6",
"@pushrocks/smartmime": "^1.0.3",
"@pushrocks/smartpath": "^4.0.1",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrequest": "^1.1.47",
"@push.rocks/smarthash": "^2.1.6",
"@push.rocks/smartmime": "^1.0.3",
"@push.rocks/smartpath": "^4.0.1",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartrequest": "^1.1.47",
"@types/fs-extra": "^8.1.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.6",
@ -1233,23 +1233,23 @@
}
}
},
"@gitzone/tstest": {
"@git.zone/tstest": {
"version": "1.0.52",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.52.tgz",
"integrity": "sha512-9n6mhGAd1MKMb4lcXstJvoG9bIl+mb+M9wdajbFe/jzv9q62P5RL9pSdyW4Yk8I7ObJmyggBvr8cLaOUsaqzAQ==",
"dev": true,
"requires": {
"@gitzone/tsbundle": "^1.0.78",
"@gitzone/tsrun": "^1.2.12",
"@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/smartbrowser": "^1.0.17",
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartexpress": "^3.0.76",
"@pushrocks/smartfile": "^8.0.0",
"@pushrocks/smartlog": "^2.0.39",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartshell": "^2.0.25",
"@pushrocks/tapbundle": "^3.2.9",
"@git.zone/tsbundle": "^1.0.78",
"@git.zone/tsrun": "^1.2.12",
"@push.rocks/consolecolor": "^2.0.1",
"@push.rocks/smartbrowser": "^1.0.17",
"@push.rocks/smartdelay": "^2.0.10",
"@push.rocks/smartexpress": "^3.0.76",
"@push.rocks/smartfile": "^8.0.0",
"@push.rocks/smartlog": "^2.0.39",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartshell": "^2.0.25",
"@push.rocks/tapbundle": "^3.2.9",
"@types/figures": "^3.0.1",
"figures": "^3.0.0"
}
@ -1343,7 +1343,7 @@
"physical-cpu-count": "^2.0.0"
}
},
"@pushrocks/consolecolor": {
"@push.rocks/consolecolor": {
"version": "2.0.1",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fconsolecolor/-/consolecolor-2.0.1.tgz",
"integrity": "sha512-iOFCHVeFZ2OywbdwSxVI4/wokkcLrXVdHLgvMmkNhJ220eeLgjNZWx3EJo3vNW3zq5ybCSCUIq0878djBxrWpw==",
@ -1352,56 +1352,56 @@
"ansi-256-colors": "^1.1.0"
}
},
"@pushrocks/early": {
"@push.rocks/early": {
"version": "3.0.6",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fearly/-/early-3.0.6.tgz",
"integrity": "sha512-ifUU0bbR/p3Vpe+nMg3LYHCPvM9QmRpL83pEYBvZ8KjbkrCxeXTJuNkeO3T8NGfeEL/q+SS8a9oEnpzoT/SGvw==",
"dev": true,
"requires": {
"@gitzone/tsbuild": "^2.1.24",
"@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/smartpromise": "^3.0.6"
"@git.zone/tsbuild": "^2.1.24",
"@push.rocks/consolecolor": "^2.0.1",
"@push.rocks/smartpromise": "^3.0.6"
}
},
"@pushrocks/isounique": {
"@push.rocks/isounique": {
"version": "1.0.4",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fisounique/-/isounique-1.0.4.tgz",
"integrity": "sha512-P1xLsuA1+8LQpoWCo2nP2vIQXKGUl5wDWU6CD7xTDZc3uw0He5V/qCPHM5zpIZsS7IuZOxDDpWb7aFveB11tXw=="
},
"@pushrocks/lik": {
"@push.rocks/lik": {
"version": "4.0.17",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2flik/-/lik-4.0.17.tgz",
"integrity": "sha512-K5dX3k3i7iVxFMJ+IYwJRljewukJCc2zgj6+88R18/8SajVAq7ITOl3/FTbmEPFCJv5rl/LQ9FtcMynWlwSlzQ==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartmatch": "^1.0.7",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrx": "^2.0.17",
"@pushrocks/smarttime": "^3.0.24",
"@push.rocks/smartdelay": "^2.0.10",
"@push.rocks/smartmatch": "^1.0.7",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartrx": "^2.0.17",
"@push.rocks/smarttime": "^3.0.24",
"@types/minimatch": "^3.0.3",
"symbol-tree": "^3.2.4"
}
},
"@pushrocks/qenv": {
"@push.rocks/qenv": {
"version": "4.0.10",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fqenv/-/qenv-4.0.10.tgz",
"integrity": "sha512-bQknJrGa9zXDTmohi2W0fi/gZ5H36J1138WsRgdR2u/9D/0gwjBasL0kqBokH9sddcLSYe/H9itGFxbT7i7MCg==",
"requires": {
"@pushrocks/smartfile": "^7.0.12",
"@pushrocks/smartlog": "^2.0.26"
"@push.rocks/smartfile": "^7.0.12",
"@push.rocks/smartlog": "^2.0.26"
},
"dependencies": {
"@pushrocks/smartfile": {
"@push.rocks/smartfile": {
"version": "7.0.12",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-7.0.12.tgz",
"integrity": "sha512-/4T4K07WqOXGvQQ/VFyRMUd8kN1RdqQgmrqHjZE/vMDLz7RYsqU9FlEN6OGX1G1E6pR9IdHnT4ClXPlvzClHYg==",
"requires": {
"@pushrocks/smarthash": "^2.1.6",
"@pushrocks/smartmime": "^1.0.3",
"@pushrocks/smartpath": "^4.0.1",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrequest": "^1.1.47",
"@push.rocks/smarthash": "^2.1.6",
"@push.rocks/smartmime": "^1.0.3",
"@push.rocks/smartpath": "^4.0.1",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartrequest": "^1.1.47",
"@types/fs-extra": "^8.1.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.6",
@ -1441,66 +1441,66 @@
}
}
},
"@pushrocks/smartbrowser": {
"@push.rocks/smartbrowser": {
"version": "1.0.17",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartbrowser/-/smartbrowser-1.0.17.tgz",
"integrity": "sha512-tTULtPZX8/uEqmiGy1l2mGISvL3R6VYvzt64qrUvzIOI2kWmPammnY5IumNQQKVpYqkunCWUpEGeV9gYdixrqA==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.9",
"@pushrocks/smartpdf": "^2.0.2",
"@pushrocks/smartpuppeteer": "^1.0.15",
"@pushrocks/smartunique": "^3.0.3"
"@push.rocks/smartdelay": "^2.0.9",
"@push.rocks/smartpdf": "^2.0.2",
"@push.rocks/smartpuppeteer": "^1.0.15",
"@push.rocks/smartunique": "^3.0.3"
}
},
"@pushrocks/smartcache": {
"@push.rocks/smartcache": {
"version": "1.0.13",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartcache/-/smartcache-1.0.13.tgz",
"integrity": "sha512-Yc4W0zlvKya1/25v40ZJnNLj/l8AxpxUZq+Ch361frSUpITgGiRpNwk1/VAmlbEqwj/WJ+wPsQ47eS+afWgKQw==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.6",
"@pushrocks/smarterror": "^2.0.1",
"@pushrocks/smarthash": "^2.1.6",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smarttime": "^3.0.12"
"@push.rocks/smartdelay": "^2.0.6",
"@push.rocks/smarterror": "^2.0.1",
"@push.rocks/smarthash": "^2.1.6",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smarttime": "^3.0.12"
}
},
"@pushrocks/smartcli": {
"@push.rocks/smartcli": {
"version": "3.0.12",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartcli/-/smartcli-3.0.12.tgz",
"integrity": "sha512-iRaLxCvdl3jTHr6uJqxzPtFAfQVv3jXhNsz4D2bZfrzqd+vpl0oJJdEj6AOF6wAG0Gyrgbmq+x7nukFf3Bly3A==",
"dev": true,
"requires": {
"@pushrocks/lik": "^4.0.13",
"@pushrocks/smartlog": "^2.0.21",
"@pushrocks/smartparam": "^1.1.6",
"@pushrocks/smartpromise": "^3.0.6",
"@push.rocks/lik": "^4.0.13",
"@push.rocks/smartlog": "^2.0.21",
"@push.rocks/smartparam": "^1.1.6",
"@push.rocks/smartpromise": "^3.0.6",
"@types/yargs": "^15.0.5",
"rxjs": "^6.5.5",
"yargs": "^15.3.1"
}
},
"@pushrocks/smartdelay": {
"@push.rocks/smartdelay": {
"version": "2.0.10",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.10.tgz",
"integrity": "sha512-JOFpEfYiKnqcQYoUrL/jDyBDZUmlgJNm5U30MQQ3f+yci+rlFnMY5VvBBEYn5WgoX0ilwU+E15mtpDWhXcmhzg==",
"dev": true,
"requires": {
"@pushrocks/smartpromise": "^3.0.6"
"@push.rocks/smartpromise": "^3.0.6"
}
},
"@pushrocks/smartenv": {
"@push.rocks/smartenv": {
"version": "4.0.16",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartenv/-/smartenv-4.0.16.tgz",
"integrity": "sha512-NwYMONDc/NjY6BGvzZzLMteF83kPQTF9BCGfqWbktUUruEtdqL+nGw6ecoLFi2b5u7XPb8jK1TKIcSvpNJ7SyA==",
"dev": true,
"requires": {
"@pushrocks/smartpromise": "^3.0.6",
"@push.rocks/smartpromise": "^3.0.6",
"@types/node": "^14.11.2"
}
},
"@pushrocks/smarterror": {
"@push.rocks/smarterror": {
"version": "2.0.1",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmarterror/-/smarterror-2.0.1.tgz",
"integrity": "sha512-3OrF5me+/sy5VgwR/tfCqs7qhb0Ywzgn8tTThRUZnCGas0aindISzMiW7cIro3RlFykmtPmdTztC9Ostu2ioeA==",
@ -1510,28 +1510,28 @@
"make-error-cause": "^2.2.0"
}
},
"@pushrocks/smartexit": {
"@push.rocks/smartexit": {
"version": "1.0.15",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexit/-/smartexit-1.0.15.tgz",
"integrity": "sha512-pvJBmF13spcDN+O8rSpYlKBOObyfW+omZKQr3hhSMT1VHMEYV8e/njsA19Cg4C2DfLPv+cRFFgPn27zJpleRsQ==",
"dev": true,
"requires": {
"@pushrocks/lik": "^3.0.5",
"@pushrocks/smartdelay": "^2.0.3",
"@pushrocks/smartlog-source-ora": "^1.0.7"
"@push.rocks/lik": "^3.0.5",
"@push.rocks/smartdelay": "^2.0.3",
"@push.rocks/smartlog-source-ora": "^1.0.7"
},
"dependencies": {
"@pushrocks/lik": {
"@push.rocks/lik": {
"version": "3.0.19",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2flik/-/lik-3.0.19.tgz",
"integrity": "sha512-N9uTtQmTJ/iZ/V7LMCKbVx/ZAmP+b8uId0pxV9Au9T0Ulu9wcg3vNpyTQARgdWfG+tI9Qc0NHgOEa9H5mbDcDA==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.6",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrx": "^2.0.5",
"@pushrocks/smarttime": "^3.0.12",
"@pushrocks/smartunique": "^3.0.1",
"@push.rocks/smartdelay": "^2.0.6",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartrx": "^2.0.5",
"@push.rocks/smarttime": "^3.0.12",
"@push.rocks/smartunique": "^3.0.1",
"@types/minimatch": "^3.0.3",
"minimatch": "^3.0.4",
"symbol-tree": "^3.2.4"
@ -1539,22 +1539,22 @@
}
}
},
"@pushrocks/smartexpress": {
"@push.rocks/smartexpress": {
"version": "3.0.97",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpress/-/smartexpress-3.0.97.tgz",
"integrity": "sha512-mg7sAanDRpDgUGvUNY3fvaG8RWDN45JQIiv7d71O5Li8MACOpEGThJ05400RzHZ51EgXWwAUstikXsgN+iXUNg==",
"dev": true,
"requires": {
"@apiglobal/typedrequest": "^1.0.53",
"@pushrocks/lik": "^4.0.17",
"@pushrocks/smartfeed": "^1.0.9",
"@pushrocks/smartfile": "^8.0.8",
"@pushrocks/smartmanifest": "^1.0.8",
"@pushrocks/smartmime": "^1.0.3",
"@pushrocks/smartpromise": "^3.1.3",
"@pushrocks/smartrequest": "^1.1.51",
"@pushrocks/smartsitemap": "^1.0.11",
"@pushrocks/smarttime": "^3.0.37",
"@push.rocks/lik": "^4.0.17",
"@push.rocks/smartfeed": "^1.0.9",
"@push.rocks/smartfile": "^8.0.8",
"@push.rocks/smartmanifest": "^1.0.8",
"@push.rocks/smartmime": "^1.0.3",
"@push.rocks/smartpromise": "^3.1.3",
"@push.rocks/smartrequest": "^1.1.51",
"@push.rocks/smartsitemap": "^1.0.11",
"@push.rocks/smarttime": "^3.0.37",
"@tsclass/tsclass": "^3.0.29",
"@types/cors": "^2.8.8",
"@types/express": "^4.17.9",
@ -1567,7 +1567,7 @@
"helmet": "^4.2.0"
}
},
"@pushrocks/smartfeed": {
"@push.rocks/smartfeed": {
"version": "1.0.9",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfeed/-/smartfeed-1.0.9.tgz",
"integrity": "sha512-ntkvG/uGw8X7NO93LRuCAH7FkTVSRih1gLM8z/gilIQh6L5pMX9plnlx9w8RvspKgU4YMfl2Lw0kXUXzr79Cwg==",
@ -1578,19 +1578,19 @@
"rss-parser": "^3.9.0"
}
},
"@pushrocks/smartfile": {
"@push.rocks/smartfile": {
"version": "8.0.8",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-8.0.8.tgz",
"integrity": "sha512-htZgOZSZESnonq/k/LMhXoy8iKHBYLNXBbw0p3ZUxbfSs+dGsMfRGqJN7+QfByjg+BOKn1PrDtCNxJUi0e7gAA==",
"dev": true,
"requires": {
"@pushrocks/smartfile-interfaces": "^1.0.7",
"@pushrocks/smarthash": "^2.1.6",
"@pushrocks/smartjson": "^4.0.3",
"@pushrocks/smartmime": "^1.0.3",
"@pushrocks/smartpath": "^4.0.3",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrequest": "^1.1.51",
"@push.rocks/smartfile-interfaces": "^1.0.7",
"@push.rocks/smarthash": "^2.1.6",
"@push.rocks/smartjson": "^4.0.3",
"@push.rocks/smartmime": "^1.0.3",
"@push.rocks/smartpath": "^4.0.3",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartrequest": "^1.1.51",
"@types/fs-extra": "^9.0.1",
"@types/glob": "^7.1.3",
"@types/js-yaml": "^3.12.5",
@ -1599,24 +1599,24 @@
"js-yaml": "^3.14.0"
}
},
"@pushrocks/smartfile-interfaces": {
"@push.rocks/smartfile-interfaces": {
"version": "1.0.7",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile-interfaces/-/smartfile-interfaces-1.0.7.tgz",
"integrity": "sha512-C/v9Scbx1J+ByMk3YBZrlLRYXdObty/Uz/h6kSZqsO8ghYuT9l7OVpEcyduiSVPakaMi6YnzfME3Nfs3oLj//Q==",
"dev": true
},
"@pushrocks/smarthash": {
"@push.rocks/smarthash": {
"version": "2.1.6",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmarthash/-/smarthash-2.1.6.tgz",
"integrity": "sha512-TYa3wECYkeDoE8SomxcCJFg5Kt4+G4MtNMu3yATJCCoPLJIbyV1CwUvYuFYkkce2W4ZvH9h/N6dsHc69oI5Jcw==",
"requires": {
"@pushrocks/smartjson": "^3.0.10",
"@pushrocks/smartpromise": "^3.0.6",
"@push.rocks/smartjson": "^3.0.10",
"@push.rocks/smartpromise": "^3.0.6",
"@types/through2": "^2.0.34",
"through2": "^3.0.1"
},
"dependencies": {
"@pushrocks/smartjson": {
"@push.rocks/smartjson": {
"version": "3.0.10",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartjson/-/smartjson-3.0.10.tgz",
"integrity": "sha512-0tBkET2yjmSSIf4DlgeyU8U/J2EshTmQGuMY28EjPq9VvuCFXLh72WmETpA4QqKRMqhWp1+P+RZgnQupW3GQxQ==",
@ -1628,7 +1628,7 @@
}
}
},
"@pushrocks/smartjson": {
"@push.rocks/smartjson": {
"version": "4.0.5",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartjson/-/smartjson-4.0.5.tgz",
"integrity": "sha512-i4kBjZSbs1t8swcAPEdPkDJHci2higzvMIkNUKTgXWrcxUFMuOis/B5huUnnIqg/Td8R+mAdf/B/CMfgjABTlg==",
@ -1641,27 +1641,27 @@
"lodash.clonedeep": "^4.5.0"
}
},
"@pushrocks/smartlog": {
"@push.rocks/smartlog": {
"version": "2.0.39",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog/-/smartlog-2.0.39.tgz",
"integrity": "sha512-fHCoBLwKM+F3jN5nZH6QEcEVWtgyESN+ysT9KLxmM/wrhIibG98yLxp6kwfZZbv6aKmHWbtKEvBmv+Vd4Hfwlg==",
"requires": {
"@pushrocks/isounique": "^1.0.4",
"@pushrocks/smartlog-interfaces": "^2.0.20"
"@push.rocks/isounique": "^1.0.4",
"@push.rocks/smartlog-interfaces": "^2.0.20"
}
},
"@pushrocks/smartlog-destination-local": {
"@push.rocks/smartlog-destination-local": {
"version": "8.0.8",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-destination-local/-/smartlog-destination-local-8.0.8.tgz",
"integrity": "sha512-h6zTJnneX7lFFHeUMIdwGU2ZvbTGpZw6nutdSbx2t4d0OcExeKx3a/BjgKJmM3DGOv29gqLuEPeTHm0Yy95iWg==",
"dev": true,
"requires": {
"@pushrocks/consolecolor": "^2.0.1",
"@pushrocks/smartlog-interfaces": "^2.0.20",
"@pushrocks/smartpromise": "^3.0.6"
"@push.rocks/consolecolor": "^2.0.1",
"@push.rocks/smartlog-interfaces": "^2.0.20",
"@push.rocks/smartpromise": "^3.0.6"
}
},
"@pushrocks/smartlog-interfaces": {
"@push.rocks/smartlog-interfaces": {
"version": "2.0.22",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-interfaces/-/smartlog-interfaces-2.0.22.tgz",
"integrity": "sha512-blvtNLgYz08F5EhftxfzLEkQ3VE9uoXRVQukbVpwJ4Zk0QRkNg2VCkuJu/kkfbtlCEOEOG2HCZDyhbxeEeq0pA==",
@ -1669,13 +1669,13 @@
"@apiglobal/typedrequest-interfaces": "^1.0.15"
}
},
"@pushrocks/smartlog-source-ora": {
"@push.rocks/smartlog-source-ora": {
"version": "1.0.9",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-source-ora/-/smartlog-source-ora-1.0.9.tgz",
"integrity": "sha512-CcFpMJeCZ0kl7Ai6F5wTGlPrsAhjhq38WSg8BRyFxUByQ/Nluy0AhrTb7GbPTLKWMo6sq//zO2Oh0wAzUYHuQg==",
"dev": true,
"requires": {
"@pushrocks/smartlog-interfaces": "^2.0.15",
"@push.rocks/smartlog-interfaces": "^2.0.15",
"ora": "^4.0.4"
},
"dependencies": {
@ -1829,13 +1829,13 @@
}
}
},
"@pushrocks/smartmanifest": {
"@push.rocks/smartmanifest": {
"version": "1.0.8",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartmanifest/-/smartmanifest-1.0.8.tgz",
"integrity": "sha512-inHmTp58Z8xl+c6mdOrfxc9IjUKuqho1i+WUI74G7rn6HwEn3cMd/06R1v80Xlx+95EYWzBwnYtuo7j7DafrdQ==",
"dev": true
},
"@pushrocks/smartmatch": {
"@push.rocks/smartmatch": {
"version": "1.0.7",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartmatch/-/smartmatch-1.0.7.tgz",
"integrity": "sha512-D+lK5HIKO4Kj1Jm/ycKvy1VzDJ3V6ucHqmf5DMBFdm18BrMj2Zb6M7wN8HUKtkfHvOI7ig85JMuANSEyO7kAPg==",
@ -1844,7 +1844,7 @@
"matcher": "^3.0.0"
}
},
"@pushrocks/smartmime": {
"@push.rocks/smartmime": {
"version": "1.0.3",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartmime/-/smartmime-1.0.3.tgz",
"integrity": "sha512-hLOZwwAzYOOFobUmYy4OyjJJgM3Cw4fQQySF0zqTjd7UIMuAi6cighCNB5M68YHmPr1+XZw/UtHDX8z3tYiehg==",
@ -1853,14 +1853,14 @@
"mime-types": "^2.1.26"
}
},
"@pushrocks/smartnetwork": {
"@push.rocks/smartnetwork": {
"version": "1.1.22",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartnetwork/-/smartnetwork-1.1.22.tgz",
"integrity": "sha512-dOiLYuv7Y14haMnnBN2C2CCw1FzCKQ7N/wec3x5yM798cATqduLWbIHekAgMcZXGRUJizoxQn7rQ9U+16IQ9SA==",
"dev": true,
"requires": {
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartstring": "^3.0.18",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartstring": "^3.0.18",
"@types/default-gateway": "^3.0.1",
"default-gateway": "^5.0.5",
"isopen": "^1.3.0",
@ -1869,59 +1869,59 @@
"systeminformation": "^4.26.10"
}
},
"@pushrocks/smartparam": {
"@push.rocks/smartparam": {
"version": "1.1.6",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartparam/-/smartparam-1.1.6.tgz",
"integrity": "sha512-1El/F2QTWYDGy4Nh6vz9Ry1JVg1FEeyexB7Uvi4zHElpXYVxwso6xImRTLj+SW50JAg7nwEZ+ljkzTG9XvnwWA==",
"dev": true,
"requires": {
"@pushrocks/smartpromise": "^3.0.6",
"@push.rocks/smartpromise": "^3.0.6",
"is-promise": "^2.1.0",
"minimatch": "^3.0.4"
}
},
"@pushrocks/smartparcel": {
"@push.rocks/smartparcel": {
"version": "1.0.5",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartparcel/-/smartparcel-1.0.5.tgz",
"integrity": "sha512-FCGjHC6JjvuoSzHoVTaBy+eF3xQlNGeuI/R6Z4OCgepLPFbWSqcbwdHJ1ePVEG1poCSuV4IRz7xll/psAmHjhQ==",
"dev": true,
"requires": {
"@pushrocks/smartpath": "^4.0.3",
"@push.rocks/smartpath": "^4.0.3",
"@types/parcel-bundler": "^1.12.1",
"parcel-bundler": "^1.12.4"
}
},
"@pushrocks/smartpath": {
"@push.rocks/smartpath": {
"version": "4.0.3",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpath/-/smartpath-4.0.3.tgz",
"integrity": "sha512-KWz4DWOrB0sPfk6L4i+CPOo+UK5HXNaLI7ZAaqJe1nEWoDrpyeds1dNDaqVAmSgX4riLGxVpslKH5MnABCPsPg=="
},
"@pushrocks/smartpdf": {
"@push.rocks/smartpdf": {
"version": "2.0.2",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpdf/-/smartpdf-2.0.2.tgz",
"integrity": "sha512-fzKFWCBbmx76h/rStJckx3dGHOgWRuMalBBCLKLtY+KZk4/fT/kL88Bax4dZ3cCGKDaBfSiJNL9CJX7gsHl70w==",
"dev": true,
"requires": {
"@pushrocks/smartfile": "^7.0.6",
"@pushrocks/smartnetwork": "^1.1.14",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartpuppeteer": "^1.0.11",
"@pushrocks/smartunique": "^3.0.1",
"@push.rocks/smartfile": "^7.0.6",
"@push.rocks/smartnetwork": "^1.1.14",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartpuppeteer": "^1.0.11",
"@push.rocks/smartunique": "^3.0.1",
"@types/express": "^4.17.2",
"express": "^4.17.1"
},
"dependencies": {
"@pushrocks/smartfile": {
"@push.rocks/smartfile": {
"version": "7.0.12",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-7.0.12.tgz",
"integrity": "sha512-/4T4K07WqOXGvQQ/VFyRMUd8kN1RdqQgmrqHjZE/vMDLz7RYsqU9FlEN6OGX1G1E6pR9IdHnT4ClXPlvzClHYg==",
"dev": true,
"requires": {
"@pushrocks/smarthash": "^2.1.6",
"@pushrocks/smartmime": "^1.0.3",
"@pushrocks/smartpath": "^4.0.1",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrequest": "^1.1.47",
"@push.rocks/smarthash": "^2.1.6",
"@push.rocks/smartmime": "^1.0.3",
"@push.rocks/smartpath": "^4.0.1",
"@push.rocks/smartpromise": "^3.0.6",
"@push.rocks/smartrequest": "^1.1.47",
"@types/fs-extra": "^8.1.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.6",
@ -1965,72 +1965,72 @@
}
}
},
"@pushrocks/smartpromise": {
"@push.rocks/smartpromise": {
"version": "3.1.3",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpromise/-/smartpromise-3.1.3.tgz",
"integrity": "sha512-KENdm++8uuzxDz1cbUbXtz6InfReP28TYC5zxRgRtwsXh7ZWUkSA+/82IbO97PcSCAfIpg7dwj77G6KGSsTKEQ=="
},
"@pushrocks/smartpuppeteer": {
"@push.rocks/smartpuppeteer": {
"version": "1.0.15",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartpuppeteer/-/smartpuppeteer-1.0.15.tgz",
"integrity": "sha512-hGa8lxQ4yXzLu9/+zin0/KUERo29PUYPumYPAnO8WjU0vRUOmOy2ABSkKfTRl86yiEyFV5tUlf5GPQeg03XNNg==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.6",
"@pushrocks/smartenv": "^4.0.8",
"@push.rocks/smartdelay": "^2.0.6",
"@push.rocks/smartenv": "^4.0.8",
"@types/puppeteer": "^2.0.0",
"puppeteer": "^2.1.1"
}
},
"@pushrocks/smartrequest": {
"@push.rocks/smartrequest": {
"version": "1.1.51",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrequest/-/smartrequest-1.1.51.tgz",
"integrity": "sha512-RJUvo7MEIAm+gFueJrmf8LcpVals5jp7PgOZ+ebGTvDoVwCpor0Z6nmJDOs9ykjFCIvvPhfiterQeb6hJr2uDw==",
"requires": {
"@pushrocks/smartpromise": "^3.0.6",
"@push.rocks/smartpromise": "^3.0.6",
"agentkeepalive": "^4.1.3",
"form-data": "^3.0.0"
}
},
"@pushrocks/smartrx": {
"@push.rocks/smartrx": {
"version": "2.0.19",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrx/-/smartrx-2.0.19.tgz",
"integrity": "sha512-xKuN2qKpewq4LLwQfGRv6+hG+gFjzoKB6uij3M0NpaPcj/BbO3afnbOv+sczGThf/goMxTTKdQRPXYOp8Rt+Cw==",
"dev": true,
"requires": {
"@pushrocks/lik": "^4.0.17",
"@pushrocks/smartpromise": "^3.0.6",
"@push.rocks/lik": "^4.0.17",
"@push.rocks/smartpromise": "^3.0.6",
"rxjs": "^6.6.3"
}
},
"@pushrocks/smartshell": {
"@push.rocks/smartshell": {
"version": "2.0.26",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartshell/-/smartshell-2.0.26.tgz",
"integrity": "sha512-5ynxufz/HogctNARgrKxS9om4zT73uzrYJKTnPTJ4FoU7GU1vCVVDZ2F8CqsdkYxWpKiqtwwoF6l7QBWPUoHiw==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.3",
"@pushrocks/smartexit": "^1.0.15",
"@pushrocks/smartpromise": "^3.0.2",
"@push.rocks/smartdelay": "^2.0.3",
"@push.rocks/smartexit": "^1.0.15",
"@push.rocks/smartpromise": "^3.0.2",
"@types/which": "^1.3.1",
"tree-kill": "^1.2.2",
"which": "^1.3.1"
}
},
"@pushrocks/smartsitemap": {
"@push.rocks/smartsitemap": {
"version": "1.0.11",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartsitemap/-/smartsitemap-1.0.11.tgz",
"integrity": "sha512-IGJ8UASrZKTwszW0coGFEPtYr+gZjbxQBMAzb2pft6VFv3CLIN1RmzgEqcHNlG8Czp125xOoR0mnKKq94XOVKg==",
"dev": true,
"requires": {
"@pushrocks/smartcache": "^1.0.13",
"@pushrocks/smartfeed": "^1.0.5",
"@pushrocks/smartxml": "^1.0.6",
"@pushrocks/smartyaml": "^2.0.5",
"@push.rocks/smartcache": "^1.0.13",
"@push.rocks/smartfeed": "^1.0.5",
"@push.rocks/smartxml": "^1.0.6",
"@push.rocks/smartyaml": "^2.0.5",
"@tsclass/tsclass": "^3.0.25"
}
},
"@pushrocks/smartstring": {
"@push.rocks/smartstring": {
"version": "3.0.18",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartstring/-/smartstring-3.0.18.tgz",
"integrity": "sha512-34Ca5HW6w8fcG2sdbRVDViOZ0vdOHXc/1Qof2KhM5bvWFajU6VASlJjCYNJBrjGg9VCeC2rH6bGIgvd7prSRkg==",
@ -2043,21 +2043,21 @@
"strip-indent": "^3.0.0"
}
},
"@pushrocks/smarttime": {
"@push.rocks/smarttime": {
"version": "3.0.37",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmarttime/-/smarttime-3.0.37.tgz",
"integrity": "sha512-QhucXSSB8vdQkqVzKP/aX23DwZwXG3aUvF2MJ1EruvLcQypK2xFsCoaToXN5j//jG8EBAI0ybXpGzFdx38XqIQ==",
"dev": true,
"requires": {
"@pushrocks/lik": "^4.0.17",
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartpromise": "^3.0.2",
"@push.rocks/lik": "^4.0.17",
"@push.rocks/smartdelay": "^2.0.10",
"@push.rocks/smartpromise": "^3.0.2",
"croner": "^1.1.23",
"dayjs": "^1.9.1",
"is-nan": "^1.3.0"
}
},
"@pushrocks/smartunique": {
"@push.rocks/smartunique": {
"version": "3.0.3",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartunique/-/smartunique-3.0.3.tgz",
"integrity": "sha512-f+c3s2WzzjASoRHyYTLU0kHDVWREg4sZVdi5L42bTA3CTUWNrcGUC62h4wP4U4BiPl3bopTr3LPhClZHJ738oA==",
@ -2077,7 +2077,7 @@
}
}
},
"@pushrocks/smartxml": {
"@push.rocks/smartxml": {
"version": "1.0.6",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartxml/-/smartxml-1.0.6.tgz",
"integrity": "sha512-Cy//pxzdpplqE64h9/sAwvAkUBv9t3Nw9v6k2c+erXH779iOtuyGiiyWqgbRTX1wo2CRhMJqWGJx6xd2Ljq5kw==",
@ -2086,7 +2086,7 @@
"fast-xml-parser": "^3.17.4"
}
},
"@pushrocks/smartyaml": {
"@push.rocks/smartyaml": {
"version": "2.0.5",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartyaml/-/smartyaml-2.0.5.tgz",
"integrity": "sha512-nJGqvJ56vAst5evLqaPYQ4mO5uJVnXVlriyL3D6s89YMUoWGS3qj/jK+V8hDgznFCnd46pNjnc0GfQBCDpZ6eg==",
@ -2096,28 +2096,28 @@
"js-yaml": "^3.14.0"
}
},
"@pushrocks/tapbundle": {
"@push.rocks/tapbundle": {
"version": "3.2.9",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2ftapbundle/-/tapbundle-3.2.9.tgz",
"integrity": "sha512-vtmYL/l7BZvAzySh7cYnnTG6CFMp5zYtowJuMAmqUjhIaQaWW1Tvbrpjp7lVwRXj2JlL/i69KcJ6RVdLItK+rA==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.9",
"@pushrocks/smartenv": "^4.0.10",
"@pushrocks/smartpromise": "^3.0.2",
"@pushrocks/smarttime": "^3.0.19",
"@push.rocks/smartdelay": "^2.0.9",
"@push.rocks/smartenv": "^4.0.10",
"@push.rocks/smartpromise": "^3.0.2",
"@push.rocks/smarttime": "^3.0.19",
"smartchai": "^2.0.1"
}
},
"@pushrocks/webrequest": {
"@push.rocks/webrequest": {
"version": "2.0.13",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fwebrequest/-/webrequest-2.0.13.tgz",
"integrity": "sha512-FNRthRBrBmc3Eu+NRkVrPudbmWMphph/Y15feHo7tUj7Y4MhP0uSy2/95vM3b5LcXQldOEH3GA9SB7VYJ1+VPw==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartenv": "^4.0.15",
"@pushrocks/smartjson": "^4.0.5",
"@push.rocks/smartdelay": "^2.0.10",
"@push.rocks/smartenv": "^4.0.15",
"@push.rocks/smartjson": "^4.0.5",
"node-fetch": "^2.6.1"
}
},
@ -2213,7 +2213,7 @@
"integrity": "sha512-LmFE1efF6gBP0CiAW7MUZKo35Z7DKuLaf1Fp5lqrNC6TKAeoayDi4W1CwPktex9GhyxgLds5Ef0stJ7rEjTFrg==",
"dev": true,
"requires": {
"@pushrocks/tapbundle": "^3.2.9",
"@push.rocks/tapbundle": "^3.2.9",
"type-fest": "^0.16.0"
},
"dependencies": {

View File

@ -5,25 +5,25 @@
"description": "an unofficial medium.com API package",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"author": "Lossless GmbH",
"type": "module",
"author": "Task Venture Capital GmbH",
"license": "MIT",
"scripts": {
"test": "(tstest test/ --web)",
"build": "(tsbuild --web)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.25",
"@gitzone/tsbundle": "^1.0.78",
"@gitzone/tstest": "^1.0.44",
"@pushrocks/tapbundle": "^3.2.9",
"@types/node": "^14.11.2",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
"@git.zone/tsbuild": "^2.1.25",
"@git.zone/tsbundle": "^2.0.8",
"@git.zone/tsrun": "^1.2.49",
"@git.zone/tstest": "^1.0.44",
"@push.rocks/tapbundle": "^5.0.8",
"@types/node": "^20.14.9"
},
"dependencies": {
"@pushrocks/qenv": "^4.0.10",
"@pushrocks/smartpromise": "^3.1.3",
"@pushrocks/smartrequest": "^1.1.51"
"@push.rocks/qenv": "^5.0.2",
"@push.rocks/smartpromise": "^4.0.2",
"@push.rocks/smartrequest": "^2.0.15"
},
"browserslist": [
"last 1 chrome versions"

6807
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

0
readme.hints.md Normal file
View File

View File

@ -2,7 +2,7 @@
an unofficial medium.com API package
## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/medium)
* [npmjs.org (npm package)](https://www.npmjs.com/package/@push.rocks/medium)
* [gitlab.com (source)](https://gitlab.com/mojoio/medium)
* [github.com (source mirror)](https://github.com/mojoio/medium)
* [docs (typedoc)](https://mojoio.gitlab.io/medium/)
@ -13,14 +13,14 @@ Status Category | Status Badge
-- | --
GitLab Pipelines | [![pipeline status](https://gitlab.com/mojoio/medium/badges/master/pipeline.svg)](https://lossless.cloud)
GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/mojoio/medium/badges/master/coverage.svg)](https://lossless.cloud)
npm | [![npm downloads per month](https://badgen.net/npm/dy/@pushrocks/medium)](https://lossless.cloud)
npm | [![npm downloads per month](https://badgen.net/npm/dy/@push.rocks/medium)](https://lossless.cloud)
Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/mojoio/medium)](https://lossless.cloud)
TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@pushrocks/medium)](https://lossless.cloud)
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@pushrocks/medium)](https://lossless.cloud)
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@pushrocks/medium)](https://lossless.cloud)
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@push.rocks/medium)](https://lossless.cloud)
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@push.rocks/medium)](https://lossless.cloud)
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@push.rocks/medium)](https://lossless.cloud)
Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
## Usage

View File

@ -1,23 +1,23 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as medium from '../ts/index';
import { expect, tap } from '@push.rocks/tapbundle';
import * as medium from '../ts/index.js';
import {Qenv} from '@pushrocks/qenv';
import {Qenv} from '@push.rocks/qenv';
const testQenv = new Qenv('./', './.nogit/');
let testMediumAccount: medium.MediumAccount;
tap.test('first test', async () => {
testMediumAccount = new medium.MediumAccount(testQenv.getEnvVarOnDemand('MEDIUM_API_TOKEN'));
expect(testMediumAccount).to.be.instanceOf(medium.MediumAccount);
expect(testMediumAccount).toBeInstanceOf(medium.MediumAccount);
});
tap.test('should get me info', async () => {
const result = await testMediumAccount.getAccountInfo();
// console.log(result);
console.log(result);
});
tap.test('should get publications', async () => {
const result = await testMediumAccount.getPublications();
const result = await testMediumAccount.getAllPublications();
// console.log(result);
});
@ -26,4 +26,22 @@ tap.test('should get own publications', async () => {
// console.log(result);
});
tap.test('should get a publication by name', async () => {
const result = await testMediumAccount.getPublicationByName('mojoio-test');
console.log(result);
});
tap.test('should create a post', async () => {
const mojoioTestPublication = await testMediumAccount.getPublicationByName('mojoio-test');
const newPost = await mojoioTestPublication.createPost({
title: 'a test title',
contentFormat: 'html',
canonicalUrl: 'https://mojo.io/testarticle',
content: '<h1>hello</1> So awesome',
publishStatus: 'draft',
tags: []
});
console.log(newPost);
})
tap.start();

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@mojoio/medium',
version: '1.0.5',
description: 'an unofficial medium.com API package'
}

View File

@ -1 +1,3 @@
export * from './medium.classes.mediumaccount';
export * from './medium.classes.account.js';
export * from './medium.classes.publication.js';
export * from './medium.classes.post.js';

View File

@ -1,5 +1,5 @@
import { MediumPublication } from './medium.classes.publication';
import * as plugins from './medium.plugins';
import { MediumPublication } from './medium.classes.publication.js';
import * as plugins from './medium.plugins.js';
export interface IMediumAccountData {
id: string;
@ -38,7 +38,7 @@ export class MediumAccount implements IMediumAccountData {
return accountData;
}
public async getPublications(): Promise<MediumPublication[]> {
public async getAllPublications(): Promise<MediumPublication[]> {
return MediumPublication.getAllPublications(this);
}
@ -46,6 +46,10 @@ export class MediumAccount implements IMediumAccountData {
return MediumPublication.getOwnPublications(this);
}
public async getPublicationByName(nameArg: string): Promise<MediumPublication> {
return MediumPublication.getPublicationByName(this, nameArg);
}
public async request(routeArg: string, methodArg: 'POST' | 'GET', payloadArg?: any) {
const response = await plugins.smartrequest.request(`${this.baseApiDomain}${routeArg}`, {
headers: {

34
ts/medium.classes.post.ts Normal file
View File

@ -0,0 +1,34 @@
import { MediumPublication } from './medium.classes.publication.js';
import * as plugins from './medium.plugins.js';
export interface IPostData {
title: string;
contentFormat: 'html' | 'markdown';
content: string;
canonicalUrl: string;
tags: string[];
publishStatus: 'public' | 'draft' | 'unlisted';
}
export class MediumPost implements IPostData {
// STATIC
public static async createPost(mediumPublicationArg: MediumPublication, dataArg: IPostData) {
const response = await mediumPublicationArg.mediumAccountRef.request(`/publications/${mediumPublicationArg.id}/posts`, 'POST', dataArg);
const post = new MediumPost(mediumPublicationArg, response.body.data);
return post;
}
// INSTANCE
mediumPublicationRef: MediumPublication;
title: string;
contentFormat: 'html' | 'markdown';
content: string;
canonicalUrl: string;
tags: string[];
publishStatus: 'public' | 'draft' | 'unlisted';
constructor(mediumPublication: MediumPublication, dataArg: IPostData) {
}
}

View File

@ -1,5 +1,6 @@
import { MediumAccount } from './medium.classes.mediumaccount';
import * as plugins from './medium.plugins';
import { MediumAccount } from './medium.classes.account.js';
import { type IPostData, MediumPost } from './medium.classes.post.js';
import * as plugins from './medium.plugins.js';
export interface IMediumPublication {
id: string;
@ -47,6 +48,11 @@ export class MediumPublication implements IMediumPublication {
return ownPublications;
}
public static async getPublicationByName(mediumAccountArg: MediumAccount, publicationNameArg: string) {
const publications = await this.getAllPublications(mediumAccountArg);
return publications.find(publicationArg => publicationArg.name === publicationNameArg);
}
// INSTANCE
public mediumAccountRef: MediumAccount;
@ -57,6 +63,12 @@ export class MediumPublication implements IMediumPublication {
imageUrl: string;
constructor(mediumAccount: MediumAccount, dataArg: IMediumPublication) {
this.mediumAccountRef = mediumAccount;
Object.assign(this, dataArg);
}
public async createPost(dataArg: IPostData): Promise<MediumPost> {
const result = await MediumPost.createPost(this, dataArg);
return result;
}
}

View File

@ -1,5 +1,5 @@
import * as smartpromise from '@pushrocks/smartpromise';
import * as smartrequest from '@pushrocks/smartrequest';
import * as smartpromise from '@push.rocks/smartpromise';
import * as smartrequest from '@push.rocks/smartrequest';
export {
smartpromise,

14
tsconfig.json Normal file
View File

@ -0,0 +1,14 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"verbatimModuleSyntax": true
},
"exclude": [
"dist_*/**/*.d.ts"
]
}

View File

@ -1,17 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}