diff --git a/package-lock.json b/package-lock.json index 4914aa6..4c5080f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "protoc-gen-elm", - "version": "3.3.2", + "version": "3.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "protoc-gen-elm", - "version": "3.3.2", + "version": "3.3.3", "license": "BSD-3-Clause", "bin": { "protoc-gen-elm": "index.js" diff --git a/package.json b/package.json index 50e9a78..d665bdc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "protoc-gen-elm", - "version": "3.3.2", + "version": "3.3.3", "description": "Elm protoc plugin", "keywords": [ "elm", diff --git a/src/Generator/Message.elm b/src/Generator/Message.elm index 0eaa207..d6b56e7 100644 --- a/src/Generator/Message.elm +++ b/src/Generator/Message.elm @@ -160,7 +160,7 @@ toAST options moduleName msg = else C.varPattern "value" ] - (if moduleName == [ "Google", "Protobuf" ] && msg.dataType == "Timestamp" then + (if moduleName == [ "Proto", "Google", "Protobuf" ] && msg.dataType == "Timestamp" then -- Use custom JSON encoder for timestamp C.apply [ C.fqFun [ "Protobuf", "Utils", "Timestamp" ] "timestampJsonEncoder", C.val "value" ]