Skip to content
This repository was archived by the owner on May 10, 2020. It is now read-only.

Commit a6d2125

Browse files
committed
Merge branch 'pr/1'
2 parents c0bd4e0 + 3b57c8a commit a6d2125

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ Temporary Items
4545

4646
# Node.js
4747
node_modules
48+
/package-lock.json

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gurbaninow",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A JavaScript Wrapper for the GurbaniNow API",
55
"main": "index.js",
66
"scripts": {
@@ -18,14 +18,14 @@
1818
},
1919
"homepage": "https://github.com/GurbaniNow/gurbaninowapi-js",
2020
"devDependencies": {
21-
"babel-core": "^6.23.1",
22-
"babel-loader": "^6.4.0",
23-
"babel-preset-env": "^1.2.1",
24-
"webpack": "^2.2.1"
21+
"@babel/core": "^7.0.0-beta.40",
22+
"@babel/preset-env": "^7.0.0-beta.40",
23+
"babel-loader": "^8.0.0-beta.0",
24+
"webpack": "^3.11.0"
2525
},
2626
"babel": {
2727
"presets": [
28-
"env"
28+
"@babel/preset-env"
2929
]
3030
}
3131
}

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export const API_URL = `https://api.gurbaninow.com/v2/`;
2-
31
export const TYPES = [
42
'First Letter Start (Gurmukhi/Unicode)',
53
'First Letter Anywhere (Gurmukhi/Unicode)',
@@ -34,6 +32,7 @@ export const buildApiUrl = options => {
3432
hukam = false, // Boolean: Pass true if you want hukamnama of today.
3533
unicode = false, // Boolean: Pass true to convert query string (GurbaniAkhar) into unicode text.
3634
akhar = false, // Boolean: Pass true to convert query string (Unicode) into GurbaniAkhar text.
35+
API_URL = 'https://api.gurbaninow.com/v2/', // String: API_URL to hit.
3736
} = options;
3837
let url = API_URL;
3938
if (q !== false) {

0 commit comments

Comments
 (0)