@xapp/stentor-service 1.56.9 → 1.56.11
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/lib/LocationService.js
CHANGED
|
@@ -14,7 +14,7 @@ class LocationService extends stentor_service_fetch_1.FetchService {
|
|
|
14
14
|
constructor(options) {
|
|
15
15
|
super();
|
|
16
16
|
this.apikey = options.apikey;
|
|
17
|
-
this.urlbase = options.urlbase || "https://
|
|
17
|
+
this.urlbase = options.urlbase || "https://places.xapp.ai/maps/api/geocode/json";
|
|
18
18
|
}
|
|
19
19
|
getGeocode(address) {
|
|
20
20
|
const apiKey = this.apikey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationService.js","sourceRoot":"","sources":["../src/LocationService.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,yDAAyD;AAGzD,iEAAqD;AAarD;;;;;;GAMG;AACH,MAAqB,eAAgB,SAAQ,oCAAY;IAIrD,YAAY,OAA+B;QACvC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"LocationService.js","sourceRoot":"","sources":["../src/LocationService.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,yDAAyD;AAGzD,iEAAqD;AAarD;;;;;;GAMG;AACH,MAAqB,eAAgB,SAAQ,oCAAY;IAIrD,YAAY,OAA+B;QACvC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,8CAA8C,CAAC;IACrF,CAAC;IAED,UAAU,CAAC,OAAe;QACtB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,MAAM,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,YAAY,OAAO,QAAQ,MAAM,EAAE,CAAC;QAElE,IAAI,MAAc,CAAC;QAEnB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YACtB,MAAM,EAAE,KAAK;SAChB,CAAC;aACG,IAAI,CAA4B,QAAQ,CAAC,EAAE;YACxC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;YAEzB,IAAI,MAAM,IAAI,wCAAoB,EAAE,CAAC;gBACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,yBAAyB,MAAM,EAAE,CAAC,CAAC;YAC9F,CAAC;YAED,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC3B,CAAC,CAAC;aACD,IAAI,CAAkB,QAAQ,CAAC,EAAE;YAC9B,MAAM,OAAO,GAAoB;gBAC7B,QAAQ,EAAE,SAAS;gBACnB,SAAS,EAAE,SAAS;aACvB,CAAC;YAEF,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;gBAC1B,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;gBAC7D,OAAO,CAAC,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;gBAE9D,OAAO,OAAO,CAAC;YACnB,CAAC;iBAAM,CAAC;gBACJ,MAAM,IAAI,KAAK,CACX,gCAAgC,OAAO,0DAA0D,CACpG,CAAC;YACN,CAAC;QACL,CAAC,CAAC,CAAC;IACX,CAAC;CACJ;AA9CD,kCA8CC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.56.
|
|
7
|
+
"version": "1.56.11",
|
|
8
8
|
"description": "Base service to be extended for making API calls",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"sinon": "16.1.3",
|
|
30
30
|
"sinon-chai": "3.7.0",
|
|
31
31
|
"stentor-constants": "1.59.40",
|
|
32
|
-
"stentor-context": "1.59.
|
|
32
|
+
"stentor-context": "1.59.41",
|
|
33
33
|
"stentor-models": "1.59.40",
|
|
34
|
-
"stentor-request": "1.59.
|
|
34
|
+
"stentor-request": "1.59.41",
|
|
35
35
|
"stentor-service-fetch": "1.59.40",
|
|
36
|
-
"stentor-utils": "1.59.
|
|
36
|
+
"stentor-utils": "1.59.41",
|
|
37
37
|
"ts-node": "10.9.2",
|
|
38
38
|
"typescript": "5.4.5"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@xapp/stentor-app": "1.56.
|
|
41
|
+
"@xapp/stentor-app": "1.56.11",
|
|
42
42
|
"abort-controller": "3.0.0",
|
|
43
43
|
"isomorphic-fetch": "3.0.0",
|
|
44
44
|
"jsonpath": "1.1.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"clean": "rm -rf ./lib/*",
|
|
63
63
|
"ftest": "mocha --recursive -r ts-node/register \"./src/**/*.ftest.ts\""
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "f9635712f915f1d5428de2dcfa6186dec78df0ab"
|
|
66
66
|
}
|