@teselagen/ove 0.8.37 → 0.8.38
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/index.cjs.js +38 -1
- package/index.es.js +38 -1
- package/index.umd.js +38 -1
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -95195,7 +95195,44 @@ function getCurrentDateString() {
|
|
|
95195
95195
|
return day2 + "-" + month + "-" + year;
|
|
95196
95196
|
}
|
|
95197
95197
|
__name(getCurrentDateString, "getCurrentDateString");
|
|
95198
|
+
const standardLineLength = 79;
|
|
95198
95199
|
function featureNoteInDataToGenbankString(name2, value, options) {
|
|
95200
|
+
const valueString = mangleOrStripUrls(value, options);
|
|
95201
|
+
if (valueString.length > standardLineLength - 25 - name2.length) {
|
|
95202
|
+
const lines = [];
|
|
95203
|
+
let currentIndex = 0;
|
|
95204
|
+
while (currentIndex < valueString.length) {
|
|
95205
|
+
if (currentIndex === 0) {
|
|
95206
|
+
const chunk = valueString.substring(
|
|
95207
|
+
currentIndex,
|
|
95208
|
+
currentIndex + standardLineLength - name2.length - 24
|
|
95209
|
+
);
|
|
95210
|
+
lines.push(
|
|
95211
|
+
StringUtil.lpad("/", " ", 22) + name2 + '="' + chunk + (currentIndex + standardLineLength - 22 - name2.length >= valueString.length ? '"' : "")
|
|
95212
|
+
);
|
|
95213
|
+
currentIndex += standardLineLength - name2.length - 24;
|
|
95214
|
+
} else {
|
|
95215
|
+
const chunk = valueString.substring(
|
|
95216
|
+
currentIndex,
|
|
95217
|
+
currentIndex + standardLineLength - 21
|
|
95218
|
+
);
|
|
95219
|
+
if (currentIndex + standardLineLength - 21 >= valueString.length) {
|
|
95220
|
+
const lineString = " ".repeat(21) + chunk;
|
|
95221
|
+
if (lineString.length === standardLineLength) {
|
|
95222
|
+
lines.push(lineString);
|
|
95223
|
+
lines.push(" ".repeat(21) + '"');
|
|
95224
|
+
} else {
|
|
95225
|
+
lines.push(lineString + '"');
|
|
95226
|
+
}
|
|
95227
|
+
} else {
|
|
95228
|
+
const lineString = " ".repeat(21) + chunk;
|
|
95229
|
+
lines.push(lineString);
|
|
95230
|
+
}
|
|
95231
|
+
currentIndex += standardLineLength - 21;
|
|
95232
|
+
}
|
|
95233
|
+
}
|
|
95234
|
+
return lines.join("\r\n");
|
|
95235
|
+
}
|
|
95199
95236
|
return StringUtil.lpad("/", " ", 22) + name2 + '="' + mangleOrStripUrls(value, options) + '"';
|
|
95200
95237
|
}
|
|
95201
95238
|
__name(featureNoteInDataToGenbankString, "featureNoteInDataToGenbankString");
|
|
@@ -117208,7 +117245,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
117208
117245
|
input.click();
|
|
117209
117246
|
}
|
|
117210
117247
|
__name(showFileDialog, "showFileDialog");
|
|
117211
|
-
const version = "0.8.
|
|
117248
|
+
const version = "0.8.38";
|
|
117212
117249
|
const packageJson = {
|
|
117213
117250
|
version
|
|
117214
117251
|
};
|
package/index.es.js
CHANGED
|
@@ -95177,7 +95177,44 @@ function getCurrentDateString() {
|
|
|
95177
95177
|
return day2 + "-" + month + "-" + year;
|
|
95178
95178
|
}
|
|
95179
95179
|
__name(getCurrentDateString, "getCurrentDateString");
|
|
95180
|
+
const standardLineLength = 79;
|
|
95180
95181
|
function featureNoteInDataToGenbankString(name2, value, options) {
|
|
95182
|
+
const valueString = mangleOrStripUrls(value, options);
|
|
95183
|
+
if (valueString.length > standardLineLength - 25 - name2.length) {
|
|
95184
|
+
const lines = [];
|
|
95185
|
+
let currentIndex = 0;
|
|
95186
|
+
while (currentIndex < valueString.length) {
|
|
95187
|
+
if (currentIndex === 0) {
|
|
95188
|
+
const chunk = valueString.substring(
|
|
95189
|
+
currentIndex,
|
|
95190
|
+
currentIndex + standardLineLength - name2.length - 24
|
|
95191
|
+
);
|
|
95192
|
+
lines.push(
|
|
95193
|
+
StringUtil.lpad("/", " ", 22) + name2 + '="' + chunk + (currentIndex + standardLineLength - 22 - name2.length >= valueString.length ? '"' : "")
|
|
95194
|
+
);
|
|
95195
|
+
currentIndex += standardLineLength - name2.length - 24;
|
|
95196
|
+
} else {
|
|
95197
|
+
const chunk = valueString.substring(
|
|
95198
|
+
currentIndex,
|
|
95199
|
+
currentIndex + standardLineLength - 21
|
|
95200
|
+
);
|
|
95201
|
+
if (currentIndex + standardLineLength - 21 >= valueString.length) {
|
|
95202
|
+
const lineString = " ".repeat(21) + chunk;
|
|
95203
|
+
if (lineString.length === standardLineLength) {
|
|
95204
|
+
lines.push(lineString);
|
|
95205
|
+
lines.push(" ".repeat(21) + '"');
|
|
95206
|
+
} else {
|
|
95207
|
+
lines.push(lineString + '"');
|
|
95208
|
+
}
|
|
95209
|
+
} else {
|
|
95210
|
+
const lineString = " ".repeat(21) + chunk;
|
|
95211
|
+
lines.push(lineString);
|
|
95212
|
+
}
|
|
95213
|
+
currentIndex += standardLineLength - 21;
|
|
95214
|
+
}
|
|
95215
|
+
}
|
|
95216
|
+
return lines.join("\r\n");
|
|
95217
|
+
}
|
|
95181
95218
|
return StringUtil.lpad("/", " ", 22) + name2 + '="' + mangleOrStripUrls(value, options) + '"';
|
|
95182
95219
|
}
|
|
95183
95220
|
__name(featureNoteInDataToGenbankString, "featureNoteInDataToGenbankString");
|
|
@@ -117190,7 +117227,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
117190
117227
|
input.click();
|
|
117191
117228
|
}
|
|
117192
117229
|
__name(showFileDialog, "showFileDialog");
|
|
117193
|
-
const version = "0.8.
|
|
117230
|
+
const version = "0.8.38";
|
|
117194
117231
|
const packageJson = {
|
|
117195
117232
|
version
|
|
117196
117233
|
};
|
package/index.umd.js
CHANGED
|
@@ -124096,7 +124096,44 @@ ${seq.sequence}
|
|
|
124096
124096
|
return day2 + "-" + month + "-" + year;
|
|
124097
124097
|
}
|
|
124098
124098
|
__name(getCurrentDateString, "getCurrentDateString");
|
|
124099
|
+
const standardLineLength = 79;
|
|
124099
124100
|
function featureNoteInDataToGenbankString(name2, value, options) {
|
|
124101
|
+
const valueString = mangleOrStripUrls(value, options);
|
|
124102
|
+
if (valueString.length > standardLineLength - 25 - name2.length) {
|
|
124103
|
+
const lines = [];
|
|
124104
|
+
let currentIndex = 0;
|
|
124105
|
+
while (currentIndex < valueString.length) {
|
|
124106
|
+
if (currentIndex === 0) {
|
|
124107
|
+
const chunk = valueString.substring(
|
|
124108
|
+
currentIndex,
|
|
124109
|
+
currentIndex + standardLineLength - name2.length - 24
|
|
124110
|
+
);
|
|
124111
|
+
lines.push(
|
|
124112
|
+
StringUtil.lpad("/", " ", 22) + name2 + '="' + chunk + (currentIndex + standardLineLength - 22 - name2.length >= valueString.length ? '"' : "")
|
|
124113
|
+
);
|
|
124114
|
+
currentIndex += standardLineLength - name2.length - 24;
|
|
124115
|
+
} else {
|
|
124116
|
+
const chunk = valueString.substring(
|
|
124117
|
+
currentIndex,
|
|
124118
|
+
currentIndex + standardLineLength - 21
|
|
124119
|
+
);
|
|
124120
|
+
if (currentIndex + standardLineLength - 21 >= valueString.length) {
|
|
124121
|
+
const lineString = " ".repeat(21) + chunk;
|
|
124122
|
+
if (lineString.length === standardLineLength) {
|
|
124123
|
+
lines.push(lineString);
|
|
124124
|
+
lines.push(" ".repeat(21) + '"');
|
|
124125
|
+
} else {
|
|
124126
|
+
lines.push(lineString + '"');
|
|
124127
|
+
}
|
|
124128
|
+
} else {
|
|
124129
|
+
const lineString = " ".repeat(21) + chunk;
|
|
124130
|
+
lines.push(lineString);
|
|
124131
|
+
}
|
|
124132
|
+
currentIndex += standardLineLength - 21;
|
|
124133
|
+
}
|
|
124134
|
+
}
|
|
124135
|
+
return lines.join("\r\n");
|
|
124136
|
+
}
|
|
124100
124137
|
return StringUtil.lpad("/", " ", 22) + name2 + '="' + mangleOrStripUrls(value, options) + '"';
|
|
124101
124138
|
}
|
|
124102
124139
|
__name(featureNoteInDataToGenbankString, "featureNoteInDataToGenbankString");
|
|
@@ -145306,7 +145343,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
|
|
|
145306
145343
|
input.click();
|
|
145307
145344
|
}
|
|
145308
145345
|
__name(showFileDialog, "showFileDialog");
|
|
145309
|
-
const version = "0.8.
|
|
145346
|
+
const version = "0.8.38";
|
|
145310
145347
|
const packageJson = {
|
|
145311
145348
|
version
|
|
145312
145349
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.38",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/TeselaGen/tg-oss",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@blueprintjs/core": "3.54.0",
|
|
16
16
|
"@hello-pangea/dnd": "16.2.0",
|
|
17
17
|
"@risingstack/react-easy-state": "^6.3.0",
|
|
18
|
-
"@teselagen/bio-parsers": "0.4.
|
|
18
|
+
"@teselagen/bio-parsers": "0.4.36",
|
|
19
19
|
"@teselagen/file-utils": "0.3.23",
|
|
20
20
|
"@teselagen/range-utils": "0.3.20",
|
|
21
21
|
"@teselagen/react-list": "0.8.18",
|