diff --git a/README.md b/README.md index d117b60..fdf8bce 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,9 @@ hukamnama() // Returns a promise * [ ] Ensure it's `battle-tested`. * [ ] Ensure it works with multiple-page pdf. +## 0.0.4 +* [x] Fix #1 + ## 0.0.3 * [x] Use babel for better backward compatibility diff --git a/index.js b/index.js index 0aba91c..10793a0 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,8 @@ var _pdfjsDist2 = _interopRequireDefault(_pdfjsDist); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +var SGPC_URL = 'http://old.sgpc.net/hukumnama/jpeg%20hukamnama/hukamnama.pdf'; + module.exports = function hukamJS() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; diff --git a/package.json b/package.json index 5ad57cb..7c7da69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hukamnama-json", - "version": "0.0.3", + "version": "0.0.4", "description": "NodeJS module that fetches Hukamnama from Harimandir Sahib, Amritsar via SGPC's PDF", "main": "index.js", "scripts": { diff --git a/src/index.js b/src/index.js index 5d4e7b1..8492e65 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,8 @@ import http from 'http'; import PDFJS from 'pdfjs-dist'; +const SGPC_URL = `http://old.sgpc.net/hukumnama/jpeg%20hukamnama/hukamnama.pdf`; + module.exports = function hukamJS (options = { }) { const injectNewLine = str => [ e => e.endsWith("TODAY'S HUKAMNAMA FROM SRI DARBAR SAHIB, Sri Amritsar. "),