@miso.ai/client-sdk-core 1.8.0-beta.0 → 1.8.0-beta.11
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/dist/cjs/client.js
CHANGED
|
@@ -18,7 +18,7 @@ class MisoClient extends _commons.Component {
|
|
|
18
18
|
if (window.MisoClient) {
|
|
19
19
|
if (window.MisoClient !== MisoClient) {
|
|
20
20
|
// TODO: check version as well
|
|
21
|
-
console.warn(`
|
|
21
|
+
console.warn(`window.MisoClient already exists: (${window.MisoClient.version}).`);
|
|
22
22
|
}
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
@@ -101,6 +101,7 @@ class PluginRoot extends _commons.Registry {
|
|
|
101
101
|
}
|
|
102
102
|
if (typeof instance.config === 'function') {
|
|
103
103
|
instance.config(options);
|
|
104
|
+
this._events.emit('config', [instance, options]);
|
|
104
105
|
} else {
|
|
105
106
|
this._warn(`Attempt to pass options to plugin "${instance.id}", which offers no config() method.`);
|
|
106
107
|
}
|
package/dist/cjs/version.js
CHANGED
package/dist/es/client.js
CHANGED
|
@@ -9,7 +9,7 @@ class MisoClient extends Component {
|
|
|
9
9
|
if (window.MisoClient) {
|
|
10
10
|
if (window.MisoClient !== MisoClient) {
|
|
11
11
|
// TODO: check version as well
|
|
12
|
-
console.warn(`
|
|
12
|
+
console.warn(`window.MisoClient already exists: (${window.MisoClient.version}).`);
|
|
13
13
|
}
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
@@ -94,6 +94,7 @@ export default class PluginRoot extends Registry {
|
|
|
94
94
|
}
|
|
95
95
|
if (typeof instance.config === 'function') {
|
|
96
96
|
instance.config(options);
|
|
97
|
+
this._events.emit('config', [instance, options]);
|
|
97
98
|
} else {
|
|
98
99
|
this._warn(`Attempt to pass options to plugin "${instance.id}", which offers no config() method.`);
|
|
99
100
|
}
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.8.0-beta.
|
|
1
|
+
export default '1.8.0-beta.11';
|
package/package.json
CHANGED