Skip to content

Commit

Permalink
change jest-env version
Browse files Browse the repository at this point in the history
  • Loading branch information
helios2003 committed Sep 17, 2024
1 parent b7da6cc commit 1cdb9b8
Show file tree
Hide file tree
Showing 4 changed files with 491 additions and 442 deletions.
5 changes: 3 additions & 2 deletions apps/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@
"conventional-changelog-conventionalcommits": "^5.0.0",
"cross-env": "^7.0.3",
"esbuild": "0.18.20",
"eslint-config-custom": "workspace:*",
"https-browserify": "^1.0.0",
"jest-environment-jsdom": "27.5.1",
"markdown-toc": "^1.2.0",
"path-browserify": "^1.0.1",
"postcss": "^8.4.31",
Expand All @@ -123,8 +125,7 @@
"url": "^0.11.0",
"util": "^0.12.5",
"web-vitals": "^3.1.0",
"webpack": "^5.75.0",
"eslint-config-custom": "workspace:*"
"webpack": "^5.75.0"
},
"jest": {
"transformIgnorePatterns": [
Expand Down
4 changes: 2 additions & 2 deletions apps/studio/src/services/converter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { AbstractService } from './abstract.service';

import { convert } from '@asyncapi/converter';

import type { ConvertVersion, ConvertOptions } from '@asyncapi/converter';
import type { AsyncAPIConvertVersion, ConvertOptions } from '@asyncapi/converter';

export class ConverterService extends AbstractService {
async convert(
spec: string,
version?: ConvertVersion,
version?: AsyncAPIConvertVersion,
options?: ConvertOptions,
): Promise<string> {
version = version || this.svcs.specificationSvc.latestVersion;
Expand Down
6 changes: 3 additions & 3 deletions apps/studio/src/services/editor.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { appState, documentsState, filesState, settingsState } from '../state';

import type * as monacoAPI from 'monaco-editor/esm/vs/editor/editor.api';
import type { Diagnostic } from '@asyncapi/parser/cjs';
import type { ConvertVersion } from '@asyncapi/converter';
import type { AsyncAPIConvertVersion } from '@asyncapi/converter';
import type { File } from '../state/files.state';

export interface UpdateState {
Expand Down Expand Up @@ -97,8 +97,8 @@ export class EditorService extends AbstractService {
});
}

async convertSpec(version?: ConvertVersion | string) {
const converted = await this.svcs.converterSvc.convert(this.value, version as ConvertVersion);
async convertSpec(version?: AsyncAPIConvertVersion | string) {
const converted = await this.svcs.converterSvc.convert(this.value, version as AsyncAPIConvertVersion);
this.updateState({ content: converted, updateModel: true });
}

Expand Down
Loading

0 comments on commit 1cdb9b8

Please sign in to comment.