Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (plugin.type === 'cloud_function') {
includedCloudFunction.push({
index: i,
plugin
});
}
}
// 将云函数插件移到最后
if (includedCloudFunction.length) {
for (const plugin of includedCloudFunction) {
func.plugins.splice(plugin.index, 1);
func.plugins.push(plugin.plugin);
}
} else {
const functionPlugin = new CloudFunction();
func.plugins.push(functionPlugin);
}
await func.deploy(this.deployData);
return this.deployData;
}
}