@pikku/fetch 0.8.0 → 0.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @pikku/fetch
2
2
 
3
+ ## 0.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fdb1593: core: bumping everything with a patch to sync up the major release inconsistencies in dependencies
8
+
9
+ ## 0.9.0
10
+
11
+ ### Breaking Changes
12
+
13
+ - Normalized all transports to use "wirings" instead of events/routes/transports for consistency across the framework
14
+
3
15
  ## 0.8.0
4
16
 
5
17
  - Updating to match remaining packages
@@ -44,7 +44,7 @@ export declare class CorePikkuFetch {
44
44
  *
45
45
  * @param {string} serverUrl - The server URL to be set.
46
46
  */
47
- setServerUrl(serverUrl: string): Promise<void>;
47
+ setServerUrl(serverUrl: string): void;
48
48
  /**
49
49
  * Sets the JWT for authorization.
50
50
  *
@@ -51,13 +51,11 @@ class CorePikkuFetch {
51
51
  * @param {string} serverUrl - The server URL to be set.
52
52
  */
53
53
  setServerUrl(serverUrl) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- if (serverUrl.endsWith('/')) {
56
- console.warn('Server URL should not end with a slash, removing.');
57
- serverUrl = serverUrl.slice(0, -1);
58
- }
59
- this.options.serverUrl = serverUrl;
60
- });
54
+ if (serverUrl.endsWith('/')) {
55
+ console.warn('Server URL should not end with a slash, removing.');
56
+ serverUrl = serverUrl.slice(0, -1);
57
+ }
58
+ this.options.serverUrl = serverUrl;
61
59
  }
62
60
  /**
63
61
  * Sets the JWT for authorization.
@@ -44,7 +44,7 @@ export declare class CorePikkuFetch {
44
44
  *
45
45
  * @param {string} serverUrl - The server URL to be set.
46
46
  */
47
- setServerUrl(serverUrl: string): Promise<void>;
47
+ setServerUrl(serverUrl: string): void;
48
48
  /**
49
49
  * Sets the JWT for authorization.
50
50
  *
@@ -39,7 +39,7 @@ export class CorePikkuFetch {
39
39
  *
40
40
  * @param {string} serverUrl - The server URL to be set.
41
41
  */
42
- async setServerUrl(serverUrl) {
42
+ setServerUrl(serverUrl) {
43
43
  if (serverUrl.endsWith('/')) {
44
44
  console.warn('Server URL should not end with a slash, removing.');
45
45
  serverUrl = serverUrl.slice(0, -1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/fetch",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "author": "yasser.fadl@gmail.com",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -64,7 +64,7 @@ export class CorePikkuFetch {
64
64
  *
65
65
  * @param {string} serverUrl - The server URL to be set.
66
66
  */
67
- public async setServerUrl(serverUrl: string): Promise<void> {
67
+ public setServerUrl(serverUrl: string): void {
68
68
  if (serverUrl.endsWith('/')) {
69
69
  console.warn('Server URL should not end with a slash, removing.')
70
70
  serverUrl = serverUrl.slice(0, -1)