elm-pages 3.0.0-beta.15 → 3.0.0-beta.17
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/README.md +1 -1
- package/codegen/elm-pages-codegen.js +66 -115
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Review-DeadCodeEliminateData.elmo +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/Pages-Review-DeadCodeEliminateDataTest.elmo +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/Runner.elm.js +20 -20
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/dead-code-review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/dead-code-review/src/Pages/Review/DeadCodeEliminateData.elm +5 -5
- package/generator/dead-code-review/tests/Pages/Review/DeadCodeEliminateDataTest.elm +21 -21
- package/generator/review/elm-stuff/tests-0.19.1/elm-stuff/0.19.1/d.dat +0 -0
- package/generator/review/elm-stuff/tests-0.19.1/js/node_runner.js +1 -1
- package/generator/review/elm-stuff/tests-0.19.1/js/node_supervisor.js +1 -1
- package/generator/src/RouteBuilder.elm +23 -23
- package/generator/src/SharedTemplate.elm +2 -2
- package/generator/src/SiteConfig.elm +2 -2
- package/generator/src/build.js +7 -7
- package/generator/src/cli.js +11 -8
- package/generator/src/compatibility-key.js +1 -1
- package/generator/src/dev-server.js +6 -6
- package/generator/src/render-test.js +1 -1
- package/generator/src/render.js +5 -5
- package/generator/src/request-cache.js +5 -5
- package/package.json +1 -1
- package/src/ApiRoute.elm +13 -13
- package/src/BackendTask/{Port.elm → Custom.elm} +60 -52
- package/src/BackendTask/Env.elm +9 -8
- package/src/BackendTask/File.elm +49 -10
- package/src/BackendTask/Glob.elm +6 -6
- package/src/BackendTask/Http.elm +12 -12
- package/src/BackendTask.elm +9 -23
- package/src/{Exception.elm → FatalError.elm} +37 -31
- package/src/Form.elm +3 -3
- package/src/Internal/ApiRoute.elm +5 -5
- package/src/Pages/Generate.elm +1 -1
- package/src/Pages/Internal/FatalError.elm +5 -0
- package/src/Pages/Internal/Platform/Cli.elm +4 -4
- package/src/Pages/Internal/Platform/CompatibilityKey.elm +1 -1
- package/src/Pages/Internal/Platform/GeneratorApplication.elm +7 -7
- package/src/Pages/Internal/Platform/StaticResponses.elm +10 -9
- package/src/Pages/Internal/Script.elm +2 -2
- package/src/Pages/Manifest.elm +2 -2
- package/src/Pages/ProgramConfig.elm +7 -7
- package/src/Pages/Script.elm +4 -4
- package/src/Pages/SiteConfig.elm +2 -2
- package/src/Server/Request.elm +3 -3
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ https://github.com/dillonkearns/elm-pages/projects
|
|
|
81
81
|
You will see an error if the NPM and Elm package do not have a matching Compatibility Key. Usually it's best to upgrade to the latest version of both the Elm and NPM
|
|
82
82
|
packages when you upgrade. However, in case you want to install versions that are behind the latest, the Compatibility Key is included here for reference.
|
|
83
83
|
|
|
84
|
-
Current Compatibility Key:
|
|
84
|
+
Current Compatibility Key: 6.
|
|
85
85
|
|
|
86
86
|
## Contributors ✨
|
|
87
87
|
|
|
@@ -26201,7 +26201,7 @@ var $author$project$Gen$Pages$Internal$Platform$Cli$annotation_ = {
|
|
|
26201
26201
|
'BackendTask',
|
|
26202
26202
|
_List_fromArray(
|
|
26203
26203
|
[
|
|
26204
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
26204
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
26205
26205
|
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Effect', _List_Nil)
|
|
26206
26206
|
]))),
|
|
26207
26207
|
_Utils_Tuple2(
|
|
@@ -26987,6 +26987,50 @@ var $author$project$Gen$Platform$Sub$batch = function (batchArg) {
|
|
|
26987
26987
|
]));
|
|
26988
26988
|
};
|
|
26989
26989
|
var $author$project$Gen$BackendTask$call_ = {
|
|
26990
|
+
allowFatal: function (allowFatalArg) {
|
|
26991
|
+
return A2(
|
|
26992
|
+
$author$project$Elm$apply,
|
|
26993
|
+
$author$project$Elm$value(
|
|
26994
|
+
{
|
|
26995
|
+
annotation: $elm$core$Maybe$Just(
|
|
26996
|
+
A2(
|
|
26997
|
+
$author$project$Elm$Annotation$function,
|
|
26998
|
+
_List_fromArray(
|
|
26999
|
+
[
|
|
27000
|
+
A3(
|
|
27001
|
+
$author$project$Elm$Annotation$namedWith,
|
|
27002
|
+
_List_Nil,
|
|
27003
|
+
'BackendTask',
|
|
27004
|
+
_List_fromArray(
|
|
27005
|
+
[
|
|
27006
|
+
A2(
|
|
27007
|
+
$author$project$Elm$Annotation$extensible,
|
|
27008
|
+
'error',
|
|
27009
|
+
_List_fromArray(
|
|
27010
|
+
[
|
|
27011
|
+
_Utils_Tuple2(
|
|
27012
|
+
'fatal',
|
|
27013
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil))
|
|
27014
|
+
])),
|
|
27015
|
+
$author$project$Elm$Annotation$var('data')
|
|
27016
|
+
]))
|
|
27017
|
+
]),
|
|
27018
|
+
A3(
|
|
27019
|
+
$author$project$Elm$Annotation$namedWith,
|
|
27020
|
+
_List_Nil,
|
|
27021
|
+
'BackendTask',
|
|
27022
|
+
_List_fromArray(
|
|
27023
|
+
[
|
|
27024
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
27025
|
+
$author$project$Elm$Annotation$var('data')
|
|
27026
|
+
])))),
|
|
27027
|
+
importFrom: _List_fromArray(
|
|
27028
|
+
['BackendTask']),
|
|
27029
|
+
name: 'allowFatal'
|
|
27030
|
+
}),
|
|
27031
|
+
_List_fromArray(
|
|
27032
|
+
[allowFatalArg]));
|
|
27033
|
+
},
|
|
26990
27034
|
andMap: F2(
|
|
26991
27035
|
function (andMapArg, andMapArg0) {
|
|
26992
27036
|
return A2(
|
|
@@ -27091,49 +27135,6 @@ var $author$project$Gen$BackendTask$call_ = {
|
|
|
27091
27135
|
_List_fromArray(
|
|
27092
27136
|
[andThenArg, andThenArg0]));
|
|
27093
27137
|
}),
|
|
27094
|
-
_catch: function (catchArg) {
|
|
27095
|
-
return A2(
|
|
27096
|
-
$author$project$Elm$apply,
|
|
27097
|
-
$author$project$Elm$value(
|
|
27098
|
-
{
|
|
27099
|
-
annotation: $elm$core$Maybe$Just(
|
|
27100
|
-
A2(
|
|
27101
|
-
$author$project$Elm$Annotation$function,
|
|
27102
|
-
_List_fromArray(
|
|
27103
|
-
[
|
|
27104
|
-
A3(
|
|
27105
|
-
$author$project$Elm$Annotation$namedWith,
|
|
27106
|
-
_List_Nil,
|
|
27107
|
-
'BackendTask',
|
|
27108
|
-
_List_fromArray(
|
|
27109
|
-
[
|
|
27110
|
-
A3(
|
|
27111
|
-
$author$project$Elm$Annotation$namedWith,
|
|
27112
|
-
_List_Nil,
|
|
27113
|
-
'Exception',
|
|
27114
|
-
_List_fromArray(
|
|
27115
|
-
[
|
|
27116
|
-
$author$project$Elm$Annotation$var('error')
|
|
27117
|
-
])),
|
|
27118
|
-
$author$project$Elm$Annotation$var('value')
|
|
27119
|
-
]))
|
|
27120
|
-
]),
|
|
27121
|
-
A3(
|
|
27122
|
-
$author$project$Elm$Annotation$namedWith,
|
|
27123
|
-
_List_Nil,
|
|
27124
|
-
'BackendTask',
|
|
27125
|
-
_List_fromArray(
|
|
27126
|
-
[
|
|
27127
|
-
$author$project$Elm$Annotation$var('error'),
|
|
27128
|
-
$author$project$Elm$Annotation$var('value')
|
|
27129
|
-
])))),
|
|
27130
|
-
importFrom: _List_fromArray(
|
|
27131
|
-
['BackendTask']),
|
|
27132
|
-
name: 'catch'
|
|
27133
|
-
}),
|
|
27134
|
-
_List_fromArray(
|
|
27135
|
-
[catchArg]));
|
|
27136
|
-
},
|
|
27137
27138
|
combine: function (combineArg) {
|
|
27138
27139
|
return A2(
|
|
27139
27140
|
$author$project$Elm$apply,
|
|
@@ -28179,49 +28180,6 @@ var $author$project$Gen$BackendTask$call_ = {
|
|
|
28179
28180
|
_List_fromArray(
|
|
28180
28181
|
[succeedArg]));
|
|
28181
28182
|
},
|
|
28182
|
-
_throw: function (throwArg) {
|
|
28183
|
-
return A2(
|
|
28184
|
-
$author$project$Elm$apply,
|
|
28185
|
-
$author$project$Elm$value(
|
|
28186
|
-
{
|
|
28187
|
-
annotation: $elm$core$Maybe$Just(
|
|
28188
|
-
A2(
|
|
28189
|
-
$author$project$Elm$Annotation$function,
|
|
28190
|
-
_List_fromArray(
|
|
28191
|
-
[
|
|
28192
|
-
A3(
|
|
28193
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28194
|
-
_List_Nil,
|
|
28195
|
-
'BackendTask',
|
|
28196
|
-
_List_fromArray(
|
|
28197
|
-
[
|
|
28198
|
-
A3(
|
|
28199
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28200
|
-
_List_Nil,
|
|
28201
|
-
'Exception',
|
|
28202
|
-
_List_fromArray(
|
|
28203
|
-
[
|
|
28204
|
-
$author$project$Elm$Annotation$var('error')
|
|
28205
|
-
])),
|
|
28206
|
-
$author$project$Elm$Annotation$var('data')
|
|
28207
|
-
]))
|
|
28208
|
-
]),
|
|
28209
|
-
A3(
|
|
28210
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28211
|
-
_List_Nil,
|
|
28212
|
-
'BackendTask',
|
|
28213
|
-
_List_fromArray(
|
|
28214
|
-
[
|
|
28215
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Throwable', _List_Nil),
|
|
28216
|
-
$author$project$Elm$Annotation$var('data')
|
|
28217
|
-
])))),
|
|
28218
|
-
importFrom: _List_fromArray(
|
|
28219
|
-
['BackendTask']),
|
|
28220
|
-
name: 'throw'
|
|
28221
|
-
}),
|
|
28222
|
-
_List_fromArray(
|
|
28223
|
-
[throwArg]));
|
|
28224
|
-
},
|
|
28225
28183
|
toResult: function (toResultArg) {
|
|
28226
28184
|
return A2(
|
|
28227
28185
|
$author$project$Elm$apply,
|
|
@@ -28238,14 +28196,7 @@ var $author$project$Gen$BackendTask$call_ = {
|
|
|
28238
28196
|
'BackendTask',
|
|
28239
28197
|
_List_fromArray(
|
|
28240
28198
|
[
|
|
28241
|
-
|
|
28242
|
-
$author$project$Elm$Annotation$namedWith,
|
|
28243
|
-
_List_Nil,
|
|
28244
|
-
'Exception',
|
|
28245
|
-
_List_fromArray(
|
|
28246
|
-
[
|
|
28247
|
-
$author$project$Elm$Annotation$var('error')
|
|
28248
|
-
])),
|
|
28199
|
+
$author$project$Elm$Annotation$var('error'),
|
|
28249
28200
|
$author$project$Elm$Annotation$var('data')
|
|
28250
28201
|
]))
|
|
28251
28202
|
]),
|
|
@@ -32814,7 +32765,7 @@ var $author$project$Gen$ApiRoute$single = function (singleArg) {
|
|
|
32814
32765
|
'BackendTask',
|
|
32815
32766
|
_List_fromArray(
|
|
32816
32767
|
[
|
|
32817
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
32768
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
32818
32769
|
$author$project$Elm$Annotation$string
|
|
32819
32770
|
])),
|
|
32820
32771
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
|
|
@@ -33568,7 +33519,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33568
33519
|
'BackendTask',
|
|
33569
33520
|
_List_fromArray(
|
|
33570
33521
|
[
|
|
33571
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33522
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33572
33523
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
|
|
33573
33524
|
])))),
|
|
33574
33525
|
importFrom: _List_fromArray(
|
|
@@ -33603,7 +33554,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33603
33554
|
'BackendTask',
|
|
33604
33555
|
_List_fromArray(
|
|
33605
33556
|
[
|
|
33606
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33557
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33607
33558
|
$author$project$Elm$Annotation$list(
|
|
33608
33559
|
A3(
|
|
33609
33560
|
$author$project$Elm$Annotation$namedWith,
|
|
@@ -33667,7 +33618,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33667
33618
|
'BackendTask',
|
|
33668
33619
|
_List_fromArray(
|
|
33669
33620
|
[
|
|
33670
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33621
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33671
33622
|
$author$project$Elm$Annotation$list(
|
|
33672
33623
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))
|
|
33673
33624
|
]))),
|
|
@@ -33683,7 +33634,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33683
33634
|
'BackendTask',
|
|
33684
33635
|
_List_fromArray(
|
|
33685
33636
|
[
|
|
33686
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33637
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33687
33638
|
$author$project$Elm$Annotation$string
|
|
33688
33639
|
])),
|
|
33689
33640
|
$author$project$Elm$Annotation$var('constructor')
|
|
@@ -33720,7 +33671,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33720
33671
|
'BackendTask',
|
|
33721
33672
|
_List_fromArray(
|
|
33722
33673
|
[
|
|
33723
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33674
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33724
33675
|
$author$project$Elm$Annotation$list(
|
|
33725
33676
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))
|
|
33726
33677
|
]))),
|
|
@@ -33736,7 +33687,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33736
33687
|
'BackendTask',
|
|
33737
33688
|
_List_fromArray(
|
|
33738
33689
|
[
|
|
33739
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33690
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33740
33691
|
A3(
|
|
33741
33692
|
$author$project$Elm$Annotation$namedWith,
|
|
33742
33693
|
_List_fromArray(
|
|
@@ -33789,7 +33740,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33789
33740
|
'BackendTask',
|
|
33790
33741
|
_List_fromArray(
|
|
33791
33742
|
[
|
|
33792
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33743
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33793
33744
|
A3(
|
|
33794
33745
|
$author$project$Elm$Annotation$namedWith,
|
|
33795
33746
|
_List_fromArray(
|
|
@@ -33836,7 +33787,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33836
33787
|
'BackendTask',
|
|
33837
33788
|
_List_fromArray(
|
|
33838
33789
|
[
|
|
33839
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33790
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33840
33791
|
$author$project$Elm$Annotation$string
|
|
33841
33792
|
])),
|
|
33842
33793
|
$author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
|
|
@@ -33945,7 +33896,7 @@ var $author$project$Gen$ApiRoute$values_ = {
|
|
|
33945
33896
|
'BackendTask',
|
|
33946
33897
|
_List_fromArray(
|
|
33947
33898
|
[
|
|
33948
|
-
A3($author$project$Elm$Annotation$namedWith, _List_Nil, '
|
|
33899
|
+
A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'FatalError', _List_Nil),
|
|
33949
33900
|
$author$project$Elm$Annotation$list(
|
|
33950
33901
|
A3(
|
|
33951
33902
|
$author$project$Elm$Annotation$namedWith,
|
|
@@ -36964,8 +36915,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
36964
36915
|
A2(
|
|
36965
36916
|
$author$project$Elm$Annotation$named,
|
|
36966
36917
|
_List_fromArray(
|
|
36967
|
-
['
|
|
36968
|
-
'
|
|
36918
|
+
['FatalError']),
|
|
36919
|
+
'FatalError'),
|
|
36969
36920
|
$author$project$Elm$Annotation$list(
|
|
36970
36921
|
A2(
|
|
36971
36922
|
$author$project$Elm$Annotation$named,
|
|
@@ -37044,8 +36995,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
37044
36995
|
A2(
|
|
37045
36996
|
$author$project$Elm$Annotation$named,
|
|
37046
36997
|
_List_fromArray(
|
|
37047
|
-
['
|
|
37048
|
-
'
|
|
36998
|
+
['FatalError']),
|
|
36999
|
+
'FatalError'),
|
|
37049
37000
|
$author$project$Elm$Annotation$list($author$project$Gen$Head$annotation_.tag)),
|
|
37050
37001
|
A2(
|
|
37051
37002
|
$author$project$Gen$BackendTask$call_.map,
|
|
@@ -38143,8 +38094,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38143
38094
|
A2(
|
|
38144
38095
|
$author$project$Elm$Annotation$named,
|
|
38145
38096
|
_List_fromArray(
|
|
38146
|
-
['
|
|
38147
|
-
'
|
|
38097
|
+
['FatalError']),
|
|
38098
|
+
'FatalError'),
|
|
38148
38099
|
A2(
|
|
38149
38100
|
$author$project$Gen$Server$Response$annotation_.response,
|
|
38150
38101
|
A2($author$project$Elm$Annotation$named, _List_Nil, 'PageData'),
|
|
@@ -38228,8 +38179,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38228
38179
|
A2(
|
|
38229
38180
|
$author$project$Elm$Annotation$named,
|
|
38230
38181
|
_List_fromArray(
|
|
38231
|
-
['
|
|
38232
|
-
'
|
|
38182
|
+
['FatalError']),
|
|
38183
|
+
'FatalError'),
|
|
38233
38184
|
$author$project$Elm$Annotation$maybe($author$project$Gen$Pages$Internal$NotFoundReason$annotation_.notFoundReason)),
|
|
38234
38185
|
A2(
|
|
38235
38186
|
$author$project$Elm$Case$maybe,
|
|
@@ -38637,8 +38588,8 @@ var $author$project$GenerateMain$otherFile = F2(
|
|
|
38637
38588
|
A2(
|
|
38638
38589
|
$author$project$Elm$Annotation$named,
|
|
38639
38590
|
_List_fromArray(
|
|
38640
|
-
['
|
|
38641
|
-
'
|
|
38591
|
+
['FatalError']),
|
|
38592
|
+
'FatalError'),
|
|
38642
38593
|
A2(
|
|
38643
38594
|
$author$project$Gen$Server$Response$annotation_.response,
|
|
38644
38595
|
A2($author$project$Elm$Annotation$named, _List_Nil, 'ActionData'),
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -11397,7 +11397,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$declarationVisitor = F2(
|
|
|
11397
11397
|
context.importContext,
|
|
11398
11398
|
_Utils_Tuple2(
|
|
11399
11399
|
_List_fromArray(
|
|
11400
|
-
['
|
|
11400
|
+
['FatalError']),
|
|
11401
11401
|
'fromString')) + ' \"\")');
|
|
11402
11402
|
var _v0 = $stil4m$elm_syntax$Elm$Syntax$Node$value(node);
|
|
11403
11403
|
if (_v0.$ === 'FunctionDeclaration') {
|
|
@@ -11511,7 +11511,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$expressionVisitor = F2(
|
|
|
11511
11511
|
context.importContext,
|
|
11512
11512
|
_Utils_Tuple2(
|
|
11513
11513
|
_List_fromArray(
|
|
11514
|
-
['
|
|
11514
|
+
['FatalError']),
|
|
11515
11515
|
'fromString')) + ' \"\")');
|
|
11516
11516
|
return _List_fromArray(
|
|
11517
11517
|
[
|
|
@@ -11587,7 +11587,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$finalEvaluation = functio
|
|
|
11587
11587
|
var _v0 = A2(
|
|
11588
11588
|
$elm$core$Dict$get,
|
|
11589
11589
|
_List_fromArray(
|
|
11590
|
-
['
|
|
11590
|
+
['FatalError']),
|
|
11591
11591
|
context.importContext);
|
|
11592
11592
|
if (_v0.$ === 'Nothing') {
|
|
11593
11593
|
var importAddRange = A2(
|
|
@@ -11609,7 +11609,7 @@ var $author$project$Pages$Review$DeadCodeEliminateData$finalEvaluation = functio
|
|
|
11609
11609
|
importAddRange,
|
|
11610
11610
|
_List_fromArray(
|
|
11611
11611
|
[
|
|
11612
|
-
A2($jfmengels$elm_review$Review$Fix$insertAt, importAddRange.end, '\nimport
|
|
11612
|
+
A2($jfmengels$elm_review$Review$Fix$insertAt, importAddRange.end, '\nimport FatalError\n')
|
|
11613
11613
|
]))
|
|
11614
11614
|
]);
|
|
11615
11615
|
} else {
|
|
@@ -26623,7 +26623,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26623
26623
|
[
|
|
26624
26624
|
A2(
|
|
26625
26625
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26626
|
-
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26626
|
+
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = BackendTask.fail (FatalError.fromString "")\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n',
|
|
26627
26627
|
$jfmengels$elm_review$Review$Test$error(
|
|
26628
26628
|
{
|
|
26629
26629
|
details: _List_fromArray(
|
|
@@ -26632,7 +26632,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26632
26632
|
under: 'data = data\n }'
|
|
26633
26633
|
}))
|
|
26634
26634
|
]),
|
|
26635
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26635
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = data\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26636
26636
|
}),
|
|
26637
26637
|
A2(
|
|
26638
26638
|
$elm_explorations$test$Test$test,
|
|
@@ -26644,7 +26644,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26644
26644
|
[
|
|
26645
26645
|
A2(
|
|
26646
26646
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26647
|
-
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26647
|
+
'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\nimport BackendTask as DS\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = DS.fail (FatalError.fromString "")\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n',
|
|
26648
26648
|
$jfmengels$elm_review$Review$Test$error(
|
|
26649
26649
|
{
|
|
26650
26650
|
details: _List_fromArray(
|
|
@@ -26653,7 +26653,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26653
26653
|
under: 'data = data\n }'
|
|
26654
26654
|
}))
|
|
26655
26655
|
]),
|
|
26656
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26656
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\nimport BackendTask as DS\nimport RouteBuilder exposing (Page, StaticPayload, single)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n single\n { head = head\n , data = data\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26657
26657
|
}),
|
|
26658
26658
|
A2(
|
|
26659
26659
|
$elm_explorations$test$Test$test,
|
|
@@ -26665,7 +26665,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26665
26665
|
[
|
|
26666
26666
|
A2(
|
|
26667
26667
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26668
|
-
'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26668
|
+
'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n { slug : String }\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.preRender\n { data = \\_ -> BackendTask.fail (FatalError.fromString "")\n , head = head\n , pages = pages\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n',
|
|
26669
26669
|
$jfmengels$elm_review$Review$Test$error(
|
|
26670
26670
|
{
|
|
26671
26671
|
details: _List_fromArray(
|
|
@@ -26674,7 +26674,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26674
26674
|
under: 'data = data'
|
|
26675
26675
|
}))
|
|
26676
26676
|
]),
|
|
26677
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport
|
|
26677
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Blog.Slug_ exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\n\nimport BackendTask exposing (BackendTask)\nimport FatalError\nimport RouteBuilder exposing (Page, StaticPayload)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n { slug : String }\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.preRender\n { data = data\n , head = head\n , pages = pages\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26678
26678
|
}),
|
|
26679
26679
|
A2(
|
|
26680
26680
|
$elm_explorations$test$Test$test,
|
|
@@ -26686,7 +26686,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26686
26686
|
[
|
|
26687
26687
|
A2(
|
|
26688
26688
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26689
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26689
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = \\_ -> Request.oneOf []\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26690
26690
|
$jfmengels$elm_review$Review$Test$error(
|
|
26691
26691
|
{
|
|
26692
26692
|
details: _List_fromArray(
|
|
@@ -26696,7 +26696,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26696
26696
|
})),
|
|
26697
26697
|
A2(
|
|
26698
26698
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26699
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26699
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = \\_ -> Request.oneOf []\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26700
26700
|
$jfmengels$elm_review$Review$Test$error(
|
|
26701
26701
|
{
|
|
26702
26702
|
details: _List_fromArray(
|
|
@@ -26705,7 +26705,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26705
26705
|
under: 'action = action\n }'
|
|
26706
26706
|
}))
|
|
26707
26707
|
]),
|
|
26708
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26708
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n'));
|
|
26709
26709
|
}),
|
|
26710
26710
|
A2(
|
|
26711
26711
|
$elm_explorations$test$Test$test,
|
|
@@ -26717,7 +26717,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26717
26717
|
[
|
|
26718
26718
|
A2(
|
|
26719
26719
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26720
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport
|
|
26720
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = \\_ -> Server.Request.oneOf []\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26721
26721
|
$jfmengels$elm_review$Review$Test$error(
|
|
26722
26722
|
{
|
|
26723
26723
|
details: _List_fromArray(
|
|
@@ -26727,7 +26727,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26727
26727
|
})),
|
|
26728
26728
|
A2(
|
|
26729
26729
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26730
|
-
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport
|
|
26730
|
+
'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = \\_ -> Server.Request.oneOf []\n }\n |> RouteBuilder.buildNoState { view = view }\n',
|
|
26731
26731
|
$jfmengels$elm_review$Review$Test$error(
|
|
26732
26732
|
{
|
|
26733
26733
|
details: _List_fromArray(
|
|
@@ -26736,21 +26736,21 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26736
26736
|
under: 'action = action\n }'
|
|
26737
26737
|
}))
|
|
26738
26738
|
]),
|
|
26739
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport
|
|
26739
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = data\n , action = action\n }\n |> RouteBuilder.buildNoState { view = view }\n'));
|
|
26740
26740
|
}),
|
|
26741
26741
|
A2(
|
|
26742
26742
|
$elm_explorations$test$Test$test,
|
|
26743
26743
|
'no Request.oneOf fix after replacement is made',
|
|
26744
26744
|
function (_v5) {
|
|
26745
26745
|
return $jfmengels$elm_review$Review$Test$expectNoErrors(
|
|
26746
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26746
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Login exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.serverRender\n { head = head\n , data = \\_ -> Request.oneOf []\n }\n |> RouteBuilder.buildNoState { view = view }\n'));
|
|
26747
26747
|
}),
|
|
26748
26748
|
A2(
|
|
26749
26749
|
$elm_explorations$test$Test$test,
|
|
26750
26750
|
'no fix after replacement is made',
|
|
26751
26751
|
function (_v6) {
|
|
26752
26752
|
return $jfmengels$elm_review$Review$Test$expectNoErrors(
|
|
26753
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport
|
|
26753
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Route.Index exposing (Data, Model, Msg, route)\n\nimport Server.Request as Request\nimport FatalError\n\nimport BackendTask exposing (BackendTask)\nimport RouteBuilder exposing (Page, StaticPayload)\nimport Pages.PageUrl exposing (PageUrl)\nimport Pages.Url\nimport Path\nimport Route exposing (Route)\nimport Shared\nimport View exposing (View)\n\n\ntype alias Model =\n {}\n\n\ntype alias Msg =\n ()\n\n\ntype alias RouteParams =\n {}\n\n\ntype alias Data =\n ()\n\n\nroute : StatelessRoute RouteParams Data ActionData\nroute =\n RouteBuilder.single\n { head = head\n , data = BackendTask.fail (FatalError.fromString "")\n }\n |> RouteBuilder.buildNoState { view = view }\n\n\ndata : BackendTask Data\ndata =\n BackendTask.succeed ()\n'));
|
|
26754
26754
|
}),
|
|
26755
26755
|
A2(
|
|
26756
26756
|
$elm_explorations$test$Test$test,
|
|
@@ -26762,7 +26762,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26762
26762
|
[
|
|
26763
26763
|
A2(
|
|
26764
26764
|
$jfmengels$elm_review$Review$Test$whenFixed,
|
|
26765
|
-
'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport
|
|
26765
|
+
'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport FatalError\n\nimport Browser.Navigation\nimport BackendTask\nimport Html exposing (Html)\nimport Html.Styled\nimport Pages.Flags\nimport Pages.PageUrl exposing (PageUrl)\nimport Path exposing (Path)\nimport Route exposing (Route)\nimport SharedTemplate exposing (SharedTemplate)\nimport TableOfContents\nimport View exposing (View)\nimport View.Header\n\n\ntemplate : SharedTemplate Msg Model Data msg\ntemplate =\n { init = init\n , update = update\n , view = view\n , data = BackendTask.fail (FatalError.fromString "")\n , subscriptions = subscriptions\n , onPageChange = Just OnPageChange\n }\n\n\ntype alias Data =\n TableOfContents.TableOfContents TableOfContents.Data\n\n\ntype alias Model =\n { showMobileMenu : Bool\n , counter : Int\n , navigationKey : Maybe Browser.Navigation.Key\n }\n',
|
|
26766
26766
|
$jfmengels$elm_review$Review$Test$error(
|
|
26767
26767
|
{
|
|
26768
26768
|
details: _List_fromArray(
|
|
@@ -26771,7 +26771,7 @@ var $author$project$Pages$Review$DeadCodeEliminateDataTest$all = A2(
|
|
|
26771
26771
|
under: 'data = data\n ,'
|
|
26772
26772
|
}))
|
|
26773
26773
|
]),
|
|
26774
|
-
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport
|
|
26774
|
+
A2($jfmengels$elm_review$Review$Test$run, $author$project$Pages$Review$DeadCodeEliminateData$rule, 'module Shared exposing (Data, Model, Msg, template)\n\nimport Server.Request as Request\nimport FatalError\n\nimport Browser.Navigation\nimport BackendTask\nimport Html exposing (Html)\nimport Html.Styled\nimport Pages.Flags\nimport Pages.PageUrl exposing (PageUrl)\nimport Path exposing (Path)\nimport Route exposing (Route)\nimport SharedTemplate exposing (SharedTemplate)\nimport TableOfContents\nimport View exposing (View)\nimport View.Header\n\n\ntemplate : SharedTemplate Msg Model Data msg\ntemplate =\n { init = init\n , update = update\n , view = view\n , data = data\n , subscriptions = subscriptions\n , onPageChange = Just OnPageChange\n }\n\n\ntype alias Data =\n TableOfContents.TableOfContents TableOfContents.Data\n\n\ntype alias Model =\n { showMobileMenu : Bool\n , counter : Int\n , navigationKey : Maybe Browser.Navigation.Key\n }\n'));
|
|
26775
26775
|
})
|
|
26776
26776
|
]));
|
|
26777
26777
|
var $elm$core$Debug$todo = _Debug_todo;
|
|
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
|
|
|
75
75
|
const { Elm } = require("./Runner.elm.js");
|
|
76
76
|
|
|
77
77
|
// Start the Elm app
|
|
78
|
-
const flags = { initialSeed:
|
|
78
|
+
const flags = { initialSeed: 4015861069, fuzzRuns: 100, filter: null };
|
|
79
79
|
const app = Elm.Runner.init({ flags: flags });
|
|
80
80
|
|
|
81
81
|
// Record the timing at which we received the last "runTest" message
|
|
@@ -74,7 +74,7 @@ rule =
|
|
|
74
74
|
|
|
75
75
|
finalEvaluation : Context -> List (Rule.Error {})
|
|
76
76
|
finalEvaluation context =
|
|
77
|
-
case Dict.get [ "
|
|
77
|
+
case Dict.get [ "FatalError" ] context.importContext of
|
|
78
78
|
Nothing ->
|
|
79
79
|
let
|
|
80
80
|
importAddRange : { start : { row : Int, column : Int }, end : { row : Int, column : Int } }
|
|
@@ -86,7 +86,7 @@ finalEvaluation context =
|
|
|
86
86
|
, details = [ "" ]
|
|
87
87
|
}
|
|
88
88
|
importAddRange
|
|
89
|
-
[ Review.Fix.insertAt importAddRange.end "\nimport
|
|
89
|
+
[ Review.Fix.insertAt importAddRange.end "\nimport FatalError\n"
|
|
90
90
|
]
|
|
91
91
|
]
|
|
92
92
|
|
|
@@ -128,7 +128,7 @@ declarationVisitor node context =
|
|
|
128
128
|
exceptionFromString : String
|
|
129
129
|
exceptionFromString =
|
|
130
130
|
"("
|
|
131
|
-
++ referenceFunction context.importContext ( [ "
|
|
131
|
+
++ referenceFunction context.importContext ( [ "FatalError" ], "fromString" )
|
|
132
132
|
++ " \"\")"
|
|
133
133
|
in
|
|
134
134
|
case Node.value node of
|
|
@@ -168,7 +168,7 @@ declarationVisitor node context =
|
|
|
168
168
|
-- TODO need to replace `action` as well
|
|
169
169
|
[ ("data = "
|
|
170
170
|
++ referenceFunction context.importContext ( [ "BackendTask" ], "fail" )
|
|
171
|
-
-- TODO add `import
|
|
171
|
+
-- TODO add `import FatalError` if not present (and use alias if present)
|
|
172
172
|
++ " "
|
|
173
173
|
++ exceptionFromString
|
|
174
174
|
++ "\n "
|
|
@@ -221,7 +221,7 @@ expressionVisitor node context =
|
|
|
221
221
|
exceptionFromString : String
|
|
222
222
|
exceptionFromString =
|
|
223
223
|
"("
|
|
224
|
-
++ referenceFunction context.importContext ( [ "
|
|
224
|
+
++ referenceFunction context.importContext ( [ "FatalError" ], "fromString" )
|
|
225
225
|
++ " \"\")"
|
|
226
226
|
in
|
|
227
227
|
[ Rule.errorWithFix
|