Skip to content

Commit

Permalink
Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bogas04 committed Oct 19, 2016
1 parent fcb21d3 commit 96fd3a6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] : {};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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. "),
Expand Down

0 comments on commit 96fd3a6

Please sign in to comment.