@ckeditor/ckeditor5-dev-manual-server 56.2.0 → 56.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -107,7 +107,6 @@ function matchFiles(patterns, workspaceRoot) {
|
|
|
107
107
|
* For licensing, see LICENSE.md.
|
|
108
108
|
*/
|
|
109
109
|
const PROCESSED_MANUAL_TEST_EXTENSIONS = new Set([
|
|
110
|
-
".css",
|
|
111
110
|
".html",
|
|
112
111
|
".js",
|
|
113
112
|
".md",
|
|
@@ -283,8 +282,12 @@ function isManualTestScriptNode(node, testScriptFileName) {
|
|
|
283
282
|
if (node.tagName != "script") return false;
|
|
284
283
|
const source = getAttribute(node, "src");
|
|
285
284
|
if (!source) return false;
|
|
285
|
+
if (isExternalScriptSource$1(source)) return false;
|
|
286
286
|
return getScriptModuleName(posix.basename(source.split("?")[0].split("#")[0])) == getScriptModuleName(testScriptFileName);
|
|
287
287
|
}
|
|
288
|
+
function isExternalScriptSource$1(source) {
|
|
289
|
+
return source.startsWith("http://") || source.startsWith("https://") || source.startsWith("//");
|
|
290
|
+
}
|
|
288
291
|
function getScriptModuleName(fileName) {
|
|
289
292
|
return fileName.replace(/\.[jt]s$/, "");
|
|
290
293
|
}
|
|
@@ -439,8 +442,12 @@ function isSourceTestScript(node, testScriptFileName) {
|
|
|
439
442
|
if (!isElementNode(node) || node.tagName != "script") return false;
|
|
440
443
|
const source = getAttribute(node, "src");
|
|
441
444
|
if (!source) return false;
|
|
445
|
+
if (isExternalScriptSource(source)) return false;
|
|
442
446
|
return posix.basename(source) == testScriptFileName;
|
|
443
447
|
}
|
|
448
|
+
function isExternalScriptSource(source) {
|
|
449
|
+
return source.startsWith("http://") || source.startsWith("https://") || source.startsWith("//");
|
|
450
|
+
}
|
|
444
451
|
function isSourceShellScript(node, shellScriptPublicPath) {
|
|
445
452
|
return isElementNode(node) && node.tagName == "script" && getAttribute(node, "src") == shellScriptPublicPath;
|
|
446
453
|
}
|
package/package.json
CHANGED