Skip to content

Commit d54118f

Browse files
committed
- Build: Update
- npm(regression): Revert Mocha bump as tests fail
1 parent 376effc commit d54118f

10 files changed

+39
-52
lines changed

dist/index-browser-esm.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function _arrayWithoutHoles(arr) {
163163
}
164164

165165
function _iterableToArray(iter) {
166-
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
166+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
167167
}
168168

169169
function _unsupportedIterableToArray(o, minLen) {
@@ -188,9 +188,9 @@ function _nonIterableSpread() {
188188
}
189189

190190
function _createForOfIteratorHelper(o, allowArrayLike) {
191-
var it;
191+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
192192

193-
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
193+
if (!it) {
194194
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
195195
if (it) o = it;
196196
var i = 0;
@@ -223,7 +223,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
223223
err;
224224
return {
225225
s: function () {
226-
it = o[Symbol.iterator]();
226+
it = it.call(o);
227227
},
228228
n: function () {
229229
var step = it.next();
@@ -607,7 +607,7 @@ JSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, c
607607

608608
if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
609609
// simple case--directly follow property
610-
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
610+
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
611611
} else if (loc === '*') {
612612
// all child properties
613613
this._walk(loc, x, val, path, parent, parentPropName, callback, function (m, l, _x, v, p, par, pr, cb) {

dist/index-browser-esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-browser-esm.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-browser-umd.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
}
170170

171171
function _iterableToArray(iter) {
172-
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
172+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
173173
}
174174

175175
function _unsupportedIterableToArray(o, minLen) {
@@ -194,9 +194,9 @@
194194
}
195195

196196
function _createForOfIteratorHelper(o, allowArrayLike) {
197-
var it;
197+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
198198

199-
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
199+
if (!it) {
200200
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
201201
if (it) o = it;
202202
var i = 0;
@@ -229,7 +229,7 @@
229229
err;
230230
return {
231231
s: function () {
232-
it = o[Symbol.iterator]();
232+
it = it.call(o);
233233
},
234234
n: function () {
235235
var step = it.next();
@@ -613,7 +613,7 @@
613613

614614
if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
615615
// simple case--directly follow property
616-
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
616+
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
617617
} else if (loc === '*') {
618618
// all child properties
619619
this._walk(loc, x, val, path, parent, parentPropName, callback, function (m, l, _x, v, p, par, pr, cb) {

dist/index-browser-umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-browser-umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-node-cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ JSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, c
362362

363363
if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
364364
// simple case--directly follow property
365-
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
365+
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
366366
} else if (loc === '*') {
367367
// all child properties
368368
this._walk(loc, x, val, path, parent, parentPropName, callback, (m, l, _x, v, p, par, pr, cb) => {

dist/index-node-esm.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ JSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, c
354354

355355
if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
356356
// simple case--directly follow property
357-
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
357+
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
358358
} else if (loc === '*') {
359359
// all child properties
360360
this._walk(loc, x, val, path, parent, parentPropName, callback, (m, l, _x, v, p, par, pr, cb) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"esm": "^3.2.25",
8888
"http-server": "^0.12.3",
8989
"license-badger": "^0.19.0",
90-
"mocha": "^9.0.1",
90+
"mocha": "^8.4.0",
9191
"mocha-badge-generator": "^0.9.0",
9292
"mocha-multi-reporters": "^1.5.1",
9393
"nyc": "^15.1.0",

pnpm-lock.yaml

Lines changed: 22 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)