@opencloning/utils 1.9.1 → 1.9.2
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/CHANGELOG.md +7 -0
- package/package.json +2 -2
- package/src/utils/readNwrite.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @opencloning/utils
|
|
2
2
|
|
|
3
|
+
## 1.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`bc045f9`](https://github.com/OpenCloning/OpenCloning_frontend/commit/bc045f9e74b4d5b84250dcb5a77b93de99e4d684)]:
|
|
8
|
+
- @opencloning/store@1.9.2
|
|
9
|
+
|
|
3
10
|
## 1.9.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"license": "MIT",
|
|
3
3
|
"name": "@opencloning/utils",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/utils/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"directory": "packages/utils"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@opencloning/store": "1.9.
|
|
34
|
+
"@opencloning/store": "1.9.2",
|
|
35
35
|
"@teselagen/bio-parsers": "^0.4.38",
|
|
36
36
|
"@teselagen/sequence-utils": "^0.3.42",
|
|
37
37
|
"@zip.js/zip.js": "^2.8.26",
|
package/src/utils/readNwrite.js
CHANGED
|
@@ -154,7 +154,7 @@ export const downloadCloningStrategyAsSvg = async (fileName) => {
|
|
|
154
154
|
downloadTextFile(svgString, fileName);
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export async function
|
|
157
|
+
export async function parseHistoryFile(file) {
|
|
158
158
|
const isZipFile = file.name.endsWith('.zip');
|
|
159
159
|
const isJsonFile = file.name.endsWith('.json');
|
|
160
160
|
|
|
@@ -275,7 +275,7 @@ export function formatTemplate(data, url) {
|
|
|
275
275
|
const segments = url.split('/');
|
|
276
276
|
const kitUrl = segments[segments.length - 3];
|
|
277
277
|
const rootGithubUrl = 'https://assets.opencloning.org/OpenCloning-submission/submissions';
|
|
278
|
-
newData.sources = newData.sources.map((s) => ((!
|
|
278
|
+
newData.sources = newData.sources.map((s) => ((!s.image || s.image[0] === null) ? s : {
|
|
279
279
|
...s, image: [`${rootGithubUrl}/${kitUrl}/${s.image[0]}`, s.image[1]],
|
|
280
280
|
}));
|
|
281
281
|
return newData;
|