
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.
op-components
Advanced tools
如果要查看业务组件,比如部门信息,请先设置 token
import React from 'react';
import { Input } from 'antd';
import SdkConfig from './src/sdk';
const onResetSchema = e => {
console.log(e.target.value);
SdkConfig.token = e.target.value;
};
export default () => (
<div>
<Input onChange={onResetSchema} placeholder="设置token" />
</div>
);
Install dependencies,
$ npm i kts-components
Start the dev server,
$ npm start
Build documentation,
$ npm run docs:build
Build library via father-build,
$ npm run build
regeneratorRuntime is not defined
1.npm i @babel/polyfill 2.在 config/polyfill.js 下加入这行代码 require("@babel/polyfill"); 3.自应用需要传递 sdk 给组件,导入{SdkConfig} from 'kts-components';SdkConfig.instance.sdk = sdk;
2.An accessor cannot be declared in ambient context 在 tsconfig.json 中加入此行 "compilerOptions": { "skipLibCheck": true } 3.无法发布 npm 源不对,处理:npm config set registry https://registry.npmjs.org/ -- 有些非官方源个人可能无权发布,比如淘宝镜像需要 admin 权限 ##更新 1.3.1 支持外部 JSX.element 通过 extra 参数放进去。
FAQs
## Getting Started
We found that op-components 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
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.