naolib_trips 1.2.0 → 1.3.0
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/infotrafic/infotrafic.d.ts.map +1 -1
- package/dist/infotrafic/infotrafic.js +3 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +4 -1
- package/dist/trip/trip.d.ts.map +1 -1
- package/dist/trip/trip.js +4 -1
- package/package.json +1 -1
- package/src/infotrafic/infotrafic.ts +3 -1
- package/src/search/search.ts +4 -1
- package/src/trip/trip.ts +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infotrafic.d.ts","sourceRoot":"","sources":["../../src/infotrafic/infotrafic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIrD,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"infotrafic.d.ts","sourceRoot":"","sources":["../../src/infotrafic/infotrafic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIrD,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAKjE"}
|
|
@@ -17,7 +17,9 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
17
17
|
const BASE_URL = "https://plan.naolib.fr/api/poi/infotrafic";
|
|
18
18
|
function getInfotrafic() {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const response = yield axios_1.default.get(BASE_URL
|
|
20
|
+
const response = yield axios_1.default.get(BASE_URL, {
|
|
21
|
+
headers: { Referer: "https://plan.naolib.fr/" },
|
|
22
|
+
});
|
|
21
23
|
return response.data;
|
|
22
24
|
});
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/search/search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAI/D,wBAAsB,MAAM,CAC1B,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/search/search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAI/D,wBAAsB,MAAM,CAC1B,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,cAAc,CAAC,CAMzB"}
|
package/dist/search/search.js
CHANGED
|
@@ -17,7 +17,10 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
17
17
|
const BASE_URL = "https://tanv4.cartographie.pro/api/autocomplete/itinerary";
|
|
18
18
|
function search(params) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const response = yield axios_1.default.get(BASE_URL, {
|
|
20
|
+
const response = yield axios_1.default.get(BASE_URL, {
|
|
21
|
+
params,
|
|
22
|
+
headers: { Referer: "https://plan.naolib.fr/" },
|
|
23
|
+
});
|
|
21
24
|
return response.data;
|
|
22
25
|
});
|
|
23
26
|
}
|
package/dist/trip/trip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trip.d.ts","sourceRoot":"","sources":["../../src/trip/trip.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI3D,wBAAsB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"trip.d.ts","sourceRoot":"","sources":["../../src/trip/trip.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI3D,wBAAsB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,CAM1E"}
|
package/dist/trip/trip.js
CHANGED
|
@@ -17,7 +17,10 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
17
17
|
const BASE_URL = "https://plan.naolib.fr/api/itinerary/search";
|
|
18
18
|
function searchTrip(params) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const response = yield axios_1.default.get(BASE_URL, {
|
|
20
|
+
const response = yield axios_1.default.get(BASE_URL, {
|
|
21
|
+
params,
|
|
22
|
+
headers: { Referer: "https://plan.naolib.fr/" },
|
|
23
|
+
});
|
|
21
24
|
return response.data;
|
|
22
25
|
});
|
|
23
26
|
}
|
package/package.json
CHANGED
|
@@ -4,6 +4,8 @@ import type { InfotraficResponse } from "./types.js";
|
|
|
4
4
|
const BASE_URL = "https://plan.naolib.fr/api/poi/infotrafic";
|
|
5
5
|
|
|
6
6
|
export async function getInfotrafic(): Promise<InfotraficResponse> {
|
|
7
|
-
const response = await axios.get<InfotraficResponse>(BASE_URL
|
|
7
|
+
const response = await axios.get<InfotraficResponse>(BASE_URL, {
|
|
8
|
+
headers: { Referer: "https://plan.naolib.fr/" },
|
|
9
|
+
});
|
|
8
10
|
return response.data;
|
|
9
11
|
}
|
package/src/search/search.ts
CHANGED
|
@@ -6,6 +6,9 @@ const BASE_URL = "https://tanv4.cartographie.pro/api/autocomplete/itinerary";
|
|
|
6
6
|
export async function search(
|
|
7
7
|
params: SearchParams
|
|
8
8
|
): Promise<SearchResponse> {
|
|
9
|
-
const response = await axios.get<SearchResponse>(BASE_URL, {
|
|
9
|
+
const response = await axios.get<SearchResponse>(BASE_URL, {
|
|
10
|
+
params,
|
|
11
|
+
headers: { Referer: "https://plan.naolib.fr/" },
|
|
12
|
+
});
|
|
10
13
|
return response.data;
|
|
11
14
|
}
|
package/src/trip/trip.ts
CHANGED
|
@@ -4,6 +4,9 @@ import type { TripParams, TripResponse } from "./types.js";
|
|
|
4
4
|
const BASE_URL = "https://plan.naolib.fr/api/itinerary/search";
|
|
5
5
|
|
|
6
6
|
export async function searchTrip(params: TripParams): Promise<TripResponse> {
|
|
7
|
-
const response = await axios.get<TripResponse>(BASE_URL, {
|
|
7
|
+
const response = await axios.get<TripResponse>(BASE_URL, {
|
|
8
|
+
params,
|
|
9
|
+
headers: { Referer: "https://plan.naolib.fr/" },
|
|
10
|
+
});
|
|
8
11
|
return response.data;
|
|
9
12
|
}
|