sequence.cjs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. "use strict";
  2. var __defProp = Object.defineProperty;
  3. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  4. var __getOwnPropNames = Object.getOwnPropertyNames;
  5. var __hasOwnProp = Object.prototype.hasOwnProperty;
  6. var __export = (target, all) => {
  7. for (var name in all)
  8. __defProp(target, name, { get: all[name], enumerable: true });
  9. };
  10. var __copyProps = (to, from, except, desc) => {
  11. if (from && typeof from === "object" || typeof from === "function") {
  12. for (let key of __getOwnPropNames(from))
  13. if (!__hasOwnProp.call(to, key) && key !== except)
  14. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  15. }
  16. return to;
  17. };
  18. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  19. var sequence_exports = {};
  20. __export(sequence_exports, {
  21. GelSequence: () => GelSequence,
  22. gelSequence: () => gelSequence,
  23. gelSequenceWithSchema: () => gelSequenceWithSchema,
  24. isGelSequence: () => isGelSequence
  25. });
  26. module.exports = __toCommonJS(sequence_exports);
  27. var import_entity = require("../entity.cjs");
  28. class GelSequence {
  29. constructor(seqName, seqOptions, schema) {
  30. this.seqName = seqName;
  31. this.seqOptions = seqOptions;
  32. this.schema = schema;
  33. }
  34. static [import_entity.entityKind] = "GelSequence";
  35. }
  36. function gelSequence(name, options) {
  37. return gelSequenceWithSchema(name, options, void 0);
  38. }
  39. function gelSequenceWithSchema(name, options, schema) {
  40. return new GelSequence(name, options, schema);
  41. }
  42. function isGelSequence(obj) {
  43. return (0, import_entity.is)(obj, GelSequence);
  44. }
  45. // Annotate the CommonJS export names for ESM import in node:
  46. 0 && (module.exports = {
  47. GelSequence,
  48. gelSequence,
  49. gelSequenceWithSchema,
  50. isGelSequence
  51. });
  52. //# sourceMappingURL=sequence.cjs.map