Fixed a design flaw where we supposed we could find keys before reading part of the message by adding support for a method to grab the key at runtime
23 lines
1.0 KiB
Markdown
23 lines
1.0 KiB
Markdown
# Typescript-MessageUtils
|
|
|
|
## How to install
|
|
Before the public relesase of this repository, you
|
|
should setup a `.env` file inside the `.environment` directory
|
|
with your application key set so that it enables `npm`, *at least*,
|
|
to read the `package-registry`.
|
|
|
|
Follow the pattern in the `env.example` file inside `.environment` directory
|
|
|
|
If there's not a root level `.npmrc` file, feel free to add one with the
|
|
following lines:
|
|
|
|
```bash
|
|
@farmtoad:registry=https://repositories.communitynotfound.work/api/packages/PoliBa-Software-Architecture/npm/
|
|
//repositories.communitynotfound.work/api/packages/PoliBa-Software-Architecture/npm/:_authToken=${FarmToad_NPM}
|
|
```
|
|
|
|
If it does not work, be sure that your devcontainer or environment is taking the env variables from
|
|
the `.env` file by running `echo ${FarmToad_NPM}` and seeing an actual value.
|
|
|
|
## **DISCLAIMER**
|
|
**"IT IS NOT RECOMMENDED TO REUSE THIS VALUE ACROSS MULTIPLE PROJECT, SO THAT IN CASE OF INVALIDATION (SAY YOU LEAKED THE KEY), YOU DON'T HAVE TO RESET THIS FOR EACH PROJECT"** |