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.

internal-preload-module.js 582B

12345678910111213141516171819202122232425
  1. 'use strict';
  2. function findInternalPreloadModule() {
  3. /* This song-and-dance is to keep esm happy. */
  4. let mod = module;
  5. const seen = new Set([mod]);
  6. while ((mod = mod.parent)) {
  7. /* Generally if we're being preloaded then
  8. * mod.parent.id should be 'internal/preload' */
  9. /* istanbul ignore next: paranoia */
  10. if (seen.has(mod)) {
  11. return module;
  12. }
  13. seen.add(mod);
  14. /* istanbul ignore next: this is hit but coverage cannot be collected */
  15. if (mod.id === 'internal/preload') {
  16. return mod;
  17. }
  18. }
  19. return module;
  20. }
  21. module.exports = findInternalPreloadModule();