@forge/cli-shared 8.13.0-next.6 → 8.14.0-next.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 8.14.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3a0bba7: Fix the ordering of logs by respecting the timestamps
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [73c9329]
12
+ - Updated dependencies [b96a445]
13
+ - @forge/manifest@11.3.2-next.0
14
+
15
+ ## 8.13.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 407bee3: Paginate the environment list command
20
+
21
+ ### Patch Changes
22
+
23
+ - cd0a085: Update glob dependency to version 11.1.0 across multiple packages
24
+ - 8b66e6f: Improve logic of container tunnel config restrictions
25
+ - Updated dependencies [10f70c2]
26
+ - Updated dependencies [cd0a085]
27
+ - Updated dependencies [f7c9fcc]
28
+ - Updated dependencies [b799627]
29
+ - Updated dependencies [29aa91c]
30
+ - Updated dependencies [8b66e6f]
31
+ - @forge/manifest@11.3.1
32
+
3
33
  ## 8.13.0-next.6
4
34
 
5
35
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/app-logs/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6E,aAAa,EAAE,MAAM,YAAY,CAAC;AAEtH,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAwBrB,qBAAa,mBAAoB,SAAQ,KAAK;CAAG;AACjD,qBAAa,uBAAwB,SAAQ,KAAK;CAAG;AACrD,qBAAa,sBAAuB,SAAQ,KAAK;CAAG;AACpD,qBAAa,oBAAqB,SAAQ,KAAK;CAAG;AAElD,qBAAa,iBAAkB,YAAW,iBAAiB;IAC7C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AO,CAAC,eAAe;YAcT,iBAAiB;CAqDhC"}
@@ -119,6 +119,16 @@ class LogsGraphQLClient {
119
119
  details.limit = details.limit - serverSideMaxLimit;
120
120
  return this.viewAppLogsV2(details, invocationMap, logLinesWithInvocation, totalRecieved);
121
121
  }
122
+ logLinesWithInvocation.forEach((l) => {
123
+ l.logs.sort((a, b) => Date.parse(a.timestamp) - Date.parse(b.timestamp));
124
+ return l;
125
+ });
126
+ logLinesWithInvocation.sort((a, b) => {
127
+ if (a.logs.length && b.logs.length) {
128
+ return Date.parse(a.logs[0].timestamp) - Date.parse(b.logs[0].timestamp);
129
+ }
130
+ return 0;
131
+ });
122
132
  const invocations = [...invocationMap.values()];
123
133
  return details.grouped ? invocations : logLinesWithInvocation;
124
134
  }