@jsenv/plugin-supervisor 1.7.1 → 1.7.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.
@@ -753,6 +753,7 @@ const generateCodeToSuperviseScriptWithSrc = ({
753
753
  /*
754
754
  * This plugin provides a way for jsenv to supervisor js execution:
755
755
  * - Know how many js are executed, when they are done, collect errors, etc...
756
+ *
756
757
  */
757
758
 
758
759
  const jsenvPluginSupervisor = ({
@@ -978,6 +979,12 @@ const jsenvPluginSupervisor = ({
978
979
  contentType: "text/javascript",
979
980
  content: textContent
980
981
  });
982
+ for (const key of Object.keys(htmlUrlInfo.contentInjections)) {
983
+ const value = htmlUrlInfo.contentInjections[key];
984
+ if (htmlUrlInfo.context.isPlaceholderInjection(value)) {
985
+ inlineScriptReference.urlInfo.contentInjections[key] = value;
986
+ }
987
+ }
981
988
  return inlineScriptReference.generatedSpecifier;
982
989
  },
983
990
  sourcemaps: htmlUrlInfo.kitchen.context.sourcemaps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-supervisor",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  * This plugin provides a way for jsenv to supervisor js execution:
3
3
  * - Know how many js are executed, when they are done, collect errors, etc...
4
+ *
4
5
  */
5
6
 
6
7
  import { generateContentFrame } from "@jsenv/humanize";
@@ -256,6 +257,12 @@ export const jsenvPluginSupervisor = ({
256
257
  contentType: "text/javascript",
257
258
  content: textContent,
258
259
  });
260
+ for (const key of Object.keys(htmlUrlInfo.contentInjections)) {
261
+ const value = htmlUrlInfo.contentInjections[key];
262
+ if (htmlUrlInfo.context.isPlaceholderInjection(value)) {
263
+ inlineScriptReference.urlInfo.contentInjections[key] = value;
264
+ }
265
+ }
259
266
  return inlineScriptReference.generatedSpecifier;
260
267
  },
261
268
  sourcemaps: htmlUrlInfo.kitchen.context.sourcemaps,