@markuplint/ml-core 3.1.0 → 3.3.0
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/lib/ml-dom/helper/walkers.js +18 -15
- package/package.json +13 -10
|
@@ -25,21 +25,24 @@ function sequentialWalker(list, walker) {
|
|
|
25
25
|
_reject = reject;
|
|
26
26
|
});
|
|
27
27
|
const loop = (index = 0) => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
while (true) {
|
|
29
|
+
if (index >= list.length) {
|
|
30
|
+
_resolve();
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const node = list[index];
|
|
34
|
+
if (!node) {
|
|
35
|
+
_resolve();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const result = walker(node);
|
|
39
|
+
if (result instanceof Promise) {
|
|
40
|
+
result.then(() => loop(index + 1)).catch(_reject);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
index = index + 1;
|
|
45
|
+
}
|
|
43
46
|
}
|
|
44
47
|
};
|
|
45
48
|
loop();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/ml-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "The core module of markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
|
+
"typedoc": {
|
|
15
|
+
"entryPoint": "./src/index.ts"
|
|
16
|
+
},
|
|
14
17
|
"scripts": {
|
|
15
18
|
"build": "tsc",
|
|
16
19
|
"dev": "tsc --build --watch",
|
|
@@ -20,19 +23,19 @@
|
|
|
20
23
|
"./lib/configs.js": "./lib/configs.browser.js"
|
|
21
24
|
},
|
|
22
25
|
"dependencies": {
|
|
23
|
-
"@markuplint/config-presets": "3.
|
|
24
|
-
"@markuplint/i18n": "3.
|
|
25
|
-
"@markuplint/ml-ast": "3.0.0
|
|
26
|
-
"@markuplint/ml-config": "3.
|
|
27
|
-
"@markuplint/ml-spec": "3.
|
|
28
|
-
"@markuplint/parser-utils": "3.
|
|
29
|
-
"@markuplint/selector": "3.
|
|
26
|
+
"@markuplint/config-presets": "3.3.0",
|
|
27
|
+
"@markuplint/i18n": "3.3.0",
|
|
28
|
+
"@markuplint/ml-ast": "3.0.0",
|
|
29
|
+
"@markuplint/ml-config": "3.3.0",
|
|
30
|
+
"@markuplint/ml-spec": "3.3.0",
|
|
31
|
+
"@markuplint/parser-utils": "3.3.0",
|
|
32
|
+
"@markuplint/selector": "3.3.0",
|
|
30
33
|
"debug": "^4.3.4",
|
|
31
34
|
"tslib": "^2.4.1"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
|
-
"@markuplint/html-parser": "3.
|
|
37
|
+
"@markuplint/html-parser": "3.3.0",
|
|
35
38
|
"@types/debug": "^4.1.7"
|
|
36
39
|
},
|
|
37
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "791fb22a4df7acb985ced3808923fba0cd95c28a"
|
|
38
41
|
}
|