Skip to content

Commit c7cc22e

Browse files
Merge pull request gastonrobledo#14 from gleuch/fix-strict-word
Don't use reserved strict word "package"
2 parents 99186d0 + c69f10d commit c7cc22e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Library that adds support to asynchronous function helpers to handlebars lib.
77
npm install handlebars-async-helpers
88
```
99

10-
### Hot wo use it.
10+
### How to use
1111
```javascript
1212
const handlebars = require('handlebars'),
1313
asyncHelpers = require('handlebars-async-helpers')

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const package = require('./package.json')
1+
const app = require('./package.json')
22
const { registerCoreHelpers } = require('./helpers')
33

44
const isPromise = (obj) => !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'
@@ -81,7 +81,7 @@ function asyncHelpers(hbs) {
8181
return compiled.call(handlebars, context, execOptions)
8282
}
8383
}
84-
handlebars.ASYNC_VERSION = package.version
84+
handlebars.ASYNC_VERSION = app.version
8585

8686
registerCoreHelpers(handlebars)
8787

0 commit comments

Comments
 (0)