Skip to content

Commit

Permalink
remove initial \n in import strings (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlna authored and mcasimir committed Jun 25, 2021
1 parent 82edc99 commit ec3d168
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/bson-transpilers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit ec3d168

Please sign in to comment.