
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@workplus/codash
Advanced tools
使用 WorkPlus 扫一扫,查看在线 demo.
npm install @workplus/codash --save
import { Cordova, deviceReady } from '@workplus/codash';
// 实例化,相关可用配置属性,请查看文档
const wp = new Cordova();
// 设置拦截器
wp.interceptors.before.use((config) => {
return config;
}, err => console.log(err));
wp.interceptors.after.use((response) => {
return response;
}, err => console.log(err));
// 创建promisify的cordova方法
const authHook = wp.addHook('WorkPlus_Auth');
const getUserTicket = authHook.create('getUserTicket');
const getAccessToken = wp.create('WorkPlus_Auth', 'getAccessToken');
// deviceReady 同样可以配置,具体请查看文档
deviceReady({ isMock: false })
.then(() => Promise.all([getUserTicket(), getAccessToken()]))
.then((res) => {})
.catch((err) => {});
Hejx
FAQs
A Cordova utility library.
We found that @workplus/codash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.