@nascentdigital/funnel-core 4.4.4 → 4.4.10
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.
|
@@ -15,7 +15,7 @@ export declare class PageModel<TPage extends Page = Page> {
|
|
|
15
15
|
*
|
|
16
16
|
* @param updates - a collection of updates to be applied to this page.
|
|
17
17
|
*/
|
|
18
|
-
update(updates: ReadonlyArray<Page.Update
|
|
18
|
+
update(updates: ReadonlyArray<Page.Update>, skipSync?: boolean): void;
|
|
19
19
|
private updateTags;
|
|
20
20
|
private updateBlockCreate;
|
|
21
21
|
private updateBlockDelete;
|
package/dist/schema/PageModel.js
CHANGED
|
@@ -54,7 +54,7 @@ class PageModel {
|
|
|
54
54
|
*
|
|
55
55
|
* @param updates - a collection of updates to be applied to this page.
|
|
56
56
|
*/
|
|
57
|
-
update(updates) {
|
|
57
|
+
update(updates, skipSync = false) {
|
|
58
58
|
// apply updates
|
|
59
59
|
updates.forEach(update => {
|
|
60
60
|
switch (update.type) {
|
|
@@ -97,7 +97,9 @@ class PageModel {
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
// finally, sync the model
|
|
100
|
-
|
|
100
|
+
if (!skipSync) {
|
|
101
|
+
this.sync();
|
|
102
|
+
}
|
|
101
103
|
}
|
|
102
104
|
updateTags(update) {
|
|
103
105
|
// replace slug
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-core",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.10",
|
|
4
4
|
"repository": {
|
|
5
|
-
"url": "https://github.com/nascentdigital/funnel.git",
|
|
5
|
+
"url": "git+https://github.com/nascentdigital/funnel.git",
|
|
6
6
|
"directory": "libs/core"
|
|
7
7
|
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"registry": "https://npmjs.org"
|
|
10
|
+
},
|
|
8
11
|
"main": "dist/index.js",
|
|
9
12
|
"types": "dist/index.d.ts",
|
|
10
13
|
"exports": {
|
|
@@ -60,5 +63,5 @@
|
|
|
60
63
|
"jest-tsd": "^0.2.2",
|
|
61
64
|
"ts-jest": "^29.3.2"
|
|
62
65
|
},
|
|
63
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "3aa36fa46c32ad625f569ea4b9e43aab80937ff4"
|
|
64
67
|
}
|