Skip to content

Commit

Permalink
- Build: Update
Browse files Browse the repository at this point in the history
- npm(regression): Revert Mocha bump as tests fail
  • Loading branch information
brettz9 committed Jun 24, 2021
1 parent 376effc commit d54118f
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 52 deletions.
10 changes: 5 additions & 5 deletions dist/index-browser-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 163,7 @@ function _arrayWithoutHoles(arr) {
}

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

function _unsupportedIterableToArray(o, minLen) {
Expand All @@ -188,9 188,9 @@ function _nonIterableSpread() {
}

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

if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
Expand Down Expand Up @@ -223,7 223,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
err;
return {
s: function () {
it = o[Symbol.iterator]();
it = it.call(o);
},
n: function () {
var step = it.next();
Expand Down Expand Up @@ -607,7 607,7 @@ JSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, c

if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
// simple case--directly follow property
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
} else if (loc === '*') {
// all child properties
this._walk(loc, x, val, path, parent, parentPropName, callback, function (m, l, _x, v, p, par, pr, cb) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index-browser-esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-browser-esm.min.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/index-browser-umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 169,7 @@
}

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

function _unsupportedIterableToArray(o, minLen) {
Expand All @@ -194,9 194,9 @@
}

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

if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
Expand Down Expand Up @@ -229,7 229,7 @@
err;
return {
s: function () {
it = o[Symbol.iterator]();
it = it.call(o);
},
n: function () {
var step = it.next();
Expand Down Expand Up @@ -613,7 613,7 @@

if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
// simple case--directly follow property
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
} else if (loc === '*') {
// all child properties
this._walk(loc, x, val, path, parent, parentPropName, callback, function (m, l, _x, v, p, par, pr, cb) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index-browser-umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-browser-umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index-node-cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 362,7 @@ JSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, c

if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
// simple case--directly follow property
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
} else if (loc === '*') {
// all child properties
this._walk(loc, x, val, path, parent, parentPropName, callback, (m, l, _x, v, p, par, pr, cb) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/index-node-esm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 354,7 @@ JSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, c

if ((typeof loc !== 'string' || literalPriority) && val && hasOwnProp.call(val, loc)) {
// simple case--directly follow property
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));
addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr)); // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`
} else if (loc === '*') {
// all child properties
this._walk(loc, x, val, path, parent, parentPropName, callback, (m, l, _x, v, p, par, pr, cb) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 87,7 @@
"esm": "^3.2.25",
"http-server": "^0.12.3",
"license-badger": "^0.19.0",
"mocha": "^9.0.1",
"mocha": "^8.4.0",
"mocha-badge-generator": "^0.9.0",
"mocha-multi-reporters": "^1.5.1",
"nyc": "^15.1.0",
Expand Down
57 changes: 22 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d54118f

Please sign in to comment.