@servable/tools 1.0.1 → 1.1.1

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
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "source": "src/index.js",
5
5
  "main": "src/index.js",
6
- "version": "1.0.1",
6
+ "version": "1.1.1",
7
7
  "description": "Servable tools is a utility that builds a feature's manifest and documents it.",
8
8
  "author": "Servable Community",
9
9
  "license": "ISC",
@@ -631,7 +631,7 @@ export default class FeatureLoaderV1_0_0 extends BaseClass {
631
631
  return null
632
632
  }
633
633
 
634
- const path = `${this.path}/schema/${version}/${subPath}`
634
+ const path = `${this.path}/schema/${version}/migration/${subPath}/index.js`
635
635
  if (!(await checkFileExists(path))) {
636
636
  return null
637
637
  }
@@ -21,8 +21,8 @@ export default class FeatureLoaderV1_1_0 extends BaseClass {
21
21
  return this._valueInCache(cacheKey)
22
22
  }
23
23
 
24
- const path = `${this.path}/models/${className.toLowerCase()}target/class/index.js`
25
- // const path = `${this.path}/models/${className.toLowerCase()}target/class/index.js`
24
+ const path = `${this.path}/models/${className.toLowerCase()}target/class.js`
25
+ // const path = `${this.path}/models/${className.toLowerCase()}target/class.js`
26
26
 
27
27
  if (!(await checkFileExists(path))) {
28
28
  //console.log('class>', className, 'file does not exist', path)
@@ -419,7 +419,7 @@ export default class FeatureLoaderV1_1_0 extends BaseClass {
419
419
  return null
420
420
  }
421
421
 
422
- const path = `${this.path}/schema/${version}/${subPath}`
422
+ const path = `${this.path}/schema/${version}/${subPath}.js`
423
423
  if (!(await checkFileExists(path))) {
424
424
  return null
425
425
  }
@@ -448,7 +448,7 @@ export default class FeatureLoaderV1_1_0 extends BaseClass {
448
448
  }
449
449
 
450
450
  let data = mergeClassFeatures({ items, _class, withFeaturesFeatures })
451
- const path = `${this.path}/models/${className.toLowerCase()}target/class/features.js`
451
+ const path = `${this.path}/models/${className.toLowerCase()}target/features.js`
452
452
 
453
453
  if ((await checkFileExists(path))) {
454
454
 
@@ -473,7 +473,7 @@ export default class FeatureLoaderV1_1_0 extends BaseClass {
473
473
  return this._valueInCache(cacheKey)
474
474
  }
475
475
 
476
- let path = `${this.path}target/class/features.js`
476
+ let path = `${this.path}target/features.js`
477
477
  if (!(await checkFileExists(path))) {
478
478
  return null
479
479
  }
@@ -490,7 +490,7 @@ export default class FeatureLoaderV1_1_0 extends BaseClass {
490
490
  return this._valueInCache(cacheKey)
491
491
  }
492
492
 
493
- const path = `${this.path}target/class/index.js`
493
+ const path = `${this.path}target/class.js`
494
494
  if (!(await checkFileExists(path))) {
495
495
  return null
496
496
  }
@@ -11,7 +11,7 @@ export default class Servable {
11
11
  }
12
12
  }
13
13
 
14
- async hydrate({ servableConfig, frameworkBridge, app }) {
14
+ async hydrate({ servableConfig, engine, app }) {
15
15
 
16
16
  }
17
17
 
@@ -26,7 +26,7 @@ const perform = async ({
26
26
  }
27
27
 
28
28
  if (feature.id === 'app') {
29
- await Servable.frameworkBridge.formatAppClassesSchemas({ classesSchemas })
29
+ await Servable.engine.formatAppClassesSchemas({ classesSchemas })
30
30
  }
31
31
 
32
32
  let adaptedClassesStructs = []
@@ -18,7 +18,6 @@ export default async ({ servableConfig }) => {
18
18
  servableConfig,
19
19
  featuresCache,
20
20
  instancesPathId: [
21
- // { type: 'class', value: { className: '_root' } },
22
21
  { type: 'feature', value: { id: 'app' } }
23
22
  ],
24
23
  })