![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
bcode
Advanced tools
Readme
bitdb attribute encoder & decoder
Encode all BitDB Query attributes to base64
Takes all the h-prefixed and s-prefixed variables in a QUERY and transforms them to base64. Example:
bcode.encode({
"v": 3,
"q": {
"find": {
"out.b0": {
"op": 106
},
"out.h1": "6d02",
"out.s2": "Hello World"
}
}
})
returns
{
"v": 3,
"q": {
"find": {
"out.b0": {
"op": 106
},
"out.h1": "bQI=",
"out.s2": "SGVsbG8gd29ybGQ="
}
}
}
Find all base64 encoded b-attributes and attach their hex encoded version on the same object
bcode.decode({
"i": 1,
"b0": {
"op": 118
},
"b1": {
"op": 169
},
"b2": "C4xgCn8EKdAewSF/r3mR0I3zeG4=",
"s2": "\u000b�`\n^?\u0004)�\u001e�!^?�y�Ѝ�xn",
"b3": {
"op": 136
},
"b4": {
"op": 172
},
"str": "<Script: OP_DUP OP_HASH160 20 0x0b8c600a7f0429d01ec1217faf7991d08df3786e OP_EQUALVERIFY OP_CHECKSIG>",
"e": {
"v": 50591402,
"i": 1,
"a": "qq9cccq20uzzn5q7cyshltmej8ggmumcdc9deqqsa7"
}
})
returns the following (includes h2):
{
"i": 1,
"b0": {
"op": 118
},
"b1": {
"op": 169
},
"b2": "C4xgCn8EKdAewSF/r3mR0I3zeG4=",
"h2": "0b8c600a7f0429d01ec1217faf7991d08df3786e",
"s2": "\u000b�`\n^?\u0004)�\u001e�!^?�y�Ѝ�xn",
"b3": {
"op": 136
},
"b4": {
"op": 172
},
"str": "<Script: OP_DUP OP_HASH160 20 0x0b8c600a7f0429d01ec1217faf7991d08df3786e OP_EQUALVERIFY OP_CHECKSIG>",
"e": {
"v": 50591402,
"i": 1,
"a": "qq9cccq20uzzn5q7cyshltmej8ggmumcdc9deqqsa7"
}
}
FAQs
encoding handler for bitdb
The npm package bcode receives a total of 3 weekly downloads. As such, bcode popularity was classified as not popular.
We found that bcode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.