theprogrammablemind_4wp 9.3.0-beta.51 → 9.3.0-beta.53

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/client.js +7 -2
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -4,6 +4,7 @@ const { Config } = require('./src/config')
4
4
  const { loadInstance, setupArgs, gs, processContext, getObjects, setupProcessB, processContextsB } = require('./src/configHelpers')
5
5
  const Digraph = require('./src/digraph')
6
6
  const { project } = require('./src/project')
7
+ const { project:project2 } = require('./src/project2')
7
8
  const fetch = require('node-fetch')
8
9
  const base64 = require('base-64')
9
10
  const deepEqual = require('deep-equal')
@@ -50,7 +51,7 @@ const getConfig_getContextCheck = (testConfig) => {
50
51
  }
51
52
 
52
53
  const pickContext = (testConfig) => (context) => {
53
- return project(context, getConfig_getContextCheck(testConfig))
54
+ return project2(context, getConfig_getContextCheck(testConfig))
54
55
  }
55
56
 
56
57
  const pickObjects = (config, testConfig, getObjects) => {
@@ -68,7 +69,11 @@ const pickObjects = (config, testConfig, getObjects) => {
68
69
  if (!objects) {
69
70
  throw new Error(`In the checks for ${config.name} the KM ${km} does not exist`)
70
71
  }
71
- projection[km] = project(objects, checks[km])
72
+ if (checks[km] && checks[km].find((check) => check.match && check.apply)) {
73
+ projection[km] = project2(objects, checks[km])
74
+ } else {
75
+ projection[km] = project(objects, checks[km])
76
+ }
72
77
  }
73
78
  return projection
74
79
  }
package/package.json CHANGED
@@ -69,6 +69,6 @@
69
69
  "sort-json": "^2.0.0",
70
70
  "uuid": "^8.3.2"
71
71
  },
72
- "version": "9.3.0-beta.51",
72
+ "version": "9.3.0-beta.53",
73
73
  "license": "UNLICENSED"
74
74
  }