From ec3d168e63bb9bd504fda060ae9bf116cf5c1d64 Mon Sep 17 00:00:00 2001 From: Irina Shestak Date: Mon, 18 Jun 2018 15:36:01 +0200 Subject: [PATCH] remove initial \n in import strings (#111) --- packages/bson-transpilers/index.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/bson-transpilers/index.js b/packages/bson-transpilers/index.js index 51a5ff6cc9a..0e80af4d7c5 100644 --- a/packages/bson-transpilers/index.js +++ b/packages/bson-transpilers/index.js @@ -75,8 +75,7 @@ const getCompiler = (visitor, generator, symbols) => { }; }; -const javaImports = ` -package com.example.test; +const javaImports = `package com.example.test; import com.mongodb.DBRef; import org.bson.BsonBinarySubType; @@ -90,21 +89,18 @@ import java.util.Arrays; import java.util.regex.Pattern; `; -const pythonImports = ` -from bson import * +const pythonImports = `from bson import * import datetime `; -const csharpImports = ` -using MongoDB.Bson; +const csharpImports = `using MongoDB.Bson; using MongoDB.Driver; using System; using System.Text.RegularExpressions; `; -const javascriptImports = ` -const { +const javascriptImports = `const { Binary, Code, ObjectId,