Skip to content

Commit

Permalink
Merge pull request #812 from postmanlabs/revert-806-neotraverse
Browse files Browse the repository at this point in the history
Revert "Replace traverse with neotraverse".
  • Loading branch information
VShingala authored Jul 22, 2024
2 parents 88c2dcc + 1fca957 commit 8dde366
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lib/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const _ = require('lodash'),
jsonPointerDecodeAndReplace,
generateObjectName
} = require('./jsonPointer'),
traverseUtility = require('neotraverse/legacy'),
traverseUtility = require('traverse'),
parse = require('./parse.js'),
{ ParseError } = require('./common/ParseError'),
Utils = require('./utils'),
Expand Down
2 changes: 1 addition & 1 deletion lib/deref.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const _ = require('lodash'),
isAllOf: false
},
DEFAULT_SCHEMA_UTILS = require('./30XUtils/schemaUtils30X'),
traverseUtility = require('neotraverse/legacy'),
traverseUtility = require('traverse'),
PROPERTIES_TO_ASSIGN_ON_CASCADE = ['type', 'nullable'];

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/relatedFiles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const parse = require('./parse.js'),
traverseUtility = require('neotraverse/legacy'),
traverseUtility = require('traverse'),
BROWSER = 'browser',
{ DFS } = require('./dfs'),
{ isExtRef, removeLocalReferenceFromPath } = require('./jsonPointer');
Expand Down
2 changes: 1 addition & 1 deletion lib/schemaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { formatDataPath, checkIsCorrectType, isKnownType } = require('./common/sc
{ Node, Trie } = require('./trie.js'),
{ validateSchema } = require('./ajValidation/ajvValidation'),
inputValidation = require('./30XUtils/inputValidation'),
traverseUtility = require('neotraverse/legacy'),
traverseUtility = require('traverse'),
{ ParseError } = require('./common/ParseError.js'),
SCHEMA_FORMATS = {
DEFAULT: 'default', // used for non-request-body data and json
Expand Down
26 changes: 11 additions & 15 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@
"js-yaml": "4.1.0",
"json-schema-merge-allof": "0.8.1",
"lodash": "4.17.21",
"neotraverse": "0.6.14",
"oas-resolver-browser": "2.5.6",
"object-hash": "3.0.0",
"graphlib": "2.1.8",
"path-browserify": "1.0.1",
"postman-collection": "^4.4.0",
"swagger2openapi": "7.0.8",
"traverse": "0.6.6",
"yaml": "1.10.2"
},
"author": "Postman Labs <[email protected]>",
Expand Down

0 comments on commit 8dde366

Please sign in to comment.