Fix test.

This commit is contained in:
Dillon Kearns 2022-11-07 11:36:08 +05:30
parent f10d1c7a0c
commit 6d6640d5f4
5 changed files with 7 additions and 5 deletions

View File

@ -17,7 +17,7 @@
},
"../..": {
"name": "elm-pages",
"version": "3.0.0-beta.7",
"version": "3.0.0-beta.8",
"integrity": "sha512-VeCbtSNH5CW2G5m/uJcTYSRIQ2Y6bhYTZtRbNftKUBXn/oIMYrB6sqrUqV+WVTBs2hedCQQYZnaeZ/uWxqcIwQ==",
"dev": true,
"license": "BSD-3-Clause",

View File

@ -15,7 +15,7 @@
},
"../..": {
"name": "elm-pages",
"version": "3.0.0-beta.7",
"version": "3.0.0-beta.8",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {

View File

@ -17,7 +17,7 @@
},
"../..": {
"name": "elm-pages",
"version": "3.0.0-beta.7",
"version": "3.0.0-beta.8",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {

View File

@ -1,8 +1,8 @@
module Pages.Internal.Platform.Cli exposing (Flags, Model, Msg(..), Program, cliApplication, init, requestDecoder, update)
module Pages.Internal.Platform.Cli exposing (Flags, Model, Msg(..), Program, cliApplication, init, requestDecoder, update, currentCompatibilityKey)
{-| Exposed for internal use only (used in generated code).
@docs Flags, Model, Msg, Program, cliApplication, init, requestDecoder, update
@docs Flags, Model, Msg, Program, cliApplication, init, requestDecoder, update, currentCompatibilityKey
-}

View File

@ -435,6 +435,7 @@ startLowLevel apiRoutes staticHttpCache pages =
)
, ( "mode", Encode.string "prod" )
, ( "staticHttpCache", encodedStaticHttpCache )
, ( "compatibilityKey", Encode.int Pages.Internal.Platform.Cli.currentCompatibilityKey )
]
encodedStaticHttpCache : Encode.Value
@ -590,6 +591,7 @@ startWithRoutes pageToLoad _ staticHttpCache pages =
)
, ( "staticHttpCache", encodedStaticHttpCache )
, ( "mode", Encode.string "dev-server" )
, ( "compatibilityKey", Encode.int Pages.Internal.Platform.Cli.currentCompatibilityKey )
]
encodedStaticHttpCache : Encode.Value