
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.
@kalxjs/api
Advanced tools
API integration utilities for KalxJs framework.
npm install @kalxjs/api
import { useApi } from '@kalxjs/api';
// Create an API instance
const api = useApi({
baseUrl: 'https://api.example.com',
headers: {
'Authorization': 'Bearer token'
},
timeout: 5000
});
// Make requests
async function fetchData() {
try {
// GET request
const users = await api.get('/users');
// POST request
const newUser = await api.post('/users', { name: 'John', email: 'john@example.com' });
// PUT request
const updatedUser = await api.put('/users/1', { name: 'John Updated' });
// DELETE request
await api.delete('/users/1');
} catch (error) {
console.error('API Error:', error);
}
}
// Access reactive state
console.log(api.isLoading.value); // Check if a request is in progress
console.log(api.error.value); // Check if there was an error
Creates an API instance with the provided options.
baseUrl
- Base URL for all requestsheaders
- Default headers for all requeststimeout
- Request timeout in millisecondsonError
- Global error handler functionAn object containing:
isLoading
- Reactive reference indicating if a request is in progresserror
- Reactive reference containing the last errorhasError
- Computed property indicating if there is an errorrequest(config)
- Method to make a custom requestget(url, config)
- Method to make a GET requestpost(url, data, config)
- Method to make a POST requestput(url, data, config)
- Method to make a PUT requestpatch(url, data, config)
- Method to make a PATCH requestdelete(url, config)
- Method to make a DELETE requestabort(key)
- Method to abort a specific requestabortAll()
- Method to abort all ongoing requestsMIT
FAQs
API integration utilities for KalxJs framework
The npm package @kalxjs/api receives a total of 0 weekly downloads. As such, @kalxjs/api popularity was classified as not popular.
We found that @kalxjs/api demonstrated a healthy version release cadence and project activity because the last version was released less than 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.