index.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * @module electron-osx-sign
  3. */
  4. 'use strict'
  5. const sign = require('./sign')
  6. const flat = require('./flat')
  7. /**
  8. * This function is a normal callback implementation.
  9. * @param {Object} opts - Options.
  10. * @param {RequestCallback} cb - Callback.
  11. */
  12. module.exports = sign.sign // Aliasing
  13. /**
  14. * This function is a normal callback implementation.
  15. * @function
  16. * @param {Object} opts - Options.
  17. * @param {RequestCallback} cb - Callback.
  18. */
  19. module.exports.sign = sign.sign
  20. /**
  21. * This function returns a promise signing the application.
  22. * @function
  23. * @param {mixed} opts - Options.
  24. * @returns {Promise} Promise.
  25. */
  26. module.exports.signAsync = sign.signAsync
  27. /**
  28. * This function is exported with normal callback implementation.
  29. * @function
  30. * @param {Object} opts - Options.
  31. * @param {RequestCallback} cb - Callback.
  32. */
  33. module.exports.flat = flat.flat
  34. /**
  35. * This function is exported and returns a promise flattening the application.
  36. * @function
  37. * @param {Object} opts - Options.
  38. * @returns {Promise} Promise.
  39. */
  40. module.exports.flatAsync = flat.flatAsync