@dpgradio/creative 5.1.0 → 5.1.1
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.
package/package.json
CHANGED
|
@@ -2,11 +2,13 @@ import Endpoint from './Endpoint.js'
|
|
|
2
2
|
|
|
3
3
|
export default class Config extends Endpoint {
|
|
4
4
|
async global({ stationIds = null, domains = null }) {
|
|
5
|
-
return await this.requestData((r) => r.get('/config', { station_ids: stationIds, domains }))
|
|
5
|
+
return await this.requestData((r) => r.get('/config', this.withoutNullValues({ station_ids: stationIds, domains })))
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
async app(appId, { stationIds = null, domains = null }) {
|
|
9
|
-
return await this.requestData((r) =>
|
|
9
|
+
return await this.requestData((r) =>
|
|
10
|
+
r.get(`/config/${appId}`, this.withoutNullValues({ station_ids: stationIds, domains }))
|
|
11
|
+
)
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
async updateSchema(appId, schema) {
|