Registered StackHub users may elect to receive email notifications whenever a new package version is released or a comment is posted on the forum.
There are 6 watchers.
Encrypts the given Axon trio file by obfuscating the src
fields.
passPhrase
is a seed string that's used to generate the actual secretKey
used to encrypt the axon source code.
Example:
axonateFile(`io/funcs.trio`, "<passPhrase>")
Returns a Dict
which contains, amongst other fields, the secret key needed to run the functions.
By default, the encrypted source contains the secretKey
which is fine for obfuscation and general purpose use. Alternatively a keyFunc
may be passed in. The keyFunc
should either be a Str
of Axon code, or a Fn
that returns a Str
of Axon code, that when executed returns the secretKey
. Also see axonatorStackHubKeyFunc.
If keyFunc
is an Axon Fn it is called with two arguments: fnName
and secretKey
.
options
defaults to null
and is not used at this time.
Encrypts the given function record by obfuscating the src
field.
passPhrase
is a seed string that's used to generate the actual secretKey
used to encrypt the axon source code.
Example:
{func, name:"fnName", src:"()=>69"}.axonateFunc("<passPhrase>")
Returns a Dict
which contains, amongst other fields, the secret key needed to run the function.
By default, the encrypted source contains the secretKey
which is fine for obfuscation and general purpose use. Alternatively a keyFunc
may be passed in. The keyFunc
should either be a Str
of Axon code, or a Fn
that returns a Str
of Axon code, that when executed returns the secretKey
. Also see axonatorStackHubKeyFunc.
If keyFunc
is an Axon Fn it is called with two arguments: fnName
and secretKey
.
options
defaults to null
and is not used at this time.
Returns a keyFunc
function that finds a StackHub licence that matches the given key and value, and returns the axonatorKey
property from that licence.
stackHubKey |
stackHubVal |
---|---|
|
a matching product ID, example:. |
|
a simple package version, example:. |
The returned keyFunc
can only be used in axonate functions.
Example:
keyFunc : axonatorStackHubKeyFunc("product", "xxxx-xxxx productName") axonate : axonateFile(`io/funcs.trio`, "<passPhrase>", keyFunc)