@fibery/schema 8.3.0 → 8.4.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/index.js +4 -3
- package/package.json +3 -3
- package/types.d.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -102,12 +102,12 @@ let traceErrorSubscribers = [console.error.bind(console)];
|
|
|
102
102
|
const overridden = false;
|
|
103
103
|
function subscribeOnTraceError(fn) {
|
|
104
104
|
if (overridden) {
|
|
105
|
-
throw new Error("
|
|
105
|
+
throw new Error("can't subscribe while overridden");
|
|
106
106
|
}
|
|
107
107
|
traceErrorSubscribers.push(fn);
|
|
108
108
|
let unsubscribed = false;
|
|
109
109
|
return function unsubscribe() {
|
|
110
|
-
assert(!unsubscribed, "
|
|
110
|
+
assert(!unsubscribed, "Can't unsubscribe more than once");
|
|
111
111
|
unsubscribed = true;
|
|
112
112
|
traceErrorSubscribers = traceErrorSubscribers.filter(x => x !== fn);
|
|
113
113
|
};
|
|
@@ -127,7 +127,7 @@ function subscribeOnCaptureMessage(fn) {
|
|
|
127
127
|
captureMessageSubscribers.push(fn);
|
|
128
128
|
let unsubscribed = false;
|
|
129
129
|
return function unsubscribe() {
|
|
130
|
-
assert(!unsubscribed, "
|
|
130
|
+
assert(!unsubscribed, "Can't unsubscribe more than once");
|
|
131
131
|
unsubscribed = true;
|
|
132
132
|
captureMessageSubscribers = captureMessageSubscribers.filter(x => x !== fn);
|
|
133
133
|
};
|
|
@@ -600,6 +600,7 @@ class TypeObject {
|
|
|
600
600
|
const rawMeta = rawTypeObject["fibery/meta"] || {};
|
|
601
601
|
this.rawMeta = rawMeta;
|
|
602
602
|
this.isDomain = rawMeta["fibery/domain?"] || false;
|
|
603
|
+
this.isPlatform = rawMeta["fibery/platform?"] || false;
|
|
603
604
|
this.isHighlight = rawMeta["fibery/highlight?"] || false;
|
|
604
605
|
this.isMixin = rawMeta["app/mixin?"] || false;
|
|
605
606
|
this.mixinIcon = rawMeta["ui/mixin-icon"] || null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/schema",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"description": "utils for working with fibery schema",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": "./index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"jest-junit": "13.0.0",
|
|
26
26
|
"webpack": "5.87.0",
|
|
27
27
|
"webpack-cli": "4.10.0",
|
|
28
|
-
"@fibery/
|
|
29
|
-
"@fibery/
|
|
28
|
+
"@fibery/eslint-config": "8.5.0",
|
|
29
|
+
"@fibery/babel-preset": "7.3.0"
|
|
30
30
|
},
|
|
31
31
|
"jest": {
|
|
32
32
|
"testEnvironment": "node",
|
package/types.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export type TypeObject = {
|
|
|
71
71
|
color: string;
|
|
72
72
|
units: unknown | null;
|
|
73
73
|
installedMixins: Set<string>;
|
|
74
|
-
syncSource: {appId: string} | null;
|
|
74
|
+
syncSource: {appId: string; appName: string; id: string; state: string; type: string} | null;
|
|
75
75
|
version: string;
|
|
76
76
|
installedMixinTypeObjects: unknown;
|
|
77
77
|
title: string;
|