solid-ctrl-flow 1.0.16 → 1.0.17

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.
package/dist/index.d.ts CHANGED
@@ -127,7 +127,7 @@ export declare function runWithContext<T, R>(ctx: Context<T>, value: T, f: (x: T
127
127
  * @param obj Object to split and partially memoize
128
128
  * @param keys The keys of the properties to memoize and to include in the first of the two objects
129
129
  */
130
- export declare function splitAndMemoProps<T extends object, K extends readonly (keyof T)[]>(obj: T, keys: K): readonly [Pick<Pick<T, Extract<K, readonly (keyof T)[]>[number]>, K[number]>, Omit<T, K[number]>];
130
+ export declare function splitAndMemoProps<T extends object, K extends readonly (keyof T)[]>(obj: T, keys: K): [Pick<T, Extract<K, readonly (keyof T)[]>[number]>, Omit<T, K[number]>];
131
131
 
132
132
  /**
133
133
  * Executes {@link f} untracking it.
package/dist/index.mjs CHANGED
@@ -13,8 +13,9 @@ function memoProps(obj, keys = Object.keys(obj)) {
13
13
  return out;
14
14
  }
15
15
  function splitAndMemoProps(obj, keys) {
16
- const [mine, other] = splitProps(obj, keys);
17
- return [memoProps(mine, keys), other];
16
+ const out = splitProps(obj, keys);
17
+ out[0] = memoProps(out[0], keys);
18
+ return out;
18
19
  }
19
20
  function createOption(init, def = init, name) {
20
21
  const prop = "read";
package/dist/index.umd.js CHANGED
@@ -15,8 +15,9 @@
15
15
  return out;
16
16
  }
17
17
  function splitAndMemoProps(obj, keys) {
18
- const [mine, other] = solidJs.splitProps(obj, keys);
19
- return [memoProps(mine, keys), other];
18
+ const out = solidJs.splitProps(obj, keys);
19
+ out[0] = memoProps(out[0], keys);
20
+ return out;
20
21
  }
21
22
  function createOption(init, def = init, name) {
22
23
  const prop = "read";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-ctrl-flow",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Control flow components for solid-js",
5
5
  "author": "AFatNiBBa",
6
6
  "license": "ISC",