@milaboratories/milaboratories.monetization-test.model 1.0.31 → 1.0.32

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.
@@ -1,14 +1,14 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.monetization-test.model@1.0.31 build /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.32 build /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
4
4
  > ts-builder build --target block-model && block-tools build-model
5
5
 
6
6
  Building block-model project...
7
7
  ↳ rollup -c /configs/rollup.block-model.config.js
8
8
  
9
9
  ./src/index.ts → dist, dist...
10
- created dist, dist in 3.9s
10
+ created dist, dist in 5.3s
11
11
  
12
12
  ./src/index.ts → dist...
13
- created dist in 4.2s
13
+ created dist in 6s
14
14
  Build completed successfully
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.monetization-test.model@1.0.31 type-check /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.32 type-check /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
4
4
  > ts-builder types --target block-model
5
5
 
6
6
  ↳ tsc --noEmit --project ./tsconfig.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.monetization-test.model
2
2
 
3
+ ## 1.0.32
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [bf6fe49]
8
+ - @platforma-sdk/model@1.45.45
9
+
3
10
  ## 1.0.31
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -5002,7 +5002,7 @@
5002
5002
  ? undefined
5003
5003
  : {
5004
5004
  ...pObj,
5005
- data: cb(pObj.data),
5005
+ data: cb(typeof pObj.data === 'function' ? pObj.data() : pObj.data),
5006
5006
  };
5007
5007
  }
5008
5008
  function extractAllColumns(entry) {
@@ -6051,15 +6051,19 @@
6051
6051
  const isValues = (d) => Array.isArray(d);
6052
6052
  const isAccessor = (d) => d instanceof TreeNodeAccessor;
6053
6053
  let ready = true;
6054
- if (isAccessor(c.data)) {
6055
- ready &&= c.data.getIsReadyOrError();
6054
+ const data = typeof c.data === 'function' ? c.data() : c.data;
6055
+ if (data == null) {
6056
+ return false;
6057
+ }
6058
+ else if (isAccessor(data)) {
6059
+ ready &&= data.getIsReadyOrError();
6056
6060
  }
6057
- else if (isDataInfo(c.data)) {
6058
- visitDataInfo(c.data, (v) => ready &&= v.getIsReadyOrError());
6061
+ else if (isDataInfo(data)) {
6062
+ visitDataInfo(data, (v) => ready &&= v.getIsReadyOrError());
6059
6063
  }
6060
- else if (!isValues(c.data)) {
6064
+ else if (!isValues(data)) {
6061
6065
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
6062
- throw Error(`unsupported column data type: ${c.data}`);
6066
+ throw Error(`unsupported column data type: ${data}`);
6063
6067
  }
6064
6068
  return ready;
6065
6069
  }
@@ -6914,7 +6918,7 @@
6914
6918
  }
6915
6919
  }
6916
6920
 
6917
- var version = "1.45.42";
6921
+ var version = "1.45.45";
6918
6922
 
6919
6923
  const PlatformaSDKVersion = version;
6920
6924