scribe-cms 0.0.7 → 0.0.8

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/runtime.js CHANGED
@@ -1025,6 +1025,9 @@ function createProject(config) {
1025
1025
  getType: getRuntime,
1026
1026
  listTypes() {
1027
1027
  return Array.from(runtimes.values());
1028
+ },
1029
+ listRoutableTypes() {
1030
+ return Array.from(runtimes.values()).filter((runtime) => isRoutableType(runtime.config));
1028
1031
  }
1029
1032
  };
1030
1033
  }
@@ -1209,6 +1212,7 @@ function createScribe(input) {
1209
1212
  project,
1210
1213
  getType: project.getType,
1211
1214
  listTypes: project.listTypes,
1215
+ listRoutableTypes: project.listRoutableTypes,
1212
1216
  sitemap(options) {
1213
1217
  return generateSitemap(project, options);
1214
1218
  }
@@ -1219,6 +1223,6 @@ function createScribe(input) {
1219
1223
  return scribe;
1220
1224
  }
1221
1225
 
1222
- export { createScribe };
1226
+ export { createScribe, isRoutableType };
1223
1227
  //# sourceMappingURL=runtime.js.map
1224
1228
  //# sourceMappingURL=runtime.js.map