Skip to content

Commit 03f3c9a

Browse files
authored
migrate back to canonical postman deps (#860)
1 parent 8ea889e commit 03f3c9a

File tree

14 files changed

+190
-132
lines changed

14 files changed

+190
-132
lines changed

packages/docusaurus-plugin-openapi-docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"@docusaurus/plugin-content-docs": "^3.0.1",
4242
"@docusaurus/utils": "^3.0.1",
4343
"@docusaurus/utils-validation": "^3.0.1",
44-
"@paloaltonetworks/openapi-to-postmanv2": "3.1.0-hotfix.1",
45-
"@paloaltonetworks/postman-collection": "^4.1.0",
44+
"openapi-to-postmanv2": "^4.21.0",
45+
"postman-collection": "^4.4.0",
4646
"@redocly/openapi-core": "^1.10.5",
4747
"chalk": "^4.1.2",
4848
"clsx": "^1.1.1",

packages/docusaurus-plugin-openapi-docs/src/openapi-to-postmanv2.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
declare module "@paloaltonetworks/openapi-to-postmanv2" {
8+
declare module "openapi-to-postmanv2" {
99
export default any;
1010
}

packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
import path from "path";
99

1010
import { Globby, GlobExcludeDefault, posixPath } from "@docusaurus/utils";
11-
import Converter from "@paloaltonetworks/openapi-to-postmanv2";
12-
import sdk from "@paloaltonetworks/postman-collection";
13-
import Collection from "@paloaltonetworks/postman-collection";
1411
import chalk from "chalk";
1512
import fs from "fs-extra";
1613
import cloneDeep from "lodash/cloneDeep";
1714
import kebabCase from "lodash/kebabCase";
1815
import unionBy from "lodash/unionBy";
1916
import uniq from "lodash/uniq";
17+
import Converter from "openapi-to-postmanv2";
18+
import Collection from "postman-collection";
19+
import sdk from "postman-collection";
2020

2121
import { sampleRequestFromSchema } from "./createRequestExample";
2222
import { OpenApiObject, TagGroupObject, TagObject } from "./types";

packages/docusaurus-plugin-openapi-docs/src/postman-collection.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
declare module "@paloaltonetworks/postman-collection" {
8+
declare module "postman-collection" {
99
export default any;
1010
}

packages/docusaurus-plugin-openapi-docs/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
import type Request from "@paloaltonetworks/postman-collection";
8+
import type Request from "postman-collection";
99

1010
import {
1111
InfoObject,

packages/docusaurus-theme-openapi-docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"dependencies": {
3939
"@docusaurus/theme-common": "^3.0.1",
4040
"@hookform/error-message": "^2.0.1",
41-
"@paloaltonetworks/postman-code-generators": "1.1.15-patch.2",
42-
"@paloaltonetworks/postman-collection": "^4.1.0",
41+
"postman-code-generators": "^1.10.1",
42+
"postman-collection": "^4.4.0",
4343
"@reduxjs/toolkit": "^1.7.1",
4444
"clsx": "^1.1.1",
4545
"copy-text-to-clipboard": "^3.1.0",

packages/docusaurus-theme-openapi-docs/src/postman-code-generators.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
* ========================================================================== */
77

88
// TODO: Remove this when https://github.com/facebook/docusaurus/issues/6087 is resolved.
9-
declare module "@paloaltonetworks/postman-code-generators";
9+
declare module "postman-code-generators";

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeSnippets/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
import React, { useState, useEffect } from "react";
99

1010
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
11-
import codegen from "@paloaltonetworks/postman-code-generators";
12-
import sdk from "@paloaltonetworks/postman-collection";
1311
import ApiCodeBlock from "@theme/ApiExplorer/ApiCodeBlock";
1412
import buildPostmanRequest from "@theme/ApiExplorer/buildPostmanRequest";
1513
import CodeTabs from "@theme/ApiExplorer/CodeTabs";
1614
import { useTypedSelector } from "@theme/ApiItem/hooks";
1715
import merge from "lodash/merge";
16+
import codegen from "postman-code-generators";
17+
import sdk from "postman-collection";
1818

1919
import { CodeSample, Language } from "./code-snippets-types";
2020
import {

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import React, { useState } from "react";
1010

1111
import { useDoc } from "@docusaurus/theme-common/internal";
12-
import sdk from "@paloaltonetworks/postman-collection";
1312
import Accept from "@theme/ApiExplorer/Accept";
1413
import Authorization from "@theme/ApiExplorer/Authorization";
1514
import Body from "@theme/ApiExplorer/Body";
@@ -27,6 +26,7 @@ import Server from "@theme/ApiExplorer/Server";
2726
import { useTypedDispatch, useTypedSelector } from "@theme/ApiItem/hooks";
2827
import { ParameterObject } from "docusaurus-plugin-openapi-docs/src/openapi/types";
2928
import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
29+
import sdk from "postman-collection";
3030
import { FormProvider, useForm } from "react-hook-form";
3131

3232
import makeRequest from "./makeRequest";

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Request/makeRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
import sdk from "@paloaltonetworks/postman-collection";
98
import { Body } from "@theme/ApiExplorer/Body/slice";
9+
import sdk from "postman-collection";
1010

1111
function fetchWithtimeout(
1212
url: string,

0 commit comments

Comments
 (0)