mirror of
https://github.com/en-lwj/cordova-plugin-cescit-integrity.git
synced 2026-04-17 00:04:16 +08:00
[add]添加cordova完整性检验
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Exit script with custom error log.
|
||||
* @param {string} msg - Error message.
|
||||
* @param {Error} exception
|
||||
*/
|
||||
exports.exit = require('./error_exit');
|
||||
|
||||
/**
|
||||
* Get the real list of platforms affected by a running plugin hook.
|
||||
* @param {Object} context - Cordova context.
|
||||
*/
|
||||
exports.getPlatformsList = invokeHelper.bind(null, './get_platforms_list');
|
||||
|
||||
/**
|
||||
* Detect if the context process is running with verbose option.
|
||||
* @param {Object} context - Cordova context.
|
||||
*/
|
||||
exports.isVerbose = invokeHelper.bind(null, './is_verbose');
|
||||
|
||||
exports.getFileMapContent = invokeHelper.bind(null, './getFileMapContent');
|
||||
|
||||
function invokeHelper (path) {
|
||||
var helper = require(path);
|
||||
var context = arguments[1];
|
||||
return helper.apply(context, Array.prototype.splice.call(arguments, 2));
|
||||
}
|
||||
Reference in New Issue
Block a user