dbm-graph-api 1.1.56 → 1.1.57

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,6 +1,6 @@
1
1
  {
2
2
  "name": "dbm-graph-api",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -40,7 +40,6 @@ export default class ProcessActions extends Dbm.core.BaseObject {
40
40
  returnObject["remaining"] = 0;
41
41
  }
42
42
 
43
- console.log(returnObject);
44
43
  return returnObject;
45
44
  }
46
45
  }
@@ -773,7 +773,7 @@ export const setupSite = function(aServer) {
773
773
  }
774
774
 
775
775
  returnString += `<link rel="stylesheet" type="text/css" href="${assetsUri}css/main.css?version=${version}" />
776
- <meta name="viewport" content="initial-scale=1,user-scalable=yes" />
776
+ <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=yes" />
777
777
  <meta name="HandheldFriendly" content="true" />
778
778
  <link rel="icon" type="image/png" href="${assetsUri}img/favicon.png" />
779
779
  </head>
@@ -831,7 +831,7 @@ export const setupSite = function(aServer) {
831
831
  <html lang="${language}">
832
832
  <head>
833
833
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
834
- <meta name="viewport" content="initial-scale=1,user-scalable=yes" />
834
+ <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=yes" />
835
835
  <meta name="HandheldFriendly" content="true" />
836
836
  <title>${fields.title} - ${siteName}</title>` + "\n";
837
837
  if(fields['meta/description']) {
@@ -92,6 +92,20 @@ export default class EncodeSession extends Dbm.core.BaseObject {
92
92
  return ids;
93
93
  }
94
94
 
95
+ async encodeObjectsById(aIds, aType) {
96
+ let currentArray = aIds;
97
+ let currentArrayLength = currentArray.length;
98
+ let promises = new Array(currentArrayLength);
99
+ for(let i = 0; i < currentArrayLength; i++) {
100
+ let id = currentArray[i];
101
+ promises[i] = this._encodeSingleNoAwait(id, aType);
102
+ }
103
+
104
+ await Promise.all(promises);
105
+
106
+ return aIds;
107
+ }
108
+
95
109
  outputEncodedData(aId, aData, aEncoding) {
96
110
  //console.log("EncodeSession::outputEncodedData");
97
111