@ar.io/sdk 3.23.0-alpha.3 → 3.23.0-alpha.4

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.
@@ -296,10 +296,16 @@ function paginationParamsFromOptions(options) {
296
296
  if (Array.isArray(filters)) {
297
297
  // every odd value is a key, every even value is a value for that key
298
298
  for (let i = 0; i < filters.length; i += 2) {
299
- // convert any strings that are numbers to numbers
299
+ // convert any strings that are numbers to numbers and any 'true'/'false' to booleans
300
300
  const value = filters[i + 1].split(',').map((v) => {
301
301
  const num = +v;
302
- return isNaN(num) ? v : num;
302
+ if (!isNaN(num))
303
+ return num;
304
+ if (v === 'true')
305
+ return true;
306
+ if (v === 'false')
307
+ return false;
308
+ return v;
303
309
  });
304
310
  filtersObject[filters[i]] = value;
305
311
  }
@@ -17,4 +17,4 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.version = void 0;
19
19
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
20
- exports.version = '3.23.0-alpha.3';
20
+ exports.version = '3.23.0-alpha.4';
@@ -242,10 +242,16 @@ export function paginationParamsFromOptions(options) {
242
242
  if (Array.isArray(filters)) {
243
243
  // every odd value is a key, every even value is a value for that key
244
244
  for (let i = 0; i < filters.length; i += 2) {
245
- // convert any strings that are numbers to numbers
245
+ // convert any strings that are numbers to numbers and any 'true'/'false' to booleans
246
246
  const value = filters[i + 1].split(',').map((v) => {
247
247
  const num = +v;
248
- return isNaN(num) ? v : num;
248
+ if (!isNaN(num))
249
+ return num;
250
+ if (v === 'true')
251
+ return true;
252
+ if (v === 'false')
253
+ return false;
254
+ return v;
249
255
  });
250
256
  filtersObject[filters[i]] = value;
251
257
  }
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '3.23.0-alpha.3';
17
+ export const version = '3.23.0-alpha.4';
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "3.23.0-alpha.2";
16
+ export declare const version = "3.23.0-alpha.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.23.0-alpha.3",
3
+ "version": "3.23.0-alpha.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"