corebasic 1.0.108 → 1.0.110

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.
Files changed (2) hide show
  1. package/libs/features.js +4 -0
  2. package/package.json +1 -1
package/libs/features.js CHANGED
@@ -115,7 +115,11 @@ export const start = async (app, url, file) => {
115
115
  continue
116
116
 
117
117
  app[method](url, async (req, res) => {
118
+ if (!req.body.feature)
119
+ console.warn(`Feature: ${req.body.feature} not available`, req.url, req.params, req.body, req)
118
120
  let feature = getFeature(req.body.feature)
121
+ if (!feature)
122
+ console.warn(`Feature: ${req.body.feature} not available`, req.url, req.params, req.body)
119
123
  let topic = feature.topic
120
124
  try {
121
125
  let params = getFeatureUrl(feature.api).split("/").filter(item => item.startsWith(":")).map(item => item.replace(":", ""))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.108",
4
+ "version": "1.0.110",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {