@squiz/edge-dev-render-runtime-lib 2.2.0 → 2.2.1

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/lib/index.js CHANGED
@@ -1238,7 +1238,7 @@ var DevelopmentComponentRunnerService = class {
1238
1238
  platform: "node"
1239
1239
  });
1240
1240
  }
1241
- const componentContext = this.getComponentContext(task, webRequestEvents);
1241
+ const componentContext = { ...this.getComponentContext(task, webRequestEvents), env: task.runtimeSet.environment };
1242
1242
  const script = await import(outputFile);
1243
1243
  let f;
1244
1244
  if (script.default[task.componentFunction.name]) {
@@ -1984,6 +1984,8 @@ Expected given value \`N\` in #/my-object/a-nested-object/an-enum\` to be one of
1984
1984
  ]
1985
1985
  },
1986
1986
  ctx: {},
1987
+ //Monkey patch
1988
+ env: {},
1987
1989
  set: {
1988
1990
  displayName: "unknown",
1989
1991
  environment: {},