index.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3. if (k2 === undefined) k2 = k;
  4. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  5. }) : (function(o, m, k, k2) {
  6. if (k2 === undefined) k2 = k;
  7. o[k2] = m[k];
  8. }));
  9. var __exportStar = (this && this.__exportStar) || function(m, exports) {
  10. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
  11. };
  12. Object.defineProperty(exports, "__esModule", { value: true });
  13. exports.createQueryOperation = exports.createEqualsOperation = exports.createDefaultQueryOperation = exports.createOperationTester = exports.createQueryTester = exports.EqualsOperation = void 0;
  14. const defaultOperations = require("./operations");
  15. const core_1 = require("./core");
  16. Object.defineProperty(exports, "createQueryTester", { enumerable: true, get: function () { return core_1.createQueryTester; } });
  17. Object.defineProperty(exports, "EqualsOperation", { enumerable: true, get: function () { return core_1.EqualsOperation; } });
  18. Object.defineProperty(exports, "createQueryOperation", { enumerable: true, get: function () { return core_1.createQueryOperation; } });
  19. Object.defineProperty(exports, "createEqualsOperation", { enumerable: true, get: function () { return core_1.createEqualsOperation; } });
  20. Object.defineProperty(exports, "createOperationTester", { enumerable: true, get: function () { return core_1.createOperationTester; } });
  21. const createDefaultQueryOperation = (query, ownerQuery, { compare, operations } = {}) => {
  22. return core_1.createQueryOperation(query, ownerQuery, {
  23. compare,
  24. operations: Object.assign({}, defaultOperations, operations || {})
  25. });
  26. };
  27. exports.createDefaultQueryOperation = createDefaultQueryOperation;
  28. const createDefaultQueryTester = (query, options = {}) => {
  29. console.log("Q", query);
  30. const op = createDefaultQueryOperation(query, null, options);
  31. return core_1.createOperationTester(op);
  32. };
  33. __exportStar(require("./operations"), exports);
  34. exports.default = createDefaultQueryTester;
  35. //# sourceMappingURL=index.js.map