kodu 1.1.19 → 1.1.21
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/dist/package.json +1 -1
- package/dist/src/commands/ops/subcommands/ops-routes.command.js +3 -3
- package/dist/src/commands/ops/subcommands/ops-routes.command.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/commands/ops/subcommands/ops-routes.command.ts +3 -3
package/package.json
CHANGED
|
@@ -194,14 +194,14 @@ export class OpsRoutesCommand extends CommandRunner {
|
|
|
194
194
|
' if domain_re.search(text):',
|
|
195
195
|
' sys.stderr.write("Route already exists for domain")',
|
|
196
196
|
' sys.exit(3)',
|
|
197
|
-
' block = "
|
|
197
|
+
' block = "\\n" + domain + " {\\n reverse_proxy " + upstream + "\\n}\\n"',
|
|
198
198
|
' text = re.sub(r"\\s*$", "", text) + block',
|
|
199
199
|
'elif action == "remove":',
|
|
200
200
|
' if not domain_re.search(text):',
|
|
201
201
|
' sys.stderr.write("Route not found")',
|
|
202
202
|
' sys.exit(4)',
|
|
203
|
-
' text = domain_re.sub("
|
|
204
|
-
' text = re.sub(r"\\n{3,}", "
|
|
203
|
+
' text = domain_re.sub("\\n", text, count=1)',
|
|
204
|
+
' text = re.sub(r"\\n{3,}", "\\n\\n", text)',
|
|
205
205
|
' text = re.sub(r"^\\n+", "", text)',
|
|
206
206
|
'elif action == "update":',
|
|
207
207
|
' match = domain_re.search(text)',
|