Skip to content

Commit 26d392e

Browse files
committed
- Linting: jsdoc types; apply to HTML
- Docs: Issue with JSONPointer path - npm: Update devDeps and add peerDeps needed by new ash-nazg; update Babel/Rollup
1 parent a0a0304 commit 26d392e

File tree

10 files changed

+981
-2311
lines changed

10 files changed

+981
-2311
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ evaluate method (as the first argument) include:
197197
silently stripped.
198198
- ***JSONPath.toPointer(pathAsArray)*** - Accepts a path array and
199199
converts to a [JSON Pointer](http://www.rfc-base.org/txt/rfc-6901.txt).
200-
The string will be in a form like: `'/aProperty/anotherProperty/0`
200+
The string will be in a form like: `/aProperty/anotherProperty/0`
201201
(with any `~` and `/` internal characters escaped as per the JSON
202202
Pointer spec). The JSONPath terminal constructions `~` and `^` and
203203
type operators like `@string()` are silently stripped.

dist/index-es.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ function _possibleConstructorReturn(self, call) {
133133
return _assertThisInitialized(self);
134134
}
135135

136-
/* eslint-disable no-eval */
136+
/* eslint-disable no-eval, prefer-named-capture-group */
137+
// Disabled `prefer-named-capture-group` due to https://github.com/babel/babel/issues/8951#issuecomment-508045524
137138
var globalEval = eval; // Only Node.JS has a process variable that is of [[Class]] process
138139

139140
var supportsNodeVM = function supportsNodeVM() {
@@ -158,8 +159,8 @@ var hasOwnProp = Object.prototype.hasOwnProperty;
158159

159160
/**
160161
* Copy items out of one array into another.
161-
* @param {Array} source Array with items to copy
162-
* @param {Array} target Array to which to copy
162+
* @param {GenericArray} source Array with items to copy
163+
* @param {GenericArray} target Array to which to copy
163164
* @param {ConditionCallback} conditionCb Callback passed the current item;
164165
* will move item if evaluates to `true`
165166
* @returns {undefined}
@@ -182,7 +183,7 @@ var vm = supportsNodeVM() ? require('vm') : {
182183
* @param {string} expr Expression to evaluate
183184
* @param {PlainObject} context Object whose items will be added
184185
* to evaluation
185-
* @returns {Any} Result of evaluated code
186+
* @returns {any} Result of evaluated code
186187
*/
187188
runInNewContext: function runInNewContext(expr, context) {
188189
var keys = Object.keys(context);
@@ -209,9 +210,9 @@ var vm = supportsNodeVM() ? require('vm') : {
209210
};
210211
/**
211212
* Copies array and then pushes item into it.
212-
* @param {Array} arr Array to copy and into which to push
213-
* @param {Any} item Array item to add (to end)
214-
* @returns {Array} Copy of the original array
213+
* @param {GenericArray} arr Array to copy and into which to push
214+
* @param {any} item Array item to add (to end)
215+
* @returns {GenericArray} Copy of the original array
215216
*/
216217

217218
function push(arr, item) {
@@ -221,9 +222,9 @@ function push(arr, item) {
221222
}
222223
/**
223224
* Copies array and then unshifts item into it.
224-
* @param {Any} item Array item to add (to beginning)
225-
* @param {Array} arr Array to copy and into which to unshift
226-
* @returns {Array} Copy of the original array
225+
* @param {any} item Array item to add (to beginning)
226+
* @param {GenericArray} arr Array to copy and into which to unshift
227+
* @returns {GenericArray} Copy of the original array
227228
*/
228229

229230

@@ -244,7 +245,7 @@ function (_Error) {
244245
_inherits(NewError, _Error);
245246

246247
/**
247-
* @param {Any} value The evaluated scalar value
248+
* @param {any} value The evaluated scalar value
248249
*/
249250
function NewError(value) {
250251
var _this;

dist/index-es.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-umd.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@
139139
return _assertThisInitialized(self);
140140
}
141141

142-
/* eslint-disable no-eval */
142+
/* eslint-disable no-eval, prefer-named-capture-group */
143+
// Disabled `prefer-named-capture-group` due to https://github.com/babel/babel/issues/8951#issuecomment-508045524
143144
var globalEval = eval; // Only Node.JS has a process variable that is of [[Class]] process
144145

145146
var supportsNodeVM = function supportsNodeVM() {
@@ -164,8 +165,8 @@
164165

165166
/**
166167
* Copy items out of one array into another.
167-
* @param {Array} source Array with items to copy
168-
* @param {Array} target Array to which to copy
168+
* @param {GenericArray} source Array with items to copy
169+
* @param {GenericArray} target Array to which to copy
169170
* @param {ConditionCallback} conditionCb Callback passed the current item;
170171
* will move item if evaluates to `true`
171172
* @returns {undefined}
@@ -188,7 +189,7 @@
188189
* @param {string} expr Expression to evaluate
189190
* @param {PlainObject} context Object whose items will be added
190191
* to evaluation
191-
* @returns {Any} Result of evaluated code
192+
* @returns {any} Result of evaluated code
192193
*/
193194
runInNewContext: function runInNewContext(expr, context) {
194195
var keys = Object.keys(context);
@@ -215,9 +216,9 @@
215216
};
216217
/**
217218
* Copies array and then pushes item into it.
218-
* @param {Array} arr Array to copy and into which to push
219-
* @param {Any} item Array item to add (to end)
220-
* @returns {Array} Copy of the original array
219+
* @param {GenericArray} arr Array to copy and into which to push
220+
* @param {any} item Array item to add (to end)
221+
* @returns {GenericArray} Copy of the original array
221222
*/
222223

223224
function push(arr, item) {
@@ -227,9 +228,9 @@
227228
}
228229
/**
229230
* Copies array and then unshifts item into it.
230-
* @param {Any} item Array item to add (to beginning)
231-
* @param {Array} arr Array to copy and into which to unshift
232-
* @returns {Array} Copy of the original array
231+
* @param {any} item Array item to add (to beginning)
232+
* @param {GenericArray} arr Array to copy and into which to unshift
233+
* @returns {GenericArray} Copy of the original array
233234
*/
234235

235236

@@ -250,7 +251,7 @@
250251
_inherits(NewError, _Error);
251252

252253
/**
253-
* @param {Any} value The evaluated scalar value
254+
* @param {any} value The evaluated scalar value
254255
*/
255256
function NewError(value) {
256257
var _this;

dist/index-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.

0 commit comments

Comments
 (0)