@clipboard-health/json-api
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@clipboard-health/json-api", | ||
"description": "", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"bugs": "https://github.com/clipboardhealth/core-utils/issues", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -1,2 +0,1 @@ | ||
import { URLSearchParams } from "node:url"; | ||
import { type ClientJsonApiQuery } from "./types"; | ||
@@ -3,0 +2,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toSearchParams = toSearchParams; | ||
const node_url_1 = require("node:url"); | ||
function filterValueString(value) { | ||
@@ -17,3 +16,3 @@ return value instanceof Date ? value.toISOString() : String(value); | ||
function toSearchParams(query) { | ||
const searchParams = new node_url_1.URLSearchParams(); | ||
const searchParams = new URLSearchParams(); | ||
if (query.fields) { | ||
@@ -20,0 +19,0 @@ Object.entries(query.fields).forEach(([type, fields]) => { |
Sorry, the diff of this file is not supported yet
14381
204