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

Commit

Permalink
Merge branch 'pr/1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabveer committed Mar 29, 2018
2 parents c0bd4e0 + 3b57c8a commit a6d2125
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ Temporary Items

# Node.js
node_modules
/package-lock.json
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gurbaninow",
"version": "1.0.0",
"version": "1.0.1",
"description": "A JavaScript Wrapper for the GurbaniNow API",
"main": "index.js",
"scripts": {
Expand All @@ -18,14 +18,14 @@
},
"homepage": "https://github.com/GurbaniNow/gurbaninowapi-js",
"devDependencies": {
"babel-core": "^6.23.1",
"babel-loader": "^6.4.0",
"babel-preset-env": "^1.2.1",
"webpack": "^2.2.1"
"@babel/core": "^7.0.0-beta.40",
"@babel/preset-env": "^7.0.0-beta.40",
"babel-loader": "^8.0.0-beta.0",
"webpack": "^3.11.0"
},
"babel": {
"presets": [
"env"
"@babel/preset-env"
]
}
}
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export const API_URL = `https://api.gurbaninow.com/v2/`;

export const TYPES = [
'First Letter Start (Gurmukhi/Unicode)',
'First Letter Anywhere (Gurmukhi/Unicode)',
Expand Down Expand Up @@ -34,6 +32,7 @@ export const buildApiUrl = options => {
hukam = false, // Boolean: Pass true if you want hukamnama of today.
unicode = false, // Boolean: Pass true to convert query string (GurbaniAkhar) into unicode text.
akhar = false, // Boolean: Pass true to convert query string (Unicode) into GurbaniAkhar text.
API_URL = 'https://api.gurbaninow.com/v2/', // String: API_URL to hit.
} = options;
let url = API_URL;
if (q !== false) {
Expand Down

0 comments on commit a6d2125

Please sign in to comment.