
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
axios-case-converter-updated
Advanced tools
Axios transformer/interceptor that converts snake_case/camelCase
Axios transformer/interceptor that converts snake_case/camelCase
data
params
object keys into snake_casedata
object keys into camelCaseheaders
object keys into Header-Caseheaders
object keys into camelCaseYou can fully use camelCase.
import applyConverters from 'axios-case-converter-updated';
import axios from 'axios';
(async () => {
const client = applyConverters(axios.create());
const { data } = await client.post(
'https://example.com/api/endpoint',
{
targetId: 1
},
{
params: { userId: 1 },
headers: { userAgent: 'Mozilla' }
}
);
console.log(data.actionResult.users[0].screenName);
})();
FormData
compatibilityIf you use FormData
on Internet Explorer or Safari, you need polyfill of FormData.prototype.entries()
.
If you use FormData
on React Native, please ignore the following warnings after confirming that polyfill is impossible.
// RN >= 0.52
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings([
'Be careful that FormData cannot be transformed on React Native.'
]);
// RN < 0.52
console.ignoredYellowBox = [
'Be careful that FormData cannot be transformed on React Native.'
];
Symbol
compatibilityIf you use React Native for Android development, you should use Symbol polyfill from core-js
to avoid bugs with iterators:
polyfill.js
in root directory with code:global.Symbol = require('core-js/es6/symbol');
require('core-js/fn/symbol/iterator');
polyfill.js
in entry point of your app (e.g. app.js
):import { Platform } from 'react-native';
// ...
if (Platform.OS === 'android') {
require('./polyfill.js');
}
FAQs
Axios transformer/interceptor that converts snake_case/camelCase
The npm package axios-case-converter-updated receives a total of 2 weekly downloads. As such, axios-case-converter-updated popularity was classified as not popular.
We found that axios-case-converter-updated 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.