@cobaltio/cobalt-js 3.0.3 → 3.0.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.
package/README.md CHANGED
@@ -100,7 +100,7 @@ cobalt.token = "COBALT_SESSION_TOKEN";
100
100
  * [.config(slug, configId, [fields])](#Cobalt+config) ⇒ [<code>Promise.&lt;Config&gt;</code>](#Config)
101
101
  * [.updateConfig(slug, configId, payload)](#Cobalt+updateConfig) ⇒ [<code>Promise.&lt;Config&gt;</code>](#Config)
102
102
  * [.deleteConfig(slug, configId)](#Cobalt+deleteConfig) ⇒ <code>Promise.&lt;unknown&gt;</code>
103
- Additional Methods:
103
+ * Additional Methods:
104
104
  * [.getApp([slug])](#Cobalt+getApp) ⇒ [<code>Promise.&lt;Application&gt;</code>](#Application)
105
105
  * [.getConfig(slug, configId)](#Cobalt+getConfig) ⇒ [<code>Promise.&lt;Config&gt;</code>](#Config)
106
106
 
@@ -126,9 +126,9 @@ it returns all the enabled applications.
126
126
  **Kind**: instance method of [<code>Cobalt</code>](#Cobalt)
127
127
  **Returns**: [<code>Promise.&lt;Application&gt;</code>](#Application) - The application details.
128
128
 
129
- | Param | Type | Description |
130
- | --- | --- | --- |
131
- | [slug] | <code>String</code> | The application slug. |
129
+ | Param | Type | Default | Description |
130
+ | --- | --- | --- | --- |
131
+ | [slug] | <code>String</code> | <code>&quot;*&quot;</code> | The application slug. |
132
132
 
133
133
  <a name="Cobalt+connect"></a>
134
134
 
package/cobalt.js CHANGED
@@ -77,10 +77,10 @@ class Cobalt {
77
77
  * Returns the application details for the specified application, provided
78
78
  * the application is enabled in Cobalt. If no application is specified,
79
79
  * it returns all the enabled applications.
80
- * @param {String} [slug] The application slug.
80
+ * @param {String} [slug="*"] The application slug.
81
81
  * @returns {Promise<Application>} The application details.
82
82
  */
83
- async getApp(slug) {
83
+ async getApp(slug = "*") {
84
84
  const res = await fetch(`${this.baseUrl}/api/v1/linked-acc/application` + (slug ? `/${slug}` : ""), {
85
85
  headers: {
86
86
  authorization: `Bearer ${this.token}`,
package/docs.md CHANGED
@@ -68,9 +68,9 @@ it returns all the enabled applications.
68
68
  **Kind**: instance method of [<code>Cobalt</code>](#Cobalt)
69
69
  **Returns**: [<code>Promise.&lt;Application&gt;</code>](#Application) - The application details.
70
70
 
71
- | Param | Type | Description |
72
- | --- | --- | --- |
73
- | [slug] | <code>String</code> | The application slug. |
71
+ | Param | Type | Default | Description |
72
+ | --- | --- | --- | --- |
73
+ | [slug] | <code>String</code> | <code>&quot;*&quot;</code> | The application slug. |
74
74
 
75
75
  <a name="Cobalt+connect"></a>
76
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobaltio/cobalt-js",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Cobalt frontend SDK",
5
5
  "main": "./cobalt.js",
6
6
  "scripts": {