@milaboratories/milaboratories.monetization-test.model 1.0.1 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/milaboratories.monetization-test.model",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Block model",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
package/src/index.ts CHANGED
@@ -10,6 +10,8 @@ export type Handle = {
10
10
  export type BlockArgs = {
11
11
  productKey: string;
12
12
  inputHandles: Handle[];
13
+ __mnzDate: string;
14
+ __mnzCanRun: boolean;
13
15
  };
14
16
 
15
17
  export const model = BlockModel.create()
@@ -17,9 +19,11 @@ export const model = BlockModel.create()
17
19
  // a fake product key so our mnz client response with a fake response without changing prod db.
18
20
  productKey: "MIFAKEMIFAKEMIFAKE",
19
21
  inputHandles: [],
22
+ __mnzDate: new Date().toISOString(), // It's OK
23
+ __mnzCanRun: false,
20
24
  })
21
25
 
22
- .output('info', (ctx) => ctx.prerun?.resolve('info')?.getDataAsJson<unknown>())
26
+ .output('__mnzInfo', (ctx) => ctx.prerun?.resolve('info')?.getDataAsJson<unknown>())
23
27
 
24
28
  .output('token', (ctx) => ctx.outputs?.resolve('token')?.getDataAsString())
25
29