
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@hife/cat-mobile
Advanced tools
喜马拉雅国际版移动端基础组件库
npm install @hife/cat-mobile
or
yarn add @hife/cat-mobile
css 文件// index.js
import '@hife/catui/styles/index.css';
import { Button } from '@hife/cat-mobile';
const App = () => {
return <Button>Add</Button>;
};
export default App;
yarn add babel-plugin-import -D 下载 babel-plugin-import 插件babel-plugin-import 插件:webpack.config.js
/**
* css name covert
* 1 Button => button
* 2 ElementSelect => element-select
* @param {string} name 组件名称
*/
const cssNameConvert = function(name) {
const len = name.length;
let ret = '';
for (let i = 0; i < len; i++) {
const charCode = name.charCodeAt(i);
if (charCode >= 65 && charCode <= 90) {
ret +=
i === 0
? String.fromCharCode(charCode + 32)
: `-${String.fromCharCode(charCode + 32)}`;
} else {
ret += name[i];
}
}
return ret;
};
module.exprots = {
module: {
rules: [
{
{
test: /\.(js|mjs|jsx|ts|tsx)$/,
loader: require.resolve('babel-loader'),
options: {
plugins: [
[
'import',
{
libraryName: '@hife/catui',
libraryDirectory: 'lib/components',
"camel2DashComponentName": false,
customStyleName: name => {
const newName = cssNameConvert(name);
return `@hife/catui/styles/${newName}.css`;
}
}
]
]
}
}
}
]
}
}
FAQs
We found that @hife/cat-mobile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.