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.

getCookies.js 589B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. async function getCookies(names) {
  4. if (names === undefined) {
  5. return this.getAllCookies();
  6. }
  7. const namesList = Array.isArray(names) ? names : [names];
  8. if (namesList.every(obj => typeof obj !== 'string')) {
  9. throw new Error('Invalid input (see https://webdriver.io/docs/api/browser/getCookies.html for documentation.');
  10. }
  11. const allCookies = await this.getAllCookies();
  12. return allCookies.filter(cookie => namesList.includes(cookie.name));
  13. }
  14. exports.default = getCookies;