Skip to content

Commit

Permalink
chore(deps): [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Mar 6, 2024
1 parent ecd67dc commit 36a4fa3
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 696 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"zod": "^3.20.2"
},
"devDependencies": {
"@naturalcycles/bench-lib": "^1.5.0",
"@naturalcycles/bench-lib": "^2.0.0",
"@naturalcycles/dev-lib": "^13.0.1",
"@naturalcycles/nodejs-lib": "^13.0.1",
"@naturalcycles/time-lib": "^3.5.1",
Expand Down
4 changes: 2 additions & 2 deletions src/array/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function _rangeIterable(fromIncl: number, toExcl?: number, step = 1): Ite

return Iterable2.of({
*[Symbol.iterator]() {
for (let i = fromIncl; i < toExcl!; i += step) {
for (let i = fromIncl; i < toExcl; i += step) {
yield i
}
},
Expand Down Expand Up @@ -67,7 +67,7 @@ export function _rangeAsyncIterable(

return AsyncIterable2.of({
async *[Symbol.asyncIterator]() {
for (let i = fromIncl; i < toExcl!; i += step) {
for (let i = fromIncl; i < toExcl; i += step) {
yield i
}
},
Expand Down
1 change: 0 additions & 1 deletion src/object/object.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ export function _set<T extends AnyObject>(obj: T, path: PropertyPath, value: any
a[c]
: // No: create the key. Is the next key a potential array-index?
(a[c] =
// @ts-expect-error
// eslint-disable-next-line
Math.abs(path[i + 1]) >> 0 === +path[i + 1]
? [] // Yes: assign a new array object
Expand Down
2 changes: 1 addition & 1 deletion src/string/safeJsonStringify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function serializer(replacer?: Reviver, cycleReplacer?: Reviver): Reviver {
~thisPos ? stack.splice(thisPos + 1) : stack.push(this)
~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)
if (~stack.indexOf(value)) {
value = cycleReplacer!.call(this, key, value)
value = cycleReplacer.call(this, key, value)
}
} else {
stack.push(value)
Expand Down
Loading

0 comments on commit 36a4fa3

Please sign in to comment.