rankrunners-cms 0.0.14 → 0.0.15

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,7 +1,7 @@
1
1
  {
2
2
  "name": "rankrunners-cms",
3
3
  "type": "module",
4
- "version": "0.0.14",
4
+ "version": "0.0.15",
5
5
  "peerDependencies": {
6
6
  "@puckeditor/core": "^0.21.0",
7
7
  "next": "^16.1.2",
@@ -102,7 +102,7 @@ export function parseScripts(html: string): ScriptProps[] {
102
102
  while ((attrMatch = attrRegex.exec(attributesString)) !== null) {
103
103
  const attrName = attrMatch[1]?.toLowerCase();
104
104
  if (!attrName) continue;
105
- const attrValue = attrMatch[2] ?? attrMatch[3] ?? attrMatch[4] ?? true;
105
+ const attrValue = attrMatch[2] ?? attrMatch[3] ?? attrMatch[4] ?? "true";
106
106
 
107
107
  // Map HTML attributes to React props
108
108
  switch (attrName) {
@@ -114,21 +114,18 @@ export function parseScripts(html: string): ScriptProps[] {
114
114
  break;
115
115
  case "async":
116
116
  props.async =
117
- attrValue === true ||
118
117
  attrValue === "true" ||
119
118
  attrValue === "async" ||
120
119
  attrValue === "";
121
120
  break;
122
121
  case "defer":
123
122
  props.defer =
124
- attrValue === true ||
125
123
  attrValue === "true" ||
126
124
  attrValue === "defer" ||
127
125
  attrValue === "";
128
126
  break;
129
127
  case "nomodule":
130
128
  props.noModule =
131
- attrValue === true ||
132
129
  attrValue === "true" ||
133
130
  attrValue === "nomodule" ||
134
131
  attrValue === "";