@teselagen/bio-parsers 0.4.16 → 0.4.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/bio-parsers",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "dependencies": {
5
5
  "@teselagen/sequence-utils": "0.3.24",
6
6
  "@teselagen/range-utils": "0.3.7",
@@ -7,8 +7,8 @@ import {
7
7
  } from "./utils/searchWholeObjByName";
8
8
 
9
9
  import { XMLParser } from "fast-xml-parser";
10
- import { forEach, flatMap } from "lodash";
11
- import { filter } from "lodash";
10
+ import { forEach, flatMap } from "lodash-es";
11
+ import { filter } from "lodash-es";
12
12
 
13
13
  //Here's what should be in the callback:
14
14
  // {
package/src/gffToJson.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import gff from "@gmod/gff";
2
- import { get } from "lodash";
2
+ import { get } from "lodash-es";
3
3
 
4
4
  function gffToJson(string) {
5
5
  const arrayOfThings = gff.parseStringSync(string);
@@ -2,7 +2,7 @@
2
2
 
3
3
  import validateSequenceArray from "./utils/validateSequenceArray";
4
4
  import { XMLParser } from "fast-xml-parser";
5
- import { filter } from "lodash";
5
+ import { filter } from "lodash-es";
6
6
 
7
7
  //Here's what should be in the callback:
8
8
  // {
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-var*/
2
- import { get, cloneDeep, map, each, isObject, flatMap } from "lodash";
2
+ import { get, cloneDeep, map, each, isObject, flatMap } from "lodash-es";
3
3
  import color from "color";
4
4
 
5
5
  import pragmasAndTypes from "./utils/pragmasAndTypes.js";
@@ -343,8 +343,8 @@ function featureToGenbankString(feat, options) {
343
343
  feat.arrowheadType.toUpperCase() === "BOTH"
344
344
  ? "BOTH"
345
345
  : feat.arrowheadType.toUpperCase() === "NONE"
346
- ? "NONE"
347
- : undefined;
346
+ ? "NONE"
347
+ : undefined;
348
348
 
349
349
  if (valToAdd) addToNotes(feat, "direction", valToAdd);
350
350
  }
@@ -1,4 +1,4 @@
1
- import { omit } from "lodash";
1
+ import { omit } from "lodash-es";
2
2
 
3
3
  import cleanUpTeselagenJsonForExport from "./utils/cleanUpTeselagenJsonForExport";
4
4
  import { tidyUpSequenceData } from "@teselagen/sequence-utils";
@@ -6,7 +6,7 @@ import searchWholeObjByName, {
6
6
  } from "./utils/searchWholeObjByName";
7
7
 
8
8
  import { XMLParser } from "fast-xml-parser";
9
- import { flatMap, get } from "lodash";
9
+ import { flatMap, get } from "lodash-es";
10
10
 
11
11
  //Here's what should be in the callback:
12
12
  // {
@@ -9,7 +9,7 @@ import getArrayBufferFromFile from "./utils/getArrayBufferFromFile";
9
9
  import createInitialSequence from "./utils/createInitialSequence";
10
10
  import validateSequenceArray from "./utils/validateSequenceArray";
11
11
  import flattenSequenceArray from "./utils/flattenSequenceArray";
12
- import { get } from "lodash";
12
+ import { get } from "lodash-es";
13
13
  import { XMLParser } from "fast-xml-parser";
14
14
  import extractFileExtension from "./utils/extractFileExtension";
15
15
 
@@ -1,4 +1,4 @@
1
- import { cloneDeep, forEach } from "lodash";
1
+ import { cloneDeep, forEach } from "lodash-es";
2
2
 
3
3
  export default function cleanUpTeselagenJsonForExport(tgJson) {
4
4
  const seqData = cloneDeep(tgJson);
@@ -1,6 +1,6 @@
1
1
  //tnr: taken from https://github.com/angus-c/waldojs (not using waldojs as it is not being maintained and pulled in nasty babel runtime transforms)
2
2
  /* eslint-disable eqeqeq */
3
- import { isEqual } from "lodash";
3
+ import { isEqual } from "lodash-es";
4
4
 
5
5
  class Match {
6
6
  constructor(props) {
@@ -4,10 +4,10 @@ import {
4
4
  filterSequenceString,
5
5
  guessIfSequenceIsDnaAndNotProtein
6
6
  } from "@teselagen/sequence-utils";
7
- import { filter, some, upperFirst } from "lodash";
7
+ import { filter, some, upperFirst } from "lodash-es";
8
8
  import pragmasAndTypes from "./pragmasAndTypes.js";
9
- import { forEach } from "lodash";
10
- import { map } from "lodash";
9
+ import { forEach } from "lodash-es";
10
+ import { map } from "lodash-es";
11
11
  import { unmangleUrls } from "./unmangleUrls";
12
12
  import { reformatName } from "./NameUtils.js";
13
13