* Adds a note about deploying web apps where an environment variable should be changed to avoid GUN warnings being treated as errors during CI
* Fixes a few typos and small grammatical errors in the type definitions types/chain.d.ts
* Add TypeScript test file & tsd as devDep to run it
This helps those who want to contribute to the TypeScript definitions
by adding:
* a tool called `tsd,`
* its corresponding configuration in package.json
* a teste file index.test-d.ts
Also add a extra line between type definitions to improve readability.
* Fix set/get parameters to use Record<string,*>.
The previous implementation did not allow users to
retrieve items that were inserted using "set," and
it incorrectly used ArrayOf to extract record types.
The previous implementation also prevented users
from ever inserting an array. Although it the database
does not handle arrays elegantly, it allows the user
to insert them. Typing should not prohibit use of
arrays.
This helps those who want to contribute to the TypeScript definitions
by adding:
* a tool called `tsd,`
* its corresponding configuration in package.json
* a teste file index.test-d.ts
Also add a extra line between type definitions to improve readability.
* chain.d.ts: add options argument to put & set
* chain.d.ts: set cb may be null when providing opts
Co-authored-by: Norman Reed <norman.s.reed@gmail.com>
Git needs to be added to the docker image or the build fails at the npm install stage.
_Looks at iris_
...
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/irislib/iris-messenger.git
...
* Warn on automatic redirect to HTTPS
* Don't redirect to HTTPS on loopback IP addresses
* Check if current location is a local loopback IP address (127.0.0.0/8) and do not redirect
`certificants.indexOf('*') !== -1` appears to be correct way of using this function. `certificants.includes` may be another option, but it may be too modern for compatibility concern