Skip to content

Commit

Permalink
chore(deps): upgrading oas to its latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Nov 1, 2023
1 parent e5007a7 commit f403042
Show file tree
Hide file tree
Showing 52 changed files with 77 additions and 77 deletions.
40 changes: 20 additions & 20 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 @@ -32,7 +32,7 @@
],
"prettier": "@readme/eslint-config/prettier",
"devDependencies": {
"@readme/eslint-config": "^13.1.0",
"@readme/eslint-config": "^13.4.0",
"@tsconfig/node18": "^18.2.2",
"alex": "^11.0.1",
"conventional-changelog-cli": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"lodash.deburr": "^4.1.0",
"lodash.setwith": "^4.3.2",
"lodash.startcase": "^4.4.0",
"oas": "^23.1.0",
"oas": "^24.0.0",
"ora": "^7.0.1",
"prompts": "^2.4.2",
"semver": "^7.3.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/codegen/languages/typescript/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { InstallerOptions } from '../../factory.js';
import type { ExecaReturnValue } from 'execa';
import type Oas from 'oas';
import type Operation from 'oas/operation';
import type { HttpMethods, SchemaObject } from 'oas/rmoas.types';
import type { Operation } from 'oas/operation';
import type { HttpMethods, SchemaObject } from 'oas/types';
import type { OpenAPIV3_1 } from 'openapi-types';
import type { SemVer } from 'semver';
import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import fs from 'node:fs';
import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/lib/suggestedOperations.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { AuthForHAR } from '@readme/oas-to-har/lib/types';
import type Oas from 'oas';
import type Operation from 'oas/operation';
import type { Operation } from 'oas/operation';

import APICore from '@readme/api-core';
import apiSnippetPlugin from 'httpsnippet-client-api';
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/storage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { SupportedLanguage } from './codegen/factory.js';
import type { Lockfile, LockfileAPI } from './lockfileSchema.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import fs from 'node:fs';
import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/lib/suggestedOperations.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { loadSpec } from '@api/test-utils';
import Oas from 'oas';
import Operation from 'oas/operation';
import { Operation } from 'oas/operation';
import { describe, it, expect } from 'vitest';

import { getSuggestedOperation, buildCodeSnippetForOperation } from '../../src/lib/suggestedOperations.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/storage.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import assert from 'node:assert';
import fs from 'node:fs/promises';
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"node": ">=18"
},
"dependencies": {
"@readme/oas-to-har": "^23.1.0",
"@readme/oas-to-har": "^23.2.0",
"caseless": "^0.12.0",
"datauri": "^4.1.0",
"fetch-har": "^11.0.1",
"json-schema-to-ts": "^2.9.2",
"json-schema-traverse": "^1.0.0",
"lodash.merge": "^4.6.2",
"oas": "^23.1.0",
"oas": "^24.0.0",
"remove-undefined-objects": "^5.0.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ConfigOptions } from './types.js';
import type { AuthForHAR, DataForHAR } from '@readme/oas-to-har/lib/types';
import type { Har } from 'har-format';
import type Operation from 'oas/operation';
import type { HttpMethods, OASDocument } from 'oas/rmoas.types';
import type { Operation } from 'oas/operation';
import type { HttpMethods, OASDocument } from 'oas/types';

import oasToHar from '@readme/oas-to-har';
import fetchHar from 'fetch-har';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/getJSONSchemaDefaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SchemaWrapper } from 'oas/operation/get-parameters-as-json-schema';
import type { SchemaObject } from 'oas/rmoas.types';
import type { SchemaObject } from 'oas/types';

import traverse from 'json-schema-traverse';

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/prepareAuth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-underscore-dangle */
import type { AuthForHAR } from '@readme/oas-to-har/lib/types';
import type Operation from 'oas/operation';
import type { KeyedSecuritySchemeObject } from 'oas/rmoas.types';
import type { Operation } from 'oas/operation';
import type { KeyedSecuritySchemeObject } from 'oas/types';

export default function prepareAuth(authKey: (number | string)[], operation: Operation) {
if (authKey.length === 0) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/prepareParams.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ReadStream } from 'node:fs';
import type Operation from 'oas/operation';
import type { ParameterObject, SchemaObject } from 'oas/rmoas.types';
import type { Operation } from 'oas/operation';
import type { ParameterObject, SchemaObject } from 'oas/types';

import fs from 'node:fs';
import path from 'node:path';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/lib/prepareAuth.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import { loadSpec } from '@api/test-utils';
import Oas from 'oas';
Expand Down
2 changes: 1 addition & 1 deletion packages/httpsnippet-client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"peerDependencies": {
"@readme/httpsnippet": ">=8.1.2",
"oas": "^23.1.0"
"oas": "^24.0.0"
},
"devDependencies": {
"@readme/oas-examples": "^5.12.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/httpsnippet-client-api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ReducedHelperObject } from '@readme/httpsnippet/helpers/reducer';
import type { Client, ClientPlugin } from '@readme/httpsnippet/targets';
import type Operation from 'oas/operation';
import type { HttpMethods, OASDocument } from 'oas/rmoas.types';
import type { Operation } from 'oas/operation';
import type { HttpMethods, OASDocument } from 'oas/types';

import { CodeBuilder } from '@readme/httpsnippet/helpers/code-builder';
import camelCase from 'camelcase';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/server-variables.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/readme.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/readme.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/readme.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from '@readme/oas-examples/3.0/json/security.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SnippetMock } from '../../index.test.js';
import type { OASDocument } from 'oas/rmoas.types';
import type { OASDocument } from 'oas/types';

import definition from './openapi.json';

Expand Down
Loading

0 comments on commit f403042

Please sign in to comment.