@awsless/cli 0.1.41 → 0.1.43

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 (2) hide show
  1. package/dist/bin.js +3 -1
  2. package/package.json +14 -14
package/dist/bin.js CHANGED
@@ -189397,7 +189397,9 @@ var resolveMinimumShouldMatch = (spec, count) => {
189397
189397
  var boolQuery = ({ must, filter: filter2, should, mustNot, minimumShouldMatch, boost = 1 }) => {
189398
189398
  if (must.length + filter2.length + should.length + mustNot.length === 0)
189399
189399
  return matchAll(boost);
189400
- const msm = minimumShouldMatch === undefined ? should.length > 0 && must.length === 0 && filter2.length === 0 ? 1 : 0 : resolveMinimumShouldMatch(minimumShouldMatch, should.length);
189400
+ const optionalOnly = should.length > 0 && must.length === 0 && filter2.length === 0;
189401
+ const requested = minimumShouldMatch === undefined ? 0 : resolveMinimumShouldMatch(minimumShouldMatch, should.length);
189402
+ const msm = optionalOnly ? Math.max(1, requested) : requested;
189401
189403
  return { match: (unit) => {
189402
189404
  let score = 0;
189403
189405
  for (const query of must) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/cli",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "bugs": {
5
5
  "url": "https://github.com/awsless/awsless/issues"
6
6
  },
@@ -84,25 +84,25 @@
84
84
  "zod": "4.4.3",
85
85
  "@awsless/big-float": "^0.1.8",
86
86
  "@awsless/cloudwatch": "^0.0.2",
87
- "@awsless/duration": "^0.0.4",
88
87
  "@awsless/dynamodb": "^0.3.28",
88
+ "@awsless/duration": "^0.0.4",
89
89
  "@awsless/clui": "^0.0.10",
90
90
  "@awsless/dynamodb-server": "^0.1.11",
91
- "@awsless/lambda": "^0.0.50",
92
91
  "@awsless/iot": "^0.0.6",
93
- "@awsless/open-search-server": "^0.0.2",
94
- "@awsless/open-search": "^0.0.33",
95
92
  "@awsless/json": "^0.0.12",
93
+ "@awsless/lambda": "^0.0.50",
94
+ "@awsless/open-search-server": "^0.0.3",
95
+ "@awsless/open-search": "^0.0.34",
96
96
  "@awsless/redis": "^0.1.16",
97
+ "@awsless/s3": "^0.0.23",
97
98
  "@awsless/size": "^0.0.3",
98
99
  "@awsless/redis-server": "^0.1.1",
99
- "@awsless/s3": "^0.0.23",
100
- "@awsless/sqs": "^0.0.25",
101
100
  "@awsless/sns": "^0.0.12",
101
+ "@awsless/sqs": "^0.0.25",
102
102
  "@awsless/ts-file-cache": "^0.0.22",
103
+ "@awsless/weak-cache": "^0.0.2",
103
104
  "@awsless/validate": "^0.2.1",
104
- "awsless": "^0.1.11",
105
- "@awsless/weak-cache": "^0.0.2"
105
+ "awsless": "^0.1.11"
106
106
  },
107
107
  "peerDependencies": {
108
108
  "@aws-sdk/client-cloudfront-keyvaluestore": "3.1113.0",
@@ -121,16 +121,16 @@
121
121
  "@aws-sdk/lib-dynamodb": "3.1113.0",
122
122
  "@opensearch-project/opensearch": "3.6.0",
123
123
  "@awsless/duration": "^0.0.4",
124
- "@awsless/lambda": "^0.0.50",
124
+ "@awsless/big-float": "^0.1.8",
125
125
  "@awsless/dynamodb": "^0.3.28",
126
- "@awsless/s3": "^0.0.23",
127
126
  "@awsless/dynamodb-server": "^0.1.11",
128
127
  "@awsless/json": "^0.0.12",
129
- "@awsless/big-float": "^0.1.8",
130
128
  "@awsless/ts-file-cache": "^0.0.22",
131
- "@awsless/validate": "^0.2.1",
129
+ "@awsless/lambda": "^0.0.50",
130
+ "@awsless/weak-cache": "^0.0.2",
132
131
  "awsless": "^0.1.11",
133
- "@awsless/weak-cache": "^0.0.2"
132
+ "@awsless/s3": "^0.0.23",
133
+ "@awsless/validate": "^0.2.1"
134
134
  },
135
135
  "scripts": {
136
136
  "test": "bun cli/build-handlers.ts && pnpm vitest run",