smsmslib 1.0.77 → 1.0.78
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/javascr/util/tree.js +5 -3
- package/package.json +2 -2
package/javascr/util/tree.js
CHANGED
|
@@ -60,6 +60,7 @@ export const go_tree_walk_ret = Object.freeze(
|
|
|
60
60
|
i_nostack: 1,
|
|
61
61
|
i_stop: 2,
|
|
62
62
|
i_noncb: 3,
|
|
63
|
+
i_fatal: 4,
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
66
|
|
|
@@ -253,11 +254,12 @@ function ao_TreeStack_push(ao_TreeStack, node)
|
|
|
253
254
|
function tree_walk_cb(f_cb, ao_TreeStack, from_child, user)
|
|
254
255
|
{
|
|
255
256
|
let i_result = go_tree_walk_ret.i_stop;
|
|
256
|
-
const b_continue = f_cb(ao_TreeStack, from_child, user);
|
|
257
257
|
const o_TreeStackLast = ao_TreeStack.at(- 1);
|
|
258
258
|
|
|
259
259
|
++(o_TreeStackLast.i_child);
|
|
260
260
|
|
|
261
|
+
const b_continue = f_cb(ao_TreeStack, from_child, user);
|
|
262
|
+
|
|
261
263
|
if (b_continue) /* If continue */
|
|
262
264
|
{
|
|
263
265
|
i_result = go_tree_walk_ret.i_ok;
|
|
@@ -282,7 +284,7 @@ function tree_walk_cb(f_cb, ao_TreeStack, from_child, user)
|
|
|
282
284
|
* - child : null.
|
|
283
285
|
* The i_child-th child node being visited.
|
|
284
286
|
*
|
|
285
|
-
* - i_child :
|
|
287
|
+
* - i_child : - 1(invalid).
|
|
286
288
|
* 0-based index of the child node.
|
|
287
289
|
*
|
|
288
290
|
* - to_parent: GI_FROM_CHILD_INI.
|
|
@@ -293,7 +295,7 @@ function tree_walk_cb(f_cb, ao_TreeStack, from_child, user)
|
|
|
293
295
|
function TreeStack_t(node)
|
|
294
296
|
{
|
|
295
297
|
const child = null;
|
|
296
|
-
const i_child =
|
|
298
|
+
const i_child = - 1;
|
|
297
299
|
const to_parent = GI_FROM_CHILD_INI;
|
|
298
300
|
|
|
299
301
|
const o_lit = sj_new_lit(() => ({node, child, i_child, to_parent}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "smsmslib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
4
4
|
"description": "Reusable functions for me.",
|
|
5
5
|
"files": [
|
|
6
6
|
"javascr/**/*.js",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"smsmslib": "^1.0.
|
|
22
|
+
"smsmslib": "^1.0.78"
|
|
23
23
|
}
|
|
24
24
|
}
|