Skip to content

Commit c0aaff1

Browse files
fratzingerPuruVJ
andauthored
feat: neotraverse/legacy; v0.6.14 (#756)
* Push * Remove this type for traverse * ci: update gh actions versions * ci: use [email protected] explicitly --------- Co-authored-by: Puru Vijay <[email protected]>
1 parent 24bf949 commit c0aaff1

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.github/workflows/nodejs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node-version: [18.x, 20.x, 22.x]
8+
node-version: [18.x, 20.x, 22.5.1]
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v3
12+
uses: actions/setup-node@v4
1313
with:
1414
node-version: ${{ matrix.node-version }}
1515
- run: npm install
@@ -18,9 +18,9 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
- name: Use Node.js 20.x
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: 20.x
2626
- run: npm install

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"debug": "^4.3.5",
6868
"graphql": "^16.9.0",
6969
"lodash": "^4.17.21",
70-
"neotraverse": "^0.6.11"
70+
"neotraverse": "^0.6.14"
7171
},
7272
"devDependencies": {
7373
"@feathers-plus/batch-loader": "^0.3.6",

src/common/traverse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import traverser from 'neotraverse';
1+
import traverser from 'neotraverse/legacy';
22

33
export function traverse<T extends Record<string, any>>(
44
items: T | T[],

src/hooks/mongo-keys.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { HookContext } from '@feathersjs/feathers';
2-
import traverse from 'neotraverse';
2+
import traverse from 'neotraverse/legacy';
33
import { checkContext } from '../utils/check-context';
44

55
/**
@@ -26,7 +26,7 @@ export function mongoKeys<H extends HookContext = HookContext>(
2626
checkContext(context, 'before', null, 'mongoKeys');
2727
const query = context.params.query || {};
2828

29-
traverse(query).forEach(function (this: any, node: any) {
29+
traverse(query).forEach(function (node: any) {
3030
const typeofNode = typeof node;
3131
const key = this.key;
3232
const path = this.path;

0 commit comments

Comments
 (0)