vdl/js: Require 'vanadium' rather than 'veyron'
MultiPart: 1/3
Change-Id: Iac779cbffb30f1c070364c64dfbea09dde0da483
diff --git a/lib/vdl/codegen/javascript/gen.go b/lib/vdl/codegen/javascript/gen.go
index 4d59bb4..1434291 100644
--- a/lib/vdl/codegen/javascript/gen.go
+++ b/lib/vdl/codegen/javascript/gen.go
@@ -328,7 +328,7 @@
if data.PathToCoreJS != "" {
res += packagePrefix + "/vdl');"
} else {
- res += "veyron').vdl;"
+ res += "vanadium').vdl;"
}
res += "\n"
if hasErrors(data.Pkg) {
@@ -336,8 +336,8 @@
res += "var makeError = require('" + packagePrefix + "/errors/make-errors');\n"
res += "var actions = require('" + packagePrefix + "/errors/actions');\n"
} else {
- res += "var makeError = require('veyron').makeError;\n"
- res += "var actions = require('veyron').errorActions;\n"
+ res += "var makeError = require('vanadium').makeError;\n"
+ res += "var actions = require('vanadium').errorActions;\n"
}
}
return res
@@ -365,7 +365,7 @@
// complicated logic is delegated to the helper functions above.
//
// We try to generate code that has somewhat reasonable formatting.
-const genJS = `{{with $data := .}}// This file was auto-generated by the veyron vdl tool.
+const genJS = `{{with $data := .}}// This file was auto-generated by the vanadium vdl tool.
{{generateSystemImports $data}}
{{/* Define additional imported modules. */}}