@embeddable.com/sdk-react 0.1.0 → 0.1.2
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.umd.js +5 -0
- package/package.json +1 -1
- package/scripts/generate.js +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
});
|
|
99
99
|
window.dispatchEvent(event);
|
|
100
100
|
};
|
|
101
|
+
|
|
102
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
103
|
+
var e = new Error(message);
|
|
104
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
105
|
+
};
|
|
101
106
|
|
|
102
107
|
var UPDATE_PROPS_EVENT_NAME = 'embeddable-event:update-props';
|
|
103
108
|
var RELOAD_DATASET_EVENT_NAME = 'embeddable-event:reload-dataset';
|
package/package.json
CHANGED
package/scripts/generate.js
CHANGED
|
@@ -10,7 +10,7 @@ process.on('message', async ({ ctx }) => {
|
|
|
10
10
|
process.exit();
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
const EMB_FILE_REGEX = /^(.*)(?<!\.type)\.emb\.[jt]s$/;
|
|
13
|
+
const EMB_FILE_REGEX = /^(.*)(?<!\.type|\.options)\.emb\.[jt]s$/;
|
|
14
14
|
|
|
15
15
|
async function generate(ctx) {
|
|
16
16
|
const filesList = await core.findEmbFiles(ctx.client.srcDir, EMB_FILE_REGEX);
|