Skip to content

Commit 1e14aa7

Browse files
committed
1 parent 906f5b1 commit 1e14aa7

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/*.js

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"extends": "eslint:recommended",
77
"parserOptions": {
8-
"ecmaVersion": 6
8+
"ecmaVersion": 2017
99
},
1010
"rules": {
1111
"indent": [

.gitignore

-4 Bytes
Binary file not shown.

heremap.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ function init(obj) {
1818
if (obj.useHTTP) protocol = "http://";
1919
}
2020

21-
21+
/**
22+
* same as init
23+
*/
24+
function config(obj) {
25+
init(obj);
26+
}
2227
/**
2328
* geocode an address
2429
* @param {string} address - address as string.
@@ -27,8 +32,6 @@ function init(obj) {
2732
async function geocode(address) {
2833
let tStart = new Date();
2934

30-
// eslint-disable-next-line no-undef
31-
/**/
3235
return new Promise(
3336
(resolve, reject) => {
3437
const settings = {

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "heremap",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "node/browser interface to HERE Maps REST API",
55
"main": "heremap.js",
66
"scripts": {
77
"test": "node test/test.js",
8-
"pretest": "eslint --ignore-path .gitignore .",
8+
"pretest": "eslint --ignore-path .eslintignore .",
99
"build": "browserify ./heremap.js -s heremap -o dist/heremap.js"
1010
},
1111
"repository": {
@@ -16,7 +16,10 @@
1616
"keywords": [
1717
"HERE",
1818
"Maps",
19-
"node.js"
19+
"node.js",
20+
"geocode",
21+
"isoline",
22+
"routing"
2023
],
2124
"author": "devbab",
2225
"license": "ISC",

0 commit comments

Comments
 (0)