
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.
concordialang-plugin
Advanced tools
🔌 Concordia Compiler plug-in interface
👉 The following procedure requires Concordia Compiler
2.0.0-alpha-19
or later
concordialang-
. We recommend that it contains the target frameworks - e.g. concordialang-foo-bar
if you will use the (hypothetical) frameworks "foo"
and "bar"
.package.json
(e.g., npm init
).concordialang-types
and concordialang-plugin
as dependencies (e.g., npm i concordialang-types concordialang-plugin
)."concordiaPlugin": true
to your package.json
.src/index.ts
) with a class that implements the interface Plugin
(see API).default
export (i.e, export default class
)."main"
from your package.json
to the JS file that contains the created class (e.g., "dist/index.js"
).Note: You can use JavaScript instead of TypeScript.
package.json
(e.g., npm init --yes
).features/example.feature
).npm i -D concordialang
) and run the init command (npx concordia --init
).npm i -D /path/to/your-plugin
)npx concordia -p your-plugin
) and see with it is executed correctly.npm login
."files"
into your package.json
that indicates the (source code) files to distribute."version"
of your package file was set correctly.npm publish --dry-run
to simulate the publishing.npm publish
.See fake-plugin for a simple example.
export interface Plugin {
//
// Test Generation and Execution
//
/**
* Multi-platform command to start a testing server, if needed.
*
* 👉 Set its value only if the testing framework does need a testing server.
*
* @example
* "selenium-standalone start"
*/
serveCommand?: string;
/**
* Generates source code from abstract test scripts, according to the given options.
*
* @param abstractTestScripts Abstract test scripts
* @param options Options
* @return Generation results.
*/
generateCode?: (
abstractTestScripts: AbstractTestScript[],
options: TestScriptGenerationOptions
) => Promise< TestScriptGenerationResult >;
/**
* Executes test scripts, according to the given options.
*
* @param options Execution options.
* @return Execution results.
*/
executeCode?: ( options: TestScriptExecutionOptions ) => Promise< TestScriptExecutionResult >;
/**
* Converts a file produced by the execution of test scripts (e.g. a JSON or a XML file).
*
* @param filePath Input file.
* @return Execution results.
*/
convertReportFile?: ( filePath: string ) => Promise< TestScriptExecutionResult >;
//
// Events
//
/**
* Event that happens before the compiler reports the test script results.
*
* @param result Test script execution result.
* @param options Test script execution options.
*/
beforeReporting?: ( result?: TestScriptExecutionResult, options?: TestScriptExecutionOptions ) => Promise< void >;
/**
* Event that happens after the compiler reports the test script results.
*
* @param result Test script execution result.
* @param options Test script execution options.
*/
afterReporting?: ( result?: TestScriptExecutionResult, options?: TestScriptExecutionOptions ) => Promise< void >;
}
Please see the src
folder for more information about the used types.
FAQs
Concordia Compiler Plug-in
The npm package concordialang-plugin receives a total of 13 weekly downloads. As such, concordialang-plugin popularity was classified as not popular.
We found that concordialang-plugin 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.
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.