vatts 1.0.3 → 1.0.4-alpha.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/dist/renderer.js +8 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/renderer.js
CHANGED
|
@@ -119,6 +119,14 @@ function generateMetaTags(metadata) {
|
|
|
119
119
|
tags.push(`<meta name="${key}" content="${value}">`);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
+
if (metadata.scripts) {
|
|
123
|
+
for (const [key, value] of Object.entries(metadata.scripts)) {
|
|
124
|
+
const rest = Object.entries(value).map((r) => {
|
|
125
|
+
return '' + r[0] + '="' + r[1] + '"';
|
|
126
|
+
});
|
|
127
|
+
tags.push(`<script src="${key}" ${rest.join(" ")}></script>`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
122
130
|
return tags.join('\n');
|
|
123
131
|
}
|
|
124
132
|
function obfuscateData(data) {
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vatts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4-alpha.1",
|
|
4
4
|
"description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "itsmuzin",
|