Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

executeAsync.js 564B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const utils_1 = require("../../utils");
  4. function executeAsync(script, ...args) {
  5. if ((typeof script !== 'string' && typeof script !== 'function')) {
  6. throw new Error('number or type of arguments don\'t agree with execute protocol command');
  7. }
  8. if (typeof script === 'function') {
  9. script = `return (${script}).apply(null, arguments)`;
  10. }
  11. return this.executeAsyncScript(script, utils_1.verifyArgsAndStripIfElement(args));
  12. }
  13. exports.default = executeAsync;