Skip to content

Commit

Permalink
Merge branch 'main' into feat/cli-sea
Browse files Browse the repository at this point in the history
  • Loading branch information
notnmeyer authored May 3, 2023
2 parents a41acc7 + 9170f35 commit 2b7b1c1
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openapi-workspaces",
"license": "MIT",
"private": true,
"version": "0.42.16",
"version": "0.42.17",
"workspaces": [
"projects/json-pointer-helpers",
"projects/openapi-io",
Expand Down
2 changes: 1 addition & 1 deletion projects/json-pointer-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/json-pointer-helpers",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.42.16",
"version": "0.42.17",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/openapi-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/openapi-io",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.42.16",
"version": "0.42.17",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/openapi-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/openapi-utilities",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.42.16",
"version": "0.42.17",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/optic-ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/optic-ci",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.42.16",
"version": "0.42.17",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/optic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/optic",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.42.16",
"version": "0.42.17",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
12 changes: 8 additions & 4 deletions projects/optic/src/commands/diff/diff-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { generateComparisonLogsV2 } from '../../utils/diff-renderer';
import path from 'path';
import { getApiUrl } from '../../utils/cloud-urls';
import { getDetailsForGeneration } from '../../utils/generated';
import * as Types from '../../client/optic-backend-types';

const usage = () => `
optic diff-all
Expand Down Expand Up @@ -283,10 +284,13 @@ async function computeAll(
pathToUrl[p] = null;
}
}
const { apis } = await config.client.getApis(
Object.keys(pathToUrl),
web_url
);
let apis: (Types.Api | null)[] = [];
if (Object.keys(pathToUrl).length > 0) {
({ apis } = await config.client.getApis(
Object.keys(pathToUrl),
web_url
));
}

for (const api of apis) {
if (api) {
Expand Down
2 changes: 1 addition & 1 deletion projects/rulesets-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/rulesets-base",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.42.16",
"version": "0.42.17",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion projects/standard-rulesets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@useoptic/standard-rulesets",
"license": "MIT",
"packageManager": "[email protected]",
"version": "0.42.16",
"version": "0.42.17",
"main": "build/index.js",
"types": "build/index.d.ts",
"files": [
Expand Down

0 comments on commit 2b7b1c1

Please sign in to comment.