@milaboratories/milaboratories.monetization-test.model 1.0.0 → 1.0.2

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,5 +1,5 @@
1
1
 
2
- > @milaboratories/milaboratories.monetization-test.model@1.0.0 build /home/runner/work/platforma/platforma/etc/blocks/monetization-test/model
2
+ > @milaboratories/milaboratories.monetization-test.model@1.0.2 build /home/runner/work/platforma/platforma/etc/blocks/monetization-test/model
3
3
  > tsup && vite build && block-tools build-model
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,21 +10,21 @@
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- CJS dist/index.cjs 808.00 B
14
- CJS dist/index.cjs.map 1.91 KB
15
- CJS ⚡️ Build success in 58ms
16
- ESM dist/index.js 782.00 B
17
- ESM dist/index.js.map 1.90 KB
18
- ESM ⚡️ Build success in 59ms
13
+ CJS dist/index.cjs 1.10 KB
14
+ CJS dist/index.cjs.map 2.65 KB
15
+ CJS ⚡️ Build success in 64ms
16
+ ESM dist/index.js 1.07 KB
17
+ ESM dist/index.js.map 2.63 KB
18
+ ESM ⚡️ Build success in 64ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 684ms
21
- DTS dist/index.d.cts 735.00 B
22
- DTS dist/index.d.ts 735.00 B
20
+ DTS ⚡️ Build success in 758ms
21
+ DTS dist/index.d.cts 850.00 B
22
+ DTS dist/index.d.ts 850.00 B
23
23
  vite v5.4.11 building for production...
24
24
  transforming...
25
25
  ✓ 4 modules transformed.
26
26
  rendering chunks...
27
27
  computing gzip size...
28
- dist/bundle.js 140.83 kB │ gzip: 25.48 kB │ map: 310.87 kB
29
- dist/bundle.js 150.79 kB │ gzip: 25.95 kB │ map: 311.95 kB
30
- ✓ built in 411ms
28
+ dist/bundle.js 141.23 kB │ gzip: 25.54 kB │ map: 311.47 kB
29
+ dist/bundle.js 151.20 kB │ gzip: 26.01 kB │ map: 312.55 kB
30
+ ✓ built in 501ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @milaboratories/milaboratories.monetization-test.model
2
+
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 2dee61b: Monetization Component Demo
8
+ - 36e4ae8: Monetization demo part 1
9
+
10
+ ## 1.0.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 21465ea: mnz: fixes pre-run
package/dist/bundle.js CHANGED
@@ -4753,14 +4753,22 @@
4753
4753
  const model = _.create().withArgs({
4754
4754
  // a fake product key so our mnz client response with a fake response without changing prod db.
4755
4755
  productKey: "MIFAKEMIFAKEMIFAKE",
4756
- inputHandles: []
4757
- }).output("info", (ctx) => {
4756
+ inputHandles: [],
4757
+ __mnzDate: (/* @__PURE__ */ new Date()).toISOString(),
4758
+ // It's OK
4759
+ __mnzCanRun: false
4760
+ }).output("__mnzInfo", (ctx) => {
4758
4761
  var _a, _b;
4759
4762
  return (_b = (_a = ctx.prerun) == null ? void 0 : _a.resolve("info")) == null ? void 0 : _b.getDataAsJson();
4760
4763
  }).output("token", (ctx) => {
4761
4764
  var _a, _b;
4762
4765
  return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("token")) == null ? void 0 : _b.getDataAsString();
4763
4766
  }).output("progresses", (ctx) => {
4767
+ var _a;
4768
+ const m = (_a = ctx.prerun) == null ? void 0 : _a.resolve("progresses");
4769
+ const progresses = m == null ? void 0 : m.mapFields((name, val) => [name, val == null ? void 0 : val.getImportProgress()]);
4770
+ return Object.fromEntries(progresses ?? []);
4771
+ }).output("mainProgresses", (ctx) => {
4764
4772
  var _a;
4765
4773
  const m = (_a = ctx.outputs) == null ? void 0 : _a.resolve("progresses");
4766
4774
  const progresses = m == null ? void 0 : m.mapFields((name, val) => [name, val == null ? void 0 : val.getImportProgress()]);