@@ -10,13 +10,9 @@ module.exports = function({ $config, $http_Util, $indexFile, $otherFile, $std_Js
10
10
return $obj;
11
11
}
12
12
async handle () {
13
- let url = $w_url;
14
- if ((! url .startsWith (" http" ))) {
15
- url = (" http://" + url);
16
- }
17
- {((cond ) => {if (! cond) throw new Error (" assertion failed: http.get(url).body == indexFile" )})((((a ,b ) => { try { return require (' assert' ).deepStrictEqual (a,b) === undefined ; } catch { return false ; } })((await $http_Util .get (url)).body ,$indexFile)))};
18
- {((cond ) => {if (! cond) throw new Error (" assertion failed: http.get(url + \" /inner-folder/other.html\" ).body == otherFile" )})((((a ,b ) => { try { return require (' assert' ).deepStrictEqual (a,b) === undefined ; } catch { return false ; } })((await $http_Util .get ((url + " /inner-folder/other.html" ))).body ,$otherFile)))};
19
- {((cond ) => {if (! cond) throw new Error (" assertion failed: http.get(url + \" /config.json\" ).body == Json.stringify(config)" )})((((a ,b ) => { try { return require (' assert' ).deepStrictEqual (a,b) === undefined ; } catch { return false ; } })((await $http_Util .get ((url + " /config.json" ))).body ,((args ) => { return JSON .stringify (args[0 ], null , args[1 ]) })([$config]))))};
13
+ {((cond ) => {if (! cond) throw new Error (" assertion failed: http.get(w.url).body == indexFile" )})((((a ,b ) => { try { return require (' assert' ).deepStrictEqual (a,b) === undefined ; } catch { return false ; } })((await $http_Util .get ($w_url)).body ,$indexFile)))};
14
+ {((cond ) => {if (! cond) throw new Error (" assertion failed: http.get(w.url + \" /inner-folder/other.html\" ).body == otherFile" )})((((a ,b ) => { try { return require (' assert' ).deepStrictEqual (a,b) === undefined ; } catch { return false ; } })((await $http_Util .get (($w_url + " /inner-folder/other.html" ))).body ,$otherFile)))};
15
+ {((cond ) => {if (! cond) throw new Error (" assertion failed: http.get(w.url + \" /config.json\" ).body == Json.stringify(config)" )})((((a ,b ) => { try { return require (' assert' ).deepStrictEqual (a,b) === undefined ; } catch { return false ; } })((await $http_Util .get (($w_url + " /config.json" ))).body ,((args ) => { return JSON .stringify (args[0 ], null , args[1 ]) })([$config]))))};
20
16
}
21
17
}
22
18
return $Closure1;
@@ -217,7 +213,7 @@ module.exports = function({ }) {
217
213
"variables" : {
218
214
"WING_FUNCTION_NAME" : " Handler-c867c4e0" ,
219
215
"WING_TARGET" : " tf-aws" ,
220
- "WING_TOKEN_TFTOKEN_TOKEN_16 " : " ${jsonencode(aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9.domain_name)}"
216
+ "WING_TOKEN_HTTPS_TFTOKEN_TOKEN_16 " : " ${jsonencode(\" https://${ aws_cloudfront_distribution.cloudWebsite_Distribution_083B5AF9.domain_name} \" )}"
221
217
}
222
218
},
223
219
"function_name" : " Handler-c867c4e0" ,
@@ -449,7 +445,7 @@ class $Root extends $stdlib.std.Resource {
449
445
$Closure1 ._registerBindObject (config, host, []);
450
446
$Closure1 ._registerBindObject (indexFile, host, []);
451
447
$Closure1 ._registerBindObject (otherFile, host, []);
452
- $Closure1 ._registerBindObject (w .url , host, []);
448
+ $Closure1 ._registerBindObject (w .url , host, [" body " ]);
453
449
}
454
450
super ._registerBind (host, ops);
455
451
}
0 commit comments