Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from homer0/homer0_update
Update project
- Loading branch information
Showing
23 changed files
with
2,833 additions
and
3,299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
coverage/* | ||
node_modules/* | ||
docs/* | ||
esm.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Write results file | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# pulls all commits (needed for lerna / semantic release to correctly version) | ||
fetch-depth: "0" | ||
- name: Read .nvmrc | ||
run: echo "::set-output name=NVMRC::$(cat .nvmrc)" | ||
id: nvm | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '${{ steps.nvm.outputs.NVMRC }}' | ||
- name: Install dependencies | ||
env: | ||
HUSKY_SKIP_INSTALL: 1 | ||
run: yarn --frozen-lockfile | ||
- run: yarn results | ||
- name: Configure Git User | ||
run: | | ||
git config --global user.name '@homer0' | ||
git config --global user.email 'homer0@users.noreply.github.com' | ||
- name: Commit results | ||
run: | | ||
git add RESULTS.md | ||
git commit -m "publish: update results [skip ci]" | ||
- name: Push results | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
12 | ||
16 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Latest results | ||
|
||
``` | ||
HTTP Speed Meter - Average Results | ||
Target URL: https://pokeapi.co/api/v2/pokemon/lugia | ||
Iterations: 1 | ||
Test: JSON | ||
axios@1.1.3 ████████████████████████████████████████████ 497ms | ||
got@12.5.2 ████████████████████████████████████████████ 509ms | ||
node-fetch@3.2.10 ████████████████████████████████████████████ 506ms | ||
request@2.88.2 ████████████████████████████████████████████████████████████████████████████████ 900ms | ||
request-promise@4.2.6 ██████████████████████████████████████████████████████████████████ 751ms | ||
reqwest@2.0.5 ████████████████████████████████████████████████████████ 630ms | ||
superagent@8.0.2 ████████████████████████████████████████████ 498ms | ||
Test: Text | ||
axios@1.1.3 ████████████████████████████████████████████ 504ms | ||
got@12.5.2 ████████████████████████████████████████████ 508ms | ||
node-fetch@3.2.10 ████████████████████████████████████████████ 511ms | ||
request@2.88.2 ███████████████████████████████████████████████████████████████ 711ms | ||
request-promise@4.2.6 █████████████████████████████████████████████████████████████████████████████ 881ms | ||
reqwest@2.0.5 ███████████████████████████████████████████████████████████ 669ms | ||
superagent@8.0.2 ████████████████████████████████████████████ 502ms | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
const HsmTester = require('./lib/hsmTester'); | ||
const HsmTest = require('./lib/hsmTest'); | ||
const { getLib } = require('./lib/esm'); | ||
|
||
module.exports = { | ||
HsmTester, | ||
HsmTest, | ||
getLib, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports.LIBS = ['pretty-ms', 'chalk', 'node-fetch', 'got']; | ||
const libsModules = {}; | ||
|
||
module.exports.loadESMLibs = () => | ||
Promise.all( | ||
module.exports.LIBS.map(async (lib) => { | ||
libsModules[lib] = await import(lib); | ||
}), | ||
); | ||
|
||
module.exports.getLib = (lib) => libsModules[lib]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"typeAcquisition": { | ||
"include": ["jest"] | ||
} | ||
} |
Oops, something went wrong.