
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A Custom Element for demonstrating a PIE interaction designed for use with the pie-cloud packaging service.
<pie-demo
editor="true"
pie="@pie-element/multiple-choice"
>
</pie-demo>
npm install
Edit src/index.html
with the name and version of the element you want to demo. And also alter the model.
Example
<pie-demo id="demo" editor="true" pie="@pie-element/ebsr@1.2.0"></pie-demo>
<script>
const model = {
"id": "0",
"element": "pie-element-ebsr",
"partA": {
"prompt": "What color is the sky?",
"choiceMode": "radio",
"keyMode": "numbers",
"choices": [
{
"value": "yellow",
"label": "<div>Yellow</div>",
"correct": false
},
{
"value": "green",
"label": "<div>Green</div>",
"correct": false
},
{
"correct": true,
"value": "blue",
"label": "<div>Blue</div>"
}
],
"partialScoring": false,
"partialScoringLabel": "Each correct response that is correctly checked and each incorrect response\n that is correctly unchecked will be worth 1 point.\n The maximum points is the total number of answer choices.",
"shuffle": false,
"showCorrect": false
},
"partB": {
"prompt": "What color do you get when you mix Red with your answer in Part 1?",
"choiceMode": "radio",
"keyMode": "numbers",
"choices": [
{
"value": "orange",
"label": "<div>Orange</div>",
"correct": false
},
{
"correct": true,
"value": "purple",
"label": "<div>Purple</div>"
},
{
"value": "pink",
"label": "<div>Pink</div>"
},
{
"value": "green",
"label": "<div>Green</div>"
}
],
"partialScoring": false,
"partialScoringLabel": "Each correct response that is correctly checked and each incorrect response\n that is correctly unchecked will be worth 1 point.\n The maximum points is the total number of answer choices.",
"shuffle": false
}
};
const configure = {
promptLabel: "Prompt",
addChoiceButtonLabel: "Add a choice",
addChoice: false,
addFeedBack: true,
deleteChoice: true,
showPrompt: true,
answerChoiceCount: 0,
settingsSelectChoiceMode: true,
settingsSelectChoicePrefixes: true,
settingsSelectChoiceModeLabel: "Response Type",
settingsChoicePrefixesLabel: "Choice Labels",
settingsPartialScoring: true,
settingsConfigShuffle: true
};
const pieDemo = document.getElementById("demo");
pieDemo.model = model;
pieDemo.configure = configure;
pieDemo.modelSchemaJSONURI = 'https://raw.githubusercontent.com/pie-framework/pie-elements/develop/packages/categorize/docs/pie-schema.json';
pieDemo.configureSchemaJSONURI = 'https://raw.githubusercontent.com/pie-framework/pie-elements/develop/packages/categorize/docs/config-schema.json';
</script>
Run e2e and unit tests:
npm run test
Launch the local index.html
in hot-module-reload server:
npm run start
When running npm start
the HMR will attampt to re-define the custom element and get an already defined error. Need to refresh the page.
TODO
make script loading optional (but still define custome elements from pre-loaded)
FAQs
Custom Element for Demoing PIE Framework Interactions
The npm package pie-demo receives a total of 3 weekly downloads. As such, pie-demo popularity was classified as not popular.
We found that pie-demo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.