
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.
nestjs-azure-func-trigger
Advanced tools
Nest - modern, fast, powerful node.js web framework (@azure-func-trigger
A progressive Node.js framework for building efficient and scalable server-side applications.
Azure Functions Trigger module for Nest.
This package works well together with @nestjs/azure-func-http which provides azure function http triggers for Nest.
This package provides a more general way to use any kind of azure function trigger ( timed, event bus, ...) for triggering methods of your Nest services.
Using npm:
$ npm install nestjs-azure-func-trigger
Adding a trigger is done by creating a new Azure Function in the app folder and then providing the createApp to the AzureFunctionTriggerAdapter.
import { InvocationContext } from '@azure/functions';
import { AzureFunctionTriggerAdapter } from 'nestjs-azure-func-trigger';
import { createApp } from '../src/main';
export default async function(context: InvocationContext): Promise<void> {
return AzureFunctionTriggerAdapter.handle(createApp, context);
}
When the function is triggered it starts up and calls every service method that is annotated with AzureFunctionTrigger decorator that specified this function by the name parameter.
import { Injectable } from '@nestjs/common';
@Injectable()
class ClassWithTrigger {
@AzureFunctionTrigger('FunctionName')
public timerWithContext (
@AzureFunctionContext() context: InvocationContext,
) {
context.log('TimerWithContext', context);
}
}
A function.json for this case looks like the following. Important is only the name of the function folder which in this case is "FunctionName"
{
"bindings": [
{
"name": "trigger",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 0,30 7-23 * * *"
}
],
"scriptFile": "../dist/FunctionName/index.js"
}
FAQs
Nest - modern, fast, powerful node.js web framework (@azure-func-trigger
We found that nestjs-azure-func-trigger 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.