@zaneray/accelo
Advanced tools
Comparing version 1.0.2 to 1.0.3-29
@@ -198,3 +198,4 @@ const { logger } = require("@zaneray/gcp-node-logging"); | ||
fields = fields ? `&_fields=${fields}` : ''; | ||
let count = await this.#get(`${path}/count?${filters}`); | ||
let q = (filters !== '' && fields !== '') ? '?' : ''; | ||
let count = await this.#get(`${path}/count${q}${filters}`); | ||
count = Number.parseInt(count.count); | ||
@@ -276,3 +277,3 @@ let pageCount = Math.ceil(count / limit); | ||
await this.#login(options); | ||
let res = await fetch(`https://${this.#deployment}.api.accelo.com/api/v0/${path}`, options); | ||
let res = await fetch(`https://${this.#deployment}.api.accelo.com/api/v0${path}`, options); | ||
// console.log(await res.status()); | ||
@@ -279,0 +280,0 @@ // console.log(await res.statusText()); |
{ | ||
"name": "@zaneray/accelo", | ||
"version": "1.0.2", | ||
"version": "1.0.3-29", | ||
"description": "Seller of the Product", | ||
@@ -8,3 +8,3 @@ "author": "The ZaneRay Group", | ||
"scripts": { | ||
"testx": "export $(grep -v '^#' .env | xargs) && node test/test.js", | ||
"dev": "export $(grep -v '^#' .env | xargs) && node test/test.js", | ||
"test": "echo noop", | ||
@@ -11,0 +11,0 @@ "build": "echo nothing to see here, move along..." |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
363
15379
2