@ibgib/helper-gib
Version:
common helper/utils/etc used in ibgib libs. Node v19+ needed for heavily-used isomorphic webcrypto hashing consumed in both node and browsers.
524 lines (365 loc) • 16.6 kB
Plain Text
commit 521f887d65193e78252f09c75aa1606e4d09df00
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Mar 18 04:18:47 2024 -0500
0.0.24
commit 02b98875baf1ee6353645760e45ce33cfeff7bcc
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Mar 18 04:18:24 2024 -0500
progress: refactored and slight improvements to respec-gib
commit 511910b0dd5b6f040e781a4308d390aa1c3761aa
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 13 12:36:03 2024 -0500
meta: added vscode settings for codegpt + gemini pro
commit 37386cb74b11ad0609439befb8c7a012e623e3a2
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 13 12:34:26 2024 -0500
tweak: added additional iReckon in firstOfEach
* first try with Gemini codeGPT.
* Gemini was great at grokking but had some trouble with global
understanding.
* I'm putting this in because the outcome was good for this one small
bit.
* I had to select just that one function and talk with Gemini about
it.
commit 0b5f679bf55f189c1b2ff97f41b98c18968d73b7
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Mar 9 06:47:51 2024 -0600
0.0.23
commit ee2f6dd8bef3802990f3a950bfde0bbd71a07c70
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Mar 9 06:46:09 2024 -0600
progress: removed warning in promptForSecret since stdout fixed
* I'm removing this warning because it was initially because it echoed
the user's typed in password. I'm not smart enough to care about
locations in memory. if memory is compromised, then the local node is
compromised and the secret is known.
commit 68e9b25659a69425d593bbc3871f6fc94c298f8b
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Feb 24 08:11:23 2024 -0600
meta: removed comment cruft from previous promptForSecret commit
commit de8d9f758012fd7f64698dd36a14434b7e837490
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Feb 24 08:03:49 2024 -0600
0.0.22
commit f5867d9ed46c55a7caa5193bf20dc92d931ddbd9
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Feb 24 08:03:11 2024 -0600
fix: changed promptForSecret to not echo input
* still not very safe probably but hey, what are ya gonna do.
commit 4c7c8e5c9f024979178f004ef586c67d689a0439
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Feb 22 04:40:05 2024 -0600
0.0.21
commit 2b030da6425a328ad91b6dd06aa35a16c6338a19
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Feb 22 04:39:41 2024 -0600
impl: added optional date arg to getTimestamp
commit e3b3ea7e4aae454581e9d0fbe0f022a3b62eccf0
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri Feb 9 07:06:30 2024 -0600
0.0.20
commit 23dde644eda2abf74ccdc801a0801b420cfe0888
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Jan 31 07:42:16 2024 -0600
0.0.19
commit ffca4db9c4e2ca8b42df81d89ed61018f669a61a
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Jan 31 07:40:20 2024 -0600
meta: removed selenium-webdriver to reduce node_modules size
* explicit web testing is not yet implemented anyway
* i didn't realize that this was adding to the node_modules so much
* also didn't factor in that it's in the dependencies and not in the
dev dependencies, which isn't right
* so in the future, i will put the web testing for libs into a separate
"repo"
* very close to dogfooding ibgib b2tfs for version control, so this
repo distinction will go away in the future anyway.
commit 92814f61af005d10414aacc290c9d3ae3633bf30
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Jan 31 07:40:04 2024 -0600
meta: removed debugger line in respec test
commit e24211cba0a35da344c86bc9be43b467852d84e9
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Jan 22 13:51:11 2024 -0600
0.0.18
commit 19e2d43abb8029140437ecb0fc1adf0cba2f2b9d
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Jan 22 13:50:32 2024 -0600
meta: removed explicit typescript dependency in package.json
* seeing if this is why adding this lib adds a bunch of dependencies.
commit 3d24595ebdf0b5080b75545fee7f710d70d57701
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Jan 22 13:50:07 2024 -0600
progress: tweak a couple rcli synonyms
commit 08340c0d14b118fb523afe0d901380aa4d4104ed
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Nov 16 05:54:00 2023 -0600
0.0.17
commit 5b02caee1146d5fd9d161e94d1cf0559aa394811
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Nov 16 05:51:42 2023 -0600
impl: extractErrorMsg({error}) works now
* was failing when accidentally passing in the curly brace {error}
instead of just the bare error.
* is extraneous and warns if this is passed in.
* respec also added for this case
commit 24511fbc224ab208d701209b87339c2d868c68d8
Author: William Raiford <bill.mybiz@gmail.com>
Date: Tue Nov 14 07:04:56 2023 -0600
meta: added build:link script to package.json
commit 6b320553518213876fd7ef22bda4e3ad6540118f
Author: William Raiford <bill.mybiz@gmail.com>
Date: Tue Nov 14 05:06:36 2023 -0600
impl: added several RCLIParamInfo definitions
commit c1ffbf8b4f3448b90e837ba76d4b40dfba804223
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Nov 13 16:04:46 2023 -0600
progress: working on adding common param_infos here
commit 8e76eb213547ec44e85e4d8f10414009235a3859
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Oct 30 06:13:52 2023 -0500
0.0.16
commit 5a0ec78986c684a556fc8a8dec54f25a96559214
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon Oct 30 06:12:37 2023 -0500
impl: bare arg capability for rcli
* you can have one "bare arg" (without "--" prefix)
* some initial testing in place.
* will test further with integration in ibgib bin app
commit a3e58090ea92ac01711167cd0a0456852d5c93d7
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri Sep 8 21:26:24 2023 -0500
0.0.15
commit 5d163b2e7d1c4a5582b5f0ff07a4bbccb8bfad36
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri Sep 8 21:24:47 2023 -0500
fix: promptForConfirm
* not tested yet, but didn't work before, why should it start now?
commit 9d93bd8c2b6f65242e644daab530f93f096a18e2
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Sep 7 09:25:17 2023 -0500
0.0.14
commit 732dc37237fadc742702c38da3f351ce7a1a432a
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Sep 7 09:24:07 2023 -0500
fix: rcli arg tweak in `buildArgInfos`
* rcli arg tweak in `buildArgInfos` that sets the arg.name to
the param name and not a synonym if a synonym was used.
* test added for this
commit 307307d98a1ea2c06d005c6d5d4f978079e74dae
Author: William Raiford <bill.mybiz@gmail.com>
Date: Tue Aug 29 17:38:12 2023 -0500
0.0.13
commit a1f2e588395e58486d43da339d4f7195e3296085
Author: William Raiford <bill.mybiz@gmail.com>
Date: Tue Aug 29 17:37:33 2023 -0500
break: changed `getParamInfo` to NOT throw if the param is not found.
* added `throwIfNotFound` to get same old behavior.
* other function `buildArgInfos` acs the same, since it sets the throw flag.
* I'm changing this because in actual use, it's annoying to check for an
arg which may not be there. Even though it breaks, this is still so young
and no one else is using it, so meh.
commit ea82deff0e9b937752ceda5ed90f634460a456c6
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Aug 16 13:27:25 2023 -0500
0.0.12
commit a3a058cef1ef45351c5d55cfee2292ca71a9f19a
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Aug 16 13:26:51 2023 -0500
progress: added synonyms to RCLIParamInfo
* adjusted rcli helpers
* added unit testing for rcli helpers
commit 37cfd6cb9c2ede02777c30104c5e6b079a1f04a6
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Aug 10 15:49:32 2023 -0500
0.0.11
commit 2905e7c09c59c3f1191d3b2efa1a6c7096bb93db
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Aug 10 15:48:42 2023 -0500
* meta: refactor RLI to RCLI, progress: added promptForBoolean
* meta: refactor RLI to RCLI
* Robbotic Commmand Line Interface,
* or, Request/Command Line Interface.
* these are intended to be used in RCLI apps that incorporate
both command- and request-based interactions.
* the thinking behind this is to marry both sides of
deterministic command-based thinking to the freedom and
autonomy associated with the future of ibgib robbots. so
ultimately commands must continue to grow to emulate more
complex requests. Robbots will strive to maintain integrity
as more freedom is given.
* progress: added promptForBoolean
* untested? I'm unsure of the state of this, if I'm using it in other libs.
* removed cruft logging in curtailing getSaferText
commit 75528e2970ded472089f1dd3163771802f7bbc8c
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Jun 24 12:45:59 2023 -0500
0.0.10
commit 195b7bae352a5d8267c237ccd609de32073b7d65
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Jun 24 12:44:21 2023 -0500
progress: tweaking node-helper
* deprecating _node suffixes.
* i'm thinking this will in the future have multiple implementations
and it would be good to keep the same signature (use an interface in
the future).
* added `isFile` node helper
* untested
* added `promptForConfirm` function
* untested
commit 5be7a0b041a35614cbc8f1259604f99c9572e70d
Author: William Raiford <bill.mybiz@gmail.com>
Date: Sat Jun 24 12:40:36 2023 -0500
meta: tweaking package.json keywords
commit e0980117a2aefc0cdb1ecbdfa56aea4ba47db98b
Author: William Raiford <bill.mybiz@gmail.com>
Date: Tue Jun 20 07:50:37 2023 -0500
0.0.9
commit 1665a51d45bc5470de2dff17b677b61c3e8e9b8a
Author: William Raiford <bill.mybiz@gmail.com>
Date: Tue Jun 20 07:49:44 2023 -0500
progress: RLI and node helper utils from encrypt-gib
* added RLI basics.
* refactored from another project.
* untested (except they were working in other libs)
* added a couple node helper functions.
* refactored from another project.
* untested (except they were working in other libs)
commit 872ad1663c54eb7687ddb0fc4ed0c06d206ab49f
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri Jun 9 08:47:00 2023 -0500
0.0.8
commit 211d94cedcf42ffdfe917f25db131e8474c30c91
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri Jun 9 08:45:46 2023 -0500
fix: removed debugger line and corrected npm test in package.json
commit 1fd27e97d529f21d844135ee646a0589b051aa52
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri May 19 18:04:35 2023 -0500
0.0.7
commit 3c53b0a29f4f2f7e670b327fb2433efdb78d02c9
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri May 19 18:04:23 2023 -0500
0.0.6
commit a6d35930acdc5636dd76c77d9765f36adf893f17
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri May 19 18:03:52 2023 -0500
progress: respec changelog
commit 5c918eda3bee565f013375b52e99dfdadd745b41
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri May 19 18:02:02 2023 -0500
0.0.6
commit 215eae1c95e6bc5ceb511d2dec53ab034bd2344f
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri May 19 18:01:10 2023 -0500
progress: extra respec for focused respec execution implemented
commit 757e2ba4e4c638a843cc53538d5b75e7d37fe0a6
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed May 17 18:09:33 2023 -0500
progress: complex respecs for nested first/last hooks
commit 2dafb7cbe59ce1084b75e5ac66e3fa30a489db87
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed May 17 10:26:51 2023 -0500
0.0.5
commit 86d978e82fb7be684ed7df6f6024ba5185230e8d
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed May 17 10:18:42 2023 -0500
progress: added some tests and improved output
commit aff3d4489ecc67ba9a87c7ed15323f16b457a62c
Merge: 6a678c9 f1a54a4
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed May 17 13:04:08 2023 +0000
Merge branch 'main' into 'main'
Add gitattributes file for mts extension syntax highlighting
See merge request ibgib/helper-gib!1
commit f1a54a444efeb49dca07259a3d5b6c27ce1c694a
Author: Robert <gitlab_rob3c@7b9.com>
Date: Wed May 17 00:32:49 2023 +0000
Add new file
commit 6a678c948e2a34a86b254879d56274b2e75f212f
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon May 15 13:14:06 2023 -0500
progress: working on fleshing out the respec metarespecs
commit 664380cebaa97ca22ff9675ca0635b444de77898
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon May 15 11:12:16 2023 -0500
progress: respec somewhat working
commit 0d25af2454a616dae36a1dec8f68f83a3229818d
Author: William Raiford <bill.mybiz@gmail.com>
Date: Mon May 15 06:25:21 2023 -0500
progress: respec
* working on displaying error msgs corerctly.
* should take out logging errors during iReckon
commit 49d3d529040669b3d7df9bba0d83e21a455dac79
Author: William Raiford <bill.mybiz@gmail.com>
Date: Fri May 12 19:01:19 2023 -0500
progress: respec spec lib started
* run npm run test:node to pick up where I left off
* add Reckoning tests to respec-gib.respec.mts
commit 6b528245642f9233bb36346fafbb3970f6c5f7c7
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu May 11 05:11:43 2023 -0500
progress: adding respec framework
commit 565e24639c86eb3a00aa41d119a3dc702cc1109d
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Mar 30 10:36:44 2023 -0500
0.0.4
commit e6b4afacf15bd081604b80b2e553fe34c5734ba5
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Mar 30 10:36:15 2023 -0500
meta: correct package.json repo url to gitlab
commit 28fcc790540a26528b49f0b026f2470efdc20e50
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Mar 30 10:31:51 2023 -0500
0.0.3
commit 39bc27143a6062b9a2d4c54924f1a0cc10ea6382
Author: William Raiford <bill.mybiz@gmail.com>
Date: Thu Mar 30 10:29:57 2023 -0500
impl: hash fn now re-throws on error - maybe breaking?
* I do not know why I wasn't rethrowing the error, and I changed this.
* The unit tests obviously do not break, but I will have to be mindful
of this kind of change at this low level, as I may (probably?) have
already taken this into account.
* I just don't like the silent error...eesh.
commit 051d2b099f92de3d8f5793e394017ccc0171b1bf
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 29 10:51:58 2023 -0500
0.0.2
commit c623f2f68730dd55ae6b31b17da6942311242f5f
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 29 10:51:45 2023 -0500
meta: changelog bump
commit ba01ada1a4305da443b27d77d0d1c9601924c0c0
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 29 10:51:00 2023 -0500
0.0.1
commit 9ddaa86a76afe4d04d5be0f68b1a7bb9253a2d86
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 29 10:50:05 2023 -0500
meta: tweak reversed to 0.0.0 because of publish failure.
* failed I believe from no "published" folder.
commit 449aa5b7f93e0193fe4523e030b9f2f615802410
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 29 10:49:02 2023 -0500
0.0.1
commit b98d8415df9f75a0a1bd6e4b34ffa4a46d0a65a8
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 29 10:48:18 2023 -0500
meta: reorg and ts-gib functions
* slight cleanup of organization helper files/folders.
* changed "common" to "helpers" folder
* added index.mts
* exporting in base index.mts via helpers/index.mts instead of individual files.
* incorporated helper functions from ts-gib.
* all tests passing. This should be ready to consume in ts-gib (or close to it).
commit ea3648302c07e90ae645afa6a798273f80a960cd
Author: William Raiford <bill.mybiz@gmail.com>
Date: Wed Mar 29 06:45:14 2023 -0500
meta: tweak readme/changelog
commit db381810e50f019980485d94ad4cc3997802ab14
Author: William Raiford <bill.mybiz@gmail.com>
Date: Tue Mar 28 12:09:30 2023 -0500
meta: initial commit
* es modules
* testing with both node and browser via jasmine.
* already has some of the core helper functionality from ts-gib and ionic-gib.