@cranberry-money/shared-services 1.0.0 → 1.0.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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* and includes mobile-specific features like network state awareness,
|
|
6
6
|
* offline capability, and retry logic.
|
|
7
7
|
*/
|
|
8
|
-
import { HTTP_HEADER_CONTENT_TYPE, CONTENT_TYPE_APPLICATION_JSON } from '@
|
|
8
|
+
import { HTTP_HEADER_CONTENT_TYPE, CONTENT_TYPE_APPLICATION_JSON } from '@cranberry-money/shared-constants';
|
|
9
9
|
import { BaseApiClient } from '../core/BaseApiClient';
|
|
10
10
|
export class MobileApiClient extends BaseApiClient {
|
|
11
11
|
constructor(config) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This implementation is designed for web browsers and supports
|
|
5
5
|
* cookie-based authentication with proper CORS handling.
|
|
6
6
|
*/
|
|
7
|
-
import { HTTP_HEADER_CONTENT_TYPE, CONTENT_TYPE_APPLICATION_JSON } from '@
|
|
7
|
+
import { HTTP_HEADER_CONTENT_TYPE, CONTENT_TYPE_APPLICATION_JSON } from '@cranberry-money/shared-constants';
|
|
8
8
|
import { BaseApiClient } from '../core/BaseApiClient';
|
|
9
9
|
export class WebApiClient extends BaseApiClient {
|
|
10
10
|
constructor(config) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Shared API services and client for MyPortfolio platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dev": "tsc --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@cranberry-money/shared-constants": "^1.0.
|
|
25
|
-
"@cranberry-money/shared-types": "^1.0.
|
|
24
|
+
"@cranberry-money/shared-constants": "^1.0.1",
|
|
25
|
+
"@cranberry-money/shared-types": "^1.0.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@tanstack/react-query": ">=5.0.0",
|