Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |     |   Wurzel  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

einige Melodien

Quellcode-Bibliothek mozsrcUriPlugin.js   Sprache: JAVA

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


// This plugin supports finding files with particular resource:// URIs
// and translating the uri into a relative filesystem path where the file may be
// found when running within the Karma / Mocha test framework.

const path = require("path");

module.exports = {
  MozSrcUriPlugin: class MozSrcUriPlugin {
    /**
     * The base directory of the repository.
     */

    #baseDir;

    /**
     * @param {object} options
     *  Object passed during the instantiation of MozSrcUriPlugin
     * @param {string} options.baseDir
     *   The base directory of the repository.
     */

    constructor({ baseDir }) {
      this.#baseDir = baseDir;
    }

    apply(compiler) {
      compiler.hooks.compilation.tap(
        "MozSrcUriPlugin",
        (compilation, { normalModuleFactory }) => {
          normalModuleFactory.hooks.resolveForScheme
            .for("moz-src")
            .tap("MozSrcUriPlugin", resourceData => {
              const url = new URL(resourceData.resource);

              // path.join() is necessary to normalize the path on Windows.
              // Without it, the path may contain backslashes, resulting in
              // different build output on Windows than on Unix systems.
              const pathname = path.join(this.#baseDir, url.pathname);
              resourceData.path = pathname;
              resourceData.query = url.search;
              resourceData.fragment = url.hash;
              resourceData.resource = pathname + url.search + url.hash;
              return true;
            });
        }
      );
    }
  },
};

Messung V0.5 in Prozent
C=84 H=80 G=81

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.11Bemerkung:  (vorverarbeitet am  2026-09-29) ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1867298