blocket.js 1.0.4 → 1.0.6
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 +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +1 -1
- package/dist/config/index.js.map +1 -1
- package/lib/config/index.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Customize the package behavior with the global configuration. This allows you to
|
|
|
53
53
|
import client, { configure } from 'blocket.js';
|
|
54
54
|
|
|
55
55
|
configure({
|
|
56
|
-
apiBaseUrl: 'https://api.blocket.se/
|
|
56
|
+
apiBaseUrl: 'https://api.blocket.se/search_bff/v2/content', // API base URL (default)
|
|
57
57
|
tokenEndpoint:
|
|
58
58
|
'https://www.blocket.se/api/adout-api-route/refresh-token-and-validate-session', // Token endpoint
|
|
59
59
|
logLevel: 'debug', // Options: 'none', 'error', 'info', 'debug'
|
package/dist/config/index.d.ts
CHANGED
package/dist/config/index.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.logger = exports.getConfig = exports.configure = exports.defaultConfig =
|
|
|
5
5
|
* Default configuration.
|
|
6
6
|
*/
|
|
7
7
|
exports.defaultConfig = {
|
|
8
|
-
apiBaseUrl: 'https://api.blocket.se/
|
|
8
|
+
apiBaseUrl: 'https://api.blocket.se/search_bff/v2/content',
|
|
9
9
|
tokenEndpoint: 'https://www.blocket.se/api/adout-api-route/refresh-token-and-validate-session',
|
|
10
10
|
logLevel: 'error',
|
|
11
11
|
retryAttempts: 3,
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/config/index.ts"],"names":[],"mappings":";;;AA2BA;;GAEG;AACU,QAAA,aAAa,GAAkB;IAC1C,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/config/index.ts"],"names":[],"mappings":";;;AA2BA;;GAEG;AACU,QAAA,aAAa,GAAkB;IAC1C,UAAU,EAAE,8CAA8C;IAC1D,aAAa,EACX,+EAA+E;IACjF,QAAQ,EAAE,OAAO;IACjB,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,IAAI,aAAa,qBAAuB,qBAAa,CAAE,CAAC;AAExD;;;GAGG;AACI,MAAM,SAAS,GAAG,CAAC,MAA8B,EAAQ,EAAE;IAChE,aAAa,mCAAQ,aAAa,GAAK,MAAM,CAAE,CAAC;AAClD,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEF;;;GAGG;AACI,MAAM,SAAS,GAAG,GAAkB,EAAE,CAAC,aAAa,CAAC;AAA/C,QAAA,SAAS,aAAsC;AAE5D;;;;GAIG;AACI,MAAM,MAAM,GAAG,CACpB,KAAiC,EACjC,OAAe,EACT,EAAE;IACR,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IACxD,IAAI,MAAM,CAAC,IAAA,iBAAS,GAAE,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IACxD,CAAC;AACH,CAAC,CAAC;AARW,QAAA,MAAM,UAQjB"}
|
package/lib/config/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export interface BlocketConfig {
|
|
5
5
|
/**
|
|
6
6
|
* Base URL for the Blocket API.
|
|
7
|
-
* @default 'https://api.blocket.se/
|
|
7
|
+
* @default 'https://api.blocket.se/search_bff/v2/content'
|
|
8
8
|
*/
|
|
9
9
|
apiBaseUrl: string;
|
|
10
10
|
/**
|
|
@@ -29,7 +29,7 @@ export interface BlocketConfig {
|
|
|
29
29
|
* Default configuration.
|
|
30
30
|
*/
|
|
31
31
|
export const defaultConfig: BlocketConfig = {
|
|
32
|
-
apiBaseUrl: 'https://api.blocket.se/
|
|
32
|
+
apiBaseUrl: 'https://api.blocket.se/search_bff/v2/content',
|
|
33
33
|
tokenEndpoint:
|
|
34
34
|
'https://www.blocket.se/api/adout-api-route/refresh-token-and-validate-session',
|
|
35
35
|
logLevel: 'error',
|