
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
1、在代码库中执行 npm link
2、在代码库中执行 npm link ../../myapp2/node_modules/react
3、在项目中执行 npm link reactui
docz 部署问题
http://storage.jd.com/jdplus/react-ui-demo/ index.html----生成路径
http://storage.jd.com/ static/js/app.39fc221f.js----要求路径
http://storage.jd.com/jdplus/react-ui-demo/ static/js/app.39fc221f.js----生成路径
src="/app-df01096936b458cb7285.js"----代码中
组件名字: name author: 1 新增
src/components/${name}/style/index.scss
// @import '../../../styles/index.scss';
src/components/${name}/${name}.mdx
// ---
// name: Menu
// route: /menu
// menu: 业务组件
// ---
// > Menu菜单组件
src/components/${name}/${name}.tsx
import React, { FC } from 'react';
import classNames from 'classnames'
// interface BaseProps{
// className?:string,//自定义类名
// }
// const Button:FC<BaseProps> = (props)=>{
// const {
// className
// } = props;
// const classes = classNames('btn',className);
// return (
// <div className={classes}>
// </div>
// )
// }
// Button.defaultProps = {
// }
// export default Button;
src/components/${name}/${name}.test.tsx
src/components/${name}/index.tsx
// import Button from './button'
// import './style/index.scss'
// export default Button
2.追加
{
"packages":[
{
"name":"button",
"author":"zhenyulei"
},
{
"name":"menu",
"author":"zhenyulei"
}
]
}
export { default as Button } from './components/Button'
FAQs
1、在代码库中执行 npm link
The npm package jd-plusui receives a total of 2 weekly downloads. As such, jd-plusui popularity was classified as not popular.
We found that jd-plusui 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.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.