Skip to content

Commit cddd2fe

Browse files
committed
use a more version-friendly URL parser for lib/api.js
1 parent 3c8e17e commit cddd2fe

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const https = require('https');
2-
const URL = require('url').URL;
2+
const URL = require('url');
33

44
class ApiClient {
55
constructor(config) {
@@ -38,7 +38,7 @@ class ApiClient {
3838

3939
sendQbRequest(action, data, mainAPICall) {
4040
const dbid = mainAPICall ? "main" : this.config.dbid;
41-
const url = new URL(`https://${this.config.realm}.quickbase.com/db/${dbid}?a=${action}`);
41+
const url = URL.parse(`https://${this.config.realm}.quickbase.com/db/${dbid}?a=${action}`);
4242
const postData = `
4343
<qdbapi>
4444
<username>${this.config.username}</username>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickbase-cli",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "Command line tool for custom QuickBase development",
55
"main": "bin/qb.js",
66
"bin": {

0 commit comments

Comments
 (0)