bajo 0.2.22 → 0.2.23

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.
@@ -5,6 +5,7 @@ async function buildCollections (options = {}) {
5
5
  let { plugin, handler, dupChecks = [], container = 'connections', useDefaultName } = options
6
6
  useDefaultName = useDefaultName ?? true
7
7
  if (!plugin) plugin = getPluginName(4)
8
+ const config = getConfig()
8
9
  const cfg = getConfig(plugin, { full: true })
9
10
  if (!cfg[container]) return []
10
11
  if (!isArray(cfg[container])) cfg[container] = [cfg[container]]
@@ -22,6 +23,7 @@ async function buildCollections (options = {}) {
22
23
  const result = await handler.call(this, { item, index, cfg })
23
24
  if (result) cfg[container][index] = result
24
25
  else if (result === false) deleted.push(index)
26
+ if (config.tool && item.skipOnTool && !deleted.includes(index)) deleted.push(index)
25
27
  }
26
28
  if (deleted.length > 0) pullAt(cfg[container], deleted)
27
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "A framework to build a giant monstrous app rapidly",
5
5
  "main": "boot/index.js",
6
6
  "scripts": {