
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@hbgj/common
Advanced tools
引入Promise支持推荐做法
1. `npm i @hbgj/common`
2. 引入api,你的环境需要有Promise支持
// 你可能需@babel/polyfill 但不推荐此做法
// import "@babel/polyfill";
import Common from "@hbgj/common";
const { Config, Util, App } = Common;
let params = _.extend({}, {
interType: 0, // 0国际 1国内
scty: "PEK",
ecty: "SHA",
date: "2019-12-01",
fdate: "2019-12-11",
cabin: "4" // // 4 经济舱,7 公务舱
});
// type 0 国际 1 国内
const url = App.getTicketList(params, {type: 0 });
npm i -S es6-promise
plugins: [
new webpack.ProvidePlugin({
Promise: ['es6-promise', 'Promise']
}),
...
]
FAQs
hbgj 公共功能
The npm package @hbgj/common receives a total of 0 weekly downloads. As such, @hbgj/common popularity was classified as not popular.
We found that @hbgj/common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.