oas-normalize 8.3.2 → 8.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -79,7 +79,7 @@ await oas.deref().then(definition => {
79
79
 
80
80
  Validate and optionally convert to OpenAPI, a given API definition. This supports Swagger 2.0, OpenAPI 3.x API definitions as well as Postman 2.x collections.
81
81
 
82
- Please note that if you've supplied a Postman collection to the library it will **always** be converted to OpenAPI, using [postman-to-openapi](https://github.com/joolfe/postman-to-openapi), and we will only validate resulting OpenAPI definition.
82
+ Please note that if you've supplied a Postman collection to the library it will **always** be converted to OpenAPI, using [@readme/postman-to-openapi](https://npm.im/@readme/postman-to-openapi), and we will only validate resulting OpenAPI definition.
83
83
 
84
84
  ```js
85
85
  await oas.validate().then(definition => {
package/dist/index.js CHANGED
@@ -76,8 +76,8 @@ exports.__esModule = true;
76
76
  exports.getAPIDefinitionType = exports.isAPIDefinition = void 0;
77
77
  var fs_1 = __importDefault(require("fs"));
78
78
  var openapi_parser_1 = __importDefault(require("@readme/openapi-parser"));
79
+ var postman_to_openapi_1 = __importDefault(require("@readme/postman-to-openapi"));
79
80
  var node_fetch_1 = __importDefault(require("node-fetch"));
80
- var postman_to_openapi_1 = __importDefault(require("postman-to-openapi"));
81
81
  var swagger2openapi_1 = __importDefault(require("swagger2openapi"));
82
82
  var utils = __importStar(require("./lib/utils"));
83
83
  exports.isAPIDefinition = utils.isAPIDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oas-normalize",
3
- "version": "8.3.2",
3
+ "version": "8.3.3",
4
4
  "description": "Tooling for converting, valiating, and parsing OpenAPI, Swagger, and Postman API definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,10 +43,10 @@
43
43
  "license": "MIT",
44
44
  "dependencies": {
45
45
  "@readme/openapi-parser": "^2.4.0",
46
+ "@readme/postman-to-openapi": "^4.0.0",
46
47
  "js-yaml": "^4.1.0",
47
48
  "node-fetch": "^2.6.1",
48
49
  "openapi-types": "^12.1.0",
49
- "postman-to-openapi": "^3.0.1",
50
50
  "swagger2openapi": "^7.0.8"
51
51
  },
52
52
  "devDependencies": {
package/src/index.ts CHANGED
@@ -3,8 +3,8 @@ import type { OpenAPI } from 'openapi-types';
3
3
  import fs from 'fs';
4
4
 
5
5
  import openapiParser from '@readme/openapi-parser';
6
+ import postmanToOpenAPI from '@readme/postman-to-openapi';
6
7
  import fetch from 'node-fetch';
7
- import postmanToOpenAPI from 'postman-to-openapi';
8
8
 
9
9
  import converter from 'swagger2openapi';
10
10