@servable/tools 1.2.0 → 1.2.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.2.
|
|
6
|
+
"version": "1.2.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",
|
|
@@ -844,6 +844,22 @@ export default class FeatureLoaderV1_0_0 extends BaseClass {
|
|
|
844
844
|
return data
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
+
async liveQueries() {
|
|
848
|
+
let path = `${this.path}/livequeries`
|
|
849
|
+
if (!(await checkFileExists(path))) {
|
|
850
|
+
return null
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
const data = (await directoryGlob({
|
|
854
|
+
path: `${path}/**/*.js`, globOptions: {
|
|
855
|
+
mark: true,
|
|
856
|
+
ignore: ['**/lib/**']
|
|
857
|
+
}
|
|
858
|
+
}))
|
|
859
|
+
return data
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
|
|
847
863
|
async jobFiles() {
|
|
848
864
|
const cacheKey = 'jobFiles'
|
|
849
865
|
if (this._valueInCache(cacheKey)) {
|
|
@@ -711,12 +711,12 @@ export default class FeatureLoaderV1_1_0 extends BaseClass {
|
|
|
711
711
|
return this._valueInCache(cacheKey)
|
|
712
712
|
}
|
|
713
713
|
//#TODO
|
|
714
|
-
const
|
|
715
|
-
if (!
|
|
716
|
-
return
|
|
714
|
+
const main = await this.main()
|
|
715
|
+
if (!main) {
|
|
716
|
+
return []
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
return
|
|
719
|
+
return main.liveClasses
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
//#region system
|
|
@@ -854,6 +854,20 @@ export default class FeatureLoaderV1_1_0 extends BaseClass {
|
|
|
854
854
|
return data
|
|
855
855
|
}
|
|
856
856
|
|
|
857
|
+
async liveQueries() {
|
|
858
|
+
let path = `${this.path}/livequeries`
|
|
859
|
+
if (!(await checkFileExists(path))) {
|
|
860
|
+
return null
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
const data = (await directoryGlob({
|
|
864
|
+
path: `${path}/**/*.js`, globOptions: {
|
|
865
|
+
mark: true,
|
|
866
|
+
ignore: ['**/lib/**']
|
|
867
|
+
}
|
|
868
|
+
}))
|
|
869
|
+
return data
|
|
870
|
+
}
|
|
857
871
|
|
|
858
872
|
async jobFiles() {
|
|
859
873
|
const cacheKey = 'jobFiles'
|