@knowlearning/agents 0.9.34 → 0.9.35
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/package.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { watchEffect, defineAsyncComponent } from 'vue'
|
|
2
2
|
import { browserAgent } from '../../../browser.js'
|
|
3
3
|
|
|
4
|
-
const Agent = browserAgent()
|
|
5
|
-
|
|
6
4
|
// TODO: probably want to make this a util, and better fleshed out (with white instead of blacklist)
|
|
7
5
|
function isScopeSerializable(v) {
|
|
8
6
|
return !(
|
|
@@ -11,6 +9,7 @@ function isScopeSerializable(v) {
|
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
export default function (module, scope) {
|
|
12
|
+
const Agent = browserAgent()
|
|
14
13
|
return defineAsyncComponent(async function () {
|
|
15
14
|
const component = module.default ? { ...module.default } : { ...module } // copy component since we will mess with mounted and data functions
|
|
16
15
|
|