corebasic 1.0.109 → 1.0.111

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 +3 -0
  2. package/package.json +1 -1
package/libs/features.js CHANGED
@@ -53,6 +53,7 @@ export const send = async (meta, feature, data, params) => {
53
53
  }
54
54
 
55
55
  let payload = { ...meta, data, feature, txn: Utils.uid() }
56
+ service = service.replace('http://slyp.app', 'https://slyp.app')
56
57
 
57
58
  // return (await axios[method](`${service}${url}`, { data: payload, headers: {jwt: headers.jwt}, timeout: 1000 })).data
58
59
  return (await axios[method](`${service}${url}`, payload, {headers: {jwt: SERVICE_ACCESS_TOKEN, service: true}, timeout: 1000 })).data
@@ -115,6 +116,8 @@ export const start = async (app, url, file) => {
115
116
  continue
116
117
 
117
118
  app[method](url, async (req, res) => {
119
+ if (!req.body.feature)
120
+ console.warn(`Feature: ${req.body.feature} not available`, req.url, req.params, req.body, req)
118
121
  let feature = getFeature(req.body.feature)
119
122
  if (!feature)
120
123
  console.warn(`Feature: ${req.body.feature} not available`, req.url, req.params, req.body)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.109",
4
+ "version": "1.0.111",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {