
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
@alicd/toffee-api
Advanced tools
import api from '@alife/toffee-api';
// 设置当前环境为mock,默认为pub
api.setMockEnv();
api.setPubEnv();
// 根据当前环境获取接口地址
api.get({
url: 'xxxx',
mockUrl: 'yyyy'
});
// 设置全局接口映射
api.setApiMap({
getName: {
pub: 'xxx',
mock: 'yyy'
},
getAge: {
pub: 'xxx',
mock: 'yyy'
}
});
// 根据当前环境获取接口地址
api.get('getName');
nodejs: 10.15.0$ npm run start$ npm run buildrefer to scripts/release.sh, somtimes you need to modify it.
FAQs
api for toffee
We found that @alicd/toffee-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.