@hlmr/sdk-js 1.11.1 → 1.11.2
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/dist/esm/client/HlmrClient.js +16 -16
- package/dist/esm/index.js +16 -16
- package/dist/esm/utils/http.js +3 -3
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ENVIRONMENTS } from '../types/common';
|
|
2
|
-
import { HlmrApiError } from '../types/errors';
|
|
3
|
-
import { HttpClient } from '../utils/http';
|
|
4
|
-
import { AuthModule } from '../modules/auth';
|
|
5
|
-
import { UserModule } from '../modules/user';
|
|
6
|
-
import { SystemModule } from '../modules/system';
|
|
7
|
-
import { AppsModule } from '../modules/apps';
|
|
8
|
-
import { EventsModule } from '../modules/events';
|
|
9
|
-
import { PublicModule } from '../modules/public';
|
|
10
|
-
import { OffersModule } from '../modules/offers';
|
|
11
|
-
import { PricingModule } from '../modules/pricing';
|
|
12
|
-
import { BookingModule } from '../modules/booking';
|
|
13
|
-
import { LedgerModule } from '../modules/ledger';
|
|
14
|
-
import { PaymentModule } from '../modules/payment';
|
|
15
|
-
import { TermsModule } from '../modules/terms';
|
|
16
|
-
import { PromoModule } from '../modules/promo';
|
|
1
|
+
import { ENVIRONMENTS } from '../types/common.js';
|
|
2
|
+
import { HlmrApiError } from '../types/errors.js';
|
|
3
|
+
import { HttpClient } from '../utils/http.js';
|
|
4
|
+
import { AuthModule } from '../modules/auth.js';
|
|
5
|
+
import { UserModule } from '../modules/user.js';
|
|
6
|
+
import { SystemModule } from '../modules/system.js';
|
|
7
|
+
import { AppsModule } from '../modules/apps.js';
|
|
8
|
+
import { EventsModule } from '../modules/events.js';
|
|
9
|
+
import { PublicModule } from '../modules/public.js';
|
|
10
|
+
import { OffersModule } from '../modules/offers.js';
|
|
11
|
+
import { PricingModule } from '../modules/pricing.js';
|
|
12
|
+
import { BookingModule } from '../modules/booking.js';
|
|
13
|
+
import { LedgerModule } from '../modules/ledger.js';
|
|
14
|
+
import { PaymentModule } from '../modules/payment.js';
|
|
15
|
+
import { TermsModule } from '../modules/terms.js';
|
|
16
|
+
import { PromoModule } from '../modules/promo.js';
|
|
17
17
|
export class HlmrClient {
|
|
18
18
|
constructor(options) {
|
|
19
19
|
const config = this.buildConfig(options);
|
package/dist/esm/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { HlmrClient } from './client/HlmrClient';
|
|
2
|
-
export { AppsModule } from './modules/apps';
|
|
3
|
-
export { PublicModule } from './modules/public';
|
|
4
|
-
export { OffersModule } from './modules/offers';
|
|
5
|
-
export { PricingModule } from './modules/pricing';
|
|
6
|
-
export { BookingModule } from './modules/booking';
|
|
7
|
-
export { EventsModule } from './modules/events';
|
|
8
|
-
export { TermsModule } from './modules/terms';
|
|
9
|
-
export { PromoModule } from './modules/promo';
|
|
10
|
-
export { PaymentModule } from './modules/payment';
|
|
11
|
-
export { LedgerModule } from './modules/ledger';
|
|
12
|
-
export { HlmrApiError } from './types/errors';
|
|
13
|
-
export { isJSendResponse, isJSendSuccess, isJSendFail, isJSendError } from './utils/jsend';
|
|
14
|
-
export { clearAllCache, preventBackNavigation, performLogout } from './utils/auth';
|
|
15
|
-
export { SDK_VERSION, SDK_NAME } from './constants';
|
|
16
|
-
export { getSupabaseClient, resetSupabaseClient, getSupabaseClientConfig } from './lib/supabaseClient';
|
|
1
|
+
export { HlmrClient } from './client/HlmrClient.js';
|
|
2
|
+
export { AppsModule } from './modules/apps.js';
|
|
3
|
+
export { PublicModule } from './modules/public.js';
|
|
4
|
+
export { OffersModule } from './modules/offers.js';
|
|
5
|
+
export { PricingModule } from './modules/pricing.js';
|
|
6
|
+
export { BookingModule } from './modules/booking.js';
|
|
7
|
+
export { EventsModule } from './modules/events.js';
|
|
8
|
+
export { TermsModule } from './modules/terms.js';
|
|
9
|
+
export { PromoModule } from './modules/promo.js';
|
|
10
|
+
export { PaymentModule } from './modules/payment.js';
|
|
11
|
+
export { LedgerModule } from './modules/ledger.js';
|
|
12
|
+
export { HlmrApiError } from './types/errors.js';
|
|
13
|
+
export { isJSendResponse, isJSendSuccess, isJSendFail, isJSendError } from './utils/jsend.js';
|
|
14
|
+
export { clearAllCache, preventBackNavigation, performLogout } from './utils/auth.js';
|
|
15
|
+
export { SDK_VERSION, SDK_NAME } from './constants.js';
|
|
16
|
+
export { getSupabaseClient, resetSupabaseClient, getSupabaseClientConfig } from './lib/supabaseClient.js';
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/utils/http.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HlmrApiError } from '../types/errors';
|
|
2
|
-
import { isJSendResponse, isJSendSuccess } from './jsend';
|
|
3
|
-
import { SDK_VERSION } from '../constants';
|
|
1
|
+
import { HlmrApiError } from '../types/errors.js';
|
|
2
|
+
import { isJSendResponse, isJSendSuccess } from './jsend.js';
|
|
3
|
+
import { SDK_VERSION } from '../constants.js';
|
|
4
4
|
export class HttpClient {
|
|
5
5
|
constructor(config) {
|
|
6
6
|
this.config = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hlmr/sdk-js",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "SDK JavaScript officiel pour l'API Mira - Routes publiques et sécurisées",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "npm run clean && npm run build:types && npm run build:esm && npm run build:cjs && npm run build:umd",
|
|
22
22
|
"build:types": "tsc --emitDeclarationOnly --outDir dist/types",
|
|
23
|
-
"build:esm": "tsc --module es2015 --outDir dist/esm",
|
|
23
|
+
"build:esm": "tsc --module es2015 --outDir dist/esm && bash scripts/fix-esm-imports.sh",
|
|
24
24
|
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
|
25
25
|
"build:umd": "rollup -c rollup.config.js",
|
|
26
26
|
"clean": "rimraf dist/",
|