dyno-table 2.6.0 → 2.6.1

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.
@@ -1,70 +1,63 @@
1
1
  'use strict';
2
2
 
3
- var chunk7UJJ7JXM_cjs = require('./chunk-7UJJ7JXM.cjs');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "and", {
8
- enumerable: true,
9
- get: function () { return chunk7UJJ7JXM_cjs.and; }
10
- });
11
- Object.defineProperty(exports, "attributeExists", {
12
- enumerable: true,
13
- get: function () { return chunk7UJJ7JXM_cjs.attributeExists; }
14
- });
15
- Object.defineProperty(exports, "attributeNotExists", {
16
- enumerable: true,
17
- get: function () { return chunk7UJJ7JXM_cjs.attributeNotExists; }
18
- });
19
- Object.defineProperty(exports, "beginsWith", {
20
- enumerable: true,
21
- get: function () { return chunk7UJJ7JXM_cjs.beginsWith; }
22
- });
23
- Object.defineProperty(exports, "between", {
24
- enumerable: true,
25
- get: function () { return chunk7UJJ7JXM_cjs.between; }
26
- });
27
- Object.defineProperty(exports, "contains", {
28
- enumerable: true,
29
- get: function () { return chunk7UJJ7JXM_cjs.contains; }
30
- });
31
- Object.defineProperty(exports, "createComparisonCondition", {
32
- enumerable: true,
33
- get: function () { return chunk7UJJ7JXM_cjs.createComparisonCondition; }
34
- });
35
- Object.defineProperty(exports, "eq", {
36
- enumerable: true,
37
- get: function () { return chunk7UJJ7JXM_cjs.eq; }
38
- });
39
- Object.defineProperty(exports, "gt", {
40
- enumerable: true,
41
- get: function () { return chunk7UJJ7JXM_cjs.gt; }
42
- });
43
- Object.defineProperty(exports, "gte", {
44
- enumerable: true,
45
- get: function () { return chunk7UJJ7JXM_cjs.gte; }
46
- });
47
- Object.defineProperty(exports, "inArray", {
48
- enumerable: true,
49
- get: function () { return chunk7UJJ7JXM_cjs.inArray; }
50
- });
51
- Object.defineProperty(exports, "lt", {
52
- enumerable: true,
53
- get: function () { return chunk7UJJ7JXM_cjs.lt; }
54
- });
55
- Object.defineProperty(exports, "lte", {
56
- enumerable: true,
57
- get: function () { return chunk7UJJ7JXM_cjs.lte; }
58
- });
59
- Object.defineProperty(exports, "ne", {
60
- enumerable: true,
61
- get: function () { return chunk7UJJ7JXM_cjs.ne; }
62
- });
63
- Object.defineProperty(exports, "not", {
64
- enumerable: true,
65
- get: function () { return chunk7UJJ7JXM_cjs.not; }
66
- });
67
- Object.defineProperty(exports, "or", {
68
- enumerable: true,
69
- get: function () { return chunk7UJJ7JXM_cjs.or; }
3
+ // src/conditions.ts
4
+ var createComparisonCondition = (type) => (attr, value) => ({
5
+ type,
6
+ attr,
7
+ value
8
+ });
9
+ var eq = createComparisonCondition("eq");
10
+ var ne = createComparisonCondition("ne");
11
+ var lt = createComparisonCondition("lt");
12
+ var lte = createComparisonCondition("lte");
13
+ var gt = createComparisonCondition("gt");
14
+ var gte = createComparisonCondition("gte");
15
+ var between = (attr, lower, upper) => ({
16
+ type: "between",
17
+ attr,
18
+ value: [lower, upper]
19
+ });
20
+ var inArray = (attr, values) => ({
21
+ type: "in",
22
+ attr,
23
+ value: values
24
+ });
25
+ var beginsWith = createComparisonCondition("beginsWith");
26
+ var contains = createComparisonCondition("contains");
27
+ var attributeExists = (attr) => ({
28
+ type: "attributeExists",
29
+ attr
30
+ });
31
+ var attributeNotExists = (attr) => ({
32
+ type: "attributeNotExists",
33
+ attr
34
+ });
35
+ var and = (...conditions) => ({
36
+ type: "and",
37
+ conditions
38
+ });
39
+ var or = (...conditions) => ({
40
+ type: "or",
41
+ conditions
42
+ });
43
+ var not = (condition) => ({
44
+ type: "not",
45
+ condition
70
46
  });
47
+
48
+ exports.and = and;
49
+ exports.attributeExists = attributeExists;
50
+ exports.attributeNotExists = attributeNotExists;
51
+ exports.beginsWith = beginsWith;
52
+ exports.between = between;
53
+ exports.contains = contains;
54
+ exports.createComparisonCondition = createComparisonCondition;
55
+ exports.eq = eq;
56
+ exports.gt = gt;
57
+ exports.gte = gte;
58
+ exports.inArray = inArray;
59
+ exports.lt = lt;
60
+ exports.lte = lte;
61
+ exports.ne = ne;
62
+ exports.not = not;
63
+ exports.or = or;
@@ -1 +1,46 @@
1
- export { and, attributeExists, attributeNotExists, beginsWith, between, contains, createComparisonCondition, eq, gt, gte, inArray, lt, lte, ne, not, or } from './chunk-2WIBY7PZ.js';
1
+ // src/conditions.ts
2
+ var createComparisonCondition = (type) => (attr, value) => ({
3
+ type,
4
+ attr,
5
+ value
6
+ });
7
+ var eq = createComparisonCondition("eq");
8
+ var ne = createComparisonCondition("ne");
9
+ var lt = createComparisonCondition("lt");
10
+ var lte = createComparisonCondition("lte");
11
+ var gt = createComparisonCondition("gt");
12
+ var gte = createComparisonCondition("gte");
13
+ var between = (attr, lower, upper) => ({
14
+ type: "between",
15
+ attr,
16
+ value: [lower, upper]
17
+ });
18
+ var inArray = (attr, values) => ({
19
+ type: "in",
20
+ attr,
21
+ value: values
22
+ });
23
+ var beginsWith = createComparisonCondition("beginsWith");
24
+ var contains = createComparisonCondition("contains");
25
+ var attributeExists = (attr) => ({
26
+ type: "attributeExists",
27
+ attr
28
+ });
29
+ var attributeNotExists = (attr) => ({
30
+ type: "attributeNotExists",
31
+ attr
32
+ });
33
+ var and = (...conditions) => ({
34
+ type: "and",
35
+ conditions
36
+ });
37
+ var or = (...conditions) => ({
38
+ type: "or",
39
+ conditions
40
+ });
41
+ var not = (condition) => ({
42
+ type: "not",
43
+ condition
44
+ });
45
+
46
+ export { and, attributeExists, attributeNotExists, beginsWith, between, contains, createComparisonCondition, eq, gt, gte, inArray, lt, lte, ne, not, or };