@teselagen/ove 0.3.59 → 0.3.61

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.
Files changed (4) hide show
  1. package/index.cjs.js +212 -175
  2. package/index.es.js +212 -175
  3. package/index.umd.js +34 -15
  4. package/package.json +4 -4
package/index.umd.js CHANGED
@@ -43819,10 +43819,10 @@ ${latestSubscriptionCallbackError.current.stack}
43819
43819
  return result;
43820
43820
  }, "_objectKeysInternal");
43821
43821
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
43822
- var $keys$3 = _objectKeysInternal;
43822
+ var $keys$2 = _objectKeysInternal;
43823
43823
  var enumBugKeys$1 = _enumBugKeys;
43824
43824
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys2(O2) {
43825
- return $keys$3(O2, enumBugKeys$1);
43825
+ return $keys$2(O2, enumBugKeys$1);
43826
43826
  }, "keys");
43827
43827
  var _objectGops = {};
43828
43828
  _objectGops.f = Object.getOwnPropertySymbols;
@@ -44507,13 +44507,21 @@ ${latestSubscriptionCallbackError.current.stack}
44507
44507
  }, "isArray");
44508
44508
  var _objectGopnExt = {};
44509
44509
  var _objectGopn = {};
44510
- var $keys$2 = _objectKeysInternal;
44511
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
44512
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames2(O2) {
44513
- return $keys$2(O2, hiddenKeys);
44514
- }, "getOwnPropertyNames");
44510
+ var hasRequired_objectGopn;
44511
+ function require_objectGopn() {
44512
+ if (hasRequired_objectGopn)
44513
+ return _objectGopn;
44514
+ hasRequired_objectGopn = 1;
44515
+ var $keys2 = _objectKeysInternal;
44516
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
44517
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames2(O2) {
44518
+ return $keys2(O2, hiddenKeys);
44519
+ }, "getOwnPropertyNames");
44520
+ return _objectGopn;
44521
+ }
44522
+ __name(require_objectGopn, "require_objectGopn");
44515
44523
  var toIObject$2 = _toIobject;
44516
- var gOPN$1 = _objectGopn.f;
44524
+ var gOPN$1 = require_objectGopn().f;
44517
44525
  var toString$3 = {}.toString;
44518
44526
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
44519
44527
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -44706,7 +44714,7 @@ ${latestSubscriptionCallbackError.current.stack}
44706
44714
  }, "toString"));
44707
44715
  $GOPD.f = $getOwnPropertyDescriptor;
44708
44716
  $DP.f = $defineProperty;
44709
- _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
44717
+ require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
44710
44718
  require_objectPie().f = $propertyIsEnumerable;
44711
44719
  $GOPS.f = $getOwnPropertySymbols;
44712
44720
  if (DESCRIPTORS && !_library) {
@@ -100411,7 +100419,11 @@ ${latestSubscriptionCallbackError.current.stack}
100411
100419
  }
100412
100420
  ];
100413
100421
  const mainExampleData = {};
100414
- const mainSchema = a2.validateAgainstSchema.fields.map((f2) => {
100422
+ const fieldsToUse = [
100423
+ ...validateAgainstSchema.fields,
100424
+ ...a2.exampleDownloadFields
100425
+ ];
100426
+ const mainSchema = fieldsToUse.map((f2) => {
100415
100427
  mainExampleData[f2.displayName || f2.path] = f2.example || f2.defaultValue;
100416
100428
  return {
100417
100429
  column: f2.displayName || f2.path,
@@ -100421,7 +100433,7 @@ ${latestSubscriptionCallbackError.current.stack}
100421
100433
  };
100422
100434
  });
100423
100435
  const b3 = yield writeXlsxFile(
100424
- [[mainExampleData], a2.validateAgainstSchema.fields, helperText],
100436
+ [[mainExampleData], fieldsToUse, helperText],
100425
100437
  {
100426
100438
  headerStyle: {
100427
100439
  fontWeight: "bold"
@@ -100440,13 +100452,17 @@ ${latestSubscriptionCallbackError.current.stack}
100440
100452
  exampleFile: () => {
100441
100453
  var _a3;
100442
100454
  const rows = [];
100455
+ const schemaToUse = [
100456
+ ...a2.validateAgainstSchema.fields,
100457
+ ...a2.validateAgainstSchema.exampleDownloadFields
100458
+ ];
100443
100459
  rows.push(
100444
- a2.validateAgainstSchema.fields.map((f2) => {
100460
+ schemaToUse.map((f2) => {
100445
100461
  return `${f2.displayName || f2.path}`;
100446
100462
  })
100447
100463
  );
100448
100464
  rows.push(
100449
- a2.validateAgainstSchema.fields.map((f2) => {
100465
+ schemaToUse.map((f2) => {
100450
100466
  return `${f2.example || f2.defaultValue || ""}`;
100451
100467
  })
100452
100468
  );
@@ -121538,10 +121554,13 @@ ${latestSubscriptionCallbackError.current.stack}
121538
121554
  );
121539
121555
  const aaArray = [];
121540
121556
  let aaString = "";
121541
- aminoAcidsPerBase.forEach((aa2) => {
121557
+ aminoAcidsPerBase.forEach((aa2, index2) => {
121542
121558
  if (!aa2.fullCodon) {
121543
121559
  return;
121544
121560
  }
121561
+ if (index2 === aminoAcidsPerBase.length - 1 && aa2.aminoAcid.value === "*") {
121562
+ return;
121563
+ }
121545
121564
  aaArray[aa2.aminoAcidIndex] = aa2.aminoAcid.value;
121546
121565
  });
121547
121566
  aaString = aaArray.join("");
@@ -153998,7 +154017,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
153998
154017
  }
153999
154018
  __name(showFileDialog, "showFileDialog");
154000
154019
  const name = "@teselagen/ove";
154001
- const version = "0.3.58";
154020
+ const version = "0.3.60";
154002
154021
  const main = "./src/index.js";
154003
154022
  const exports$1 = {
154004
154023
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.59",
3
+ "version": "0.3.61",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -13,12 +13,12 @@
13
13
  "node": "16.20.2"
14
14
  },
15
15
  "dependencies": {
16
- "@teselagen/sequence-utils": "0.3.13",
16
+ "@teselagen/sequence-utils": "0.3.14",
17
17
  "@teselagen/range-utils": "0.3.7",
18
- "@teselagen/ui": "0.3.50",
18
+ "@teselagen/ui": "0.3.51",
19
19
  "@teselagen/file-utils": "0.3.11",
20
20
  "@teselagen/bounce-loader": "0.3.11",
21
- "@teselagen/bio-parsers": "0.4.7",
21
+ "@teselagen/bio-parsers": "0.4.8",
22
22
  "@blueprintjs/core": "3.52.0",
23
23
  "@blueprintjs/datetime": "3.23.19",
24
24
  "@blueprintjs/icons": "3.33.0",