Skip to content

Commit 3e753b1

Browse files
authored
Merge pull request #110 from posthtml/milestone-1.7.1
Milestone 1.7.1
2 parents a8a81d0 + c1edb2c commit 3e753b1

File tree

5 files changed

+8996
-330
lines changed

5 files changed

+8996
-330
lines changed

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [1.7.1](https://github.com/posthtml/posthtml-expressions/compare/v1.7.0...v1.7.1) (2020-12-02)
2+
3+
4+
### Bug Fixes
5+
6+
* throw if strict mode ([2c0c0d1](https://github.com/posthtml/posthtml-expressions/commit/2c0c0d1a181b280ba72f76c6530a1c626ab987e6))
7+
8+
9+
110
# [1.7.0](https://github.com/posthtml/posthtml-expressions/compare/v1.6.2...v1.7.0) (2020-11-24)
211

312

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function walk (opts, nodes) {
351351
}
352352

353353
// handle additional syntax errors
354-
if (typeof target !== 'object') {
354+
if (typeof target !== 'object' && opts.strictMode) {
355355
throw new Error('You must provide an array or object to loop through')
356356
}
357357

0 commit comments

Comments
 (0)