dbm-graph-api 1.1.8 → 1.1.10
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 +2 -2
- package/src/dbm-graph-api/index.js +20 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbm-graph-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@aws-sdk/client-s3": "^3.741.0",
|
|
15
15
|
"@aws-sdk/s3-request-presigner": "^3.741.0",
|
|
16
|
-
"dbm": "^1.1.
|
|
16
|
+
"dbm": "^1.1.6",
|
|
17
17
|
"mime": "^4.0.6",
|
|
18
18
|
"sharp": "^0.33.5",
|
|
19
19
|
"ws": "^8.18.0"
|
|
@@ -565,7 +565,9 @@ export const setupSite = function(aServer) {
|
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
-
|
|
568
|
+
if(site.disableSearchEngines) {
|
|
569
|
+
returnString += `<meta name="robots" content="noindex, nofollow" />`;
|
|
570
|
+
}
|
|
569
571
|
|
|
570
572
|
{
|
|
571
573
|
let currentArray = site.injectCodeSnippets;
|
|
@@ -611,6 +613,7 @@ export const setupSite = function(aServer) {
|
|
|
611
613
|
<meta name="HandheldFriendly" content="true" />
|
|
612
614
|
|
|
613
615
|
`;
|
|
616
|
+
|
|
614
617
|
{
|
|
615
618
|
let currentArray = site.preconnectUrls;
|
|
616
619
|
let currentArrayLength =currentArray.length;
|
|
@@ -618,6 +621,22 @@ export const setupSite = function(aServer) {
|
|
|
618
621
|
returnString += `<link rel="preconnect" href="${currentArray[i]}" crossorigin>`;
|
|
619
622
|
}
|
|
620
623
|
}
|
|
624
|
+
|
|
625
|
+
if(site.disableSearchEngines) {
|
|
626
|
+
returnString += `<meta name="robots" content="noindex, nofollow" />`;
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
let robotsSettings = ["index", "follow"];
|
|
630
|
+
if(fields["seo/noIndex"]) {
|
|
631
|
+
robotsSettings[0] = "noindex";
|
|
632
|
+
}
|
|
633
|
+
if(fields["seo/nofollow"]) {
|
|
634
|
+
robotsSettings[1] = "nofollow";
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
let content = robotsSettings.join(", ");
|
|
638
|
+
returnString += `<meta name="robots" content="${content}" />`;
|
|
639
|
+
}
|
|
621
640
|
|
|
622
641
|
returnString += `<title>${fields.title} - ${siteName}</title>
|
|
623
642
|
|