@sealcode/sealgen 0.15.61 → 0.15.63
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.
|
@@ -35,7 +35,7 @@ const deep_reverse_single_reference_handler = async (collection_name, {
|
|
|
35
35
|
(link) => !should_exist_ids.includes(link.get("${intermediary_field_that_points_there}"))
|
|
36
36
|
);
|
|
37
37
|
const to_create_ids = should_exist_ids.filter(
|
|
38
|
-
(id) => !existing_links.map((
|
|
38
|
+
(id) => !existing_links.map((link) => link.get("${intermediary_field_that_points_there}")).includes(id)
|
|
39
39
|
);
|
|
40
40
|
await Promise.all(to_delete.map((item) => item.remove(ctx.$context)));
|
|
41
41
|
// Then, we iterate over all selected values and insert appropriate missing links
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealcode/sealgen",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.63",
|
|
4
4
|
"description": "Module to automate adding routes and collections to a sealious application",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"prettier": "^2.7.1",
|
|
75
75
|
"prompts": "^2.4.2",
|
|
76
76
|
"recursive-readdir": "^2.2.3",
|
|
77
|
-
"tempstream": "^0.4.
|
|
77
|
+
"tempstream": "^0.4.4",
|
|
78
78
|
"tiny-glob": "^0.2.9",
|
|
79
79
|
"ws": "^8.16.0",
|
|
80
80
|
"yargs": "^17.6.2"
|
|
@@ -54,7 +54,7 @@ export const deep_reverse_single_reference_handler: FieldHandler<
|
|
|
54
54
|
(link) => !should_exist_ids.includes(link.get("${intermediary_field_that_points_there}"))
|
|
55
55
|
);
|
|
56
56
|
const to_create_ids = should_exist_ids.filter(
|
|
57
|
-
(id) => !existing_links.map((
|
|
57
|
+
(id) => !existing_links.map((link) => link.get("${intermediary_field_that_points_there}")).includes(id)
|
|
58
58
|
);
|
|
59
59
|
await Promise.all(to_delete.map((item) => item.remove(ctx.$context)));
|
|
60
60
|
// Then, we iterate over all selected values and insert appropriate missing links
|