@knowlearning/agents 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowlearning/agents",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "API for embedding applications in KnowLearning systems.",
5
5
  "main": "package/node.js",
6
6
  "browser": "package/browser.js",
@@ -1,4 +1,4 @@
1
- import { createApp, watchEffect } from 'npm/unscoped/vue/3.2.39'
1
+ import { createApp, watchEffect } from 'vue'
2
2
  import content from "./content.vue"
3
3
 
4
4
  // TODO: probably want to make this a util, and better fleshed out (with white instead of blacklist)
@@ -9,7 +9,7 @@ function isScopeSerializable(v) {
9
9
  }
10
10
 
11
11
  export default async function (module) {
12
- const component = { ...module.default } // copy component since we will mess with mounted and data functions
12
+ const component = module.default ? { ...module.default } : { ...module } // copy component since we will mess with mounted and data functions
13
13
 
14
14
  if (!component.ephemeral) {
15
15
  const state = await Agent.mutate()
@@ -0,0 +1,4 @@
1
+ // This shim is necessary to specify the vue import for our infrastructure
2
+ import 'npm/unscoped/vue/3.2.39'
3
+
4
+ export { default } from './component.js'