@sasjs/adapter 3.8.2 → 3.8.3

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
@@ -79,5 +79,5 @@
79
79
  "https": "1.0.0",
80
80
  "tough-cookie": "4.0.0"
81
81
  },
82
- "version": "3.8.2"
82
+ "version": "3.8.3"
83
83
  }
@@ -16,10 +16,15 @@ export const parseSasViyaDebugResponse = async (
16
16
  requestClient: RequestClient,
17
17
  serverUrl: string
18
18
  ) => {
19
+ // On viya 3.5, iframe is like <iframe style="width: 99%; height: 500px" src="..."></iframe>
20
+ // On viya 4, iframe is like <iframe style="width: 99%; height: 500px; background-color:Canvas;" src=...></iframe>
21
+
19
22
  const iframeStart = response.split(
20
- '<iframe style="width: 99%; height: 500px" src="'
23
+ /<iframe style="width: 99%; height: 500px" src="|<iframe style="width: 99%; height: 500px; background-color:Canvas;" src=/
21
24
  )[1]
22
- const jsonUrl = iframeStart ? iframeStart.split('"></iframe>')[0] : null
25
+ const jsonUrl = iframeStart
26
+ ? iframeStart.split(/"><\/iframe>|><\/iframe>/)[0]
27
+ : null
23
28
  if (!jsonUrl) {
24
29
  throw new Error('Unable to find webout file URL.')
25
30
  }