@live-change/relations-plugin 0.8.40 → 0.8.42

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/combinations.js +3 -3
  2. package/package.json +3 -3
package/combinations.js CHANGED
@@ -1,6 +1,6 @@
1
1
  function combinations(x, n ,p=[]) {
2
- if(x.length == 0 || n > x.length) return []
3
- if(n == 1 || x.length == 1) return x.map(e=>p.concat([e]))
2
+ if(x.length === 0 || n > x.length) return []
3
+ if(n === 1 || x.length === 1) return x.map(e=>p.concat([e]))
4
4
  let acc = []
5
5
  for(let i = 0; i < x.length; i++) acc.push(
6
6
  ...combinations(x.slice(i+1), n - 1, p.concat([x[i]]))
@@ -10,7 +10,7 @@ function combinations(x, n ,p=[]) {
10
10
 
11
11
  function allCombinations(x) {
12
12
  let acc = []
13
- for(let i = 1; i<=x.length; i++) acc.push(...combinations(x,i))
13
+ for(let i = 1; i <= x.length; i++) acc.push(...combinations(x, i))
14
14
  return acc
15
15
  }
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/relations-plugin",
3
- "version": "0.8.40",
3
+ "version": "0.8.42",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "type": "module",
24
24
  "dependencies": {
25
- "@live-change/framework": "^0.8.40",
25
+ "@live-change/framework": "^0.8.42",
26
26
  "pluralize": "^8.0.0"
27
27
  },
28
- "gitHead": "5a12ec795f6fa16f30203aef3ad1534660fa5146"
28
+ "gitHead": "3aee0e7026e57fb72343e1254f0137959d958b6f"
29
29
  }