@opra/cli 1.27.1 → 1.27.4

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.
@@ -1 +1 @@
1
- export {};
1
+ import { ApiDocument } from '@opra/common';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/cli",
3
- "version": "1.27.1",
3
+ "version": "1.27.4",
4
4
  "description": "Opra CLI tools",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -15,8 +15,8 @@
15
15
  "tslib": "^2.8.1"
16
16
  },
17
17
  "peerDependencies": {
18
- "@opra/client": "^1.27.1",
19
- "@opra/common": "^1.27.1"
18
+ "@opra/client": "^1.27.4",
19
+ "@opra/common": "^1.27.4"
20
20
  },
21
21
  "type": "module",
22
22
  "module": "./index.js",
@@ -1,7 +1,8 @@
1
1
  import path from 'node:path';
2
2
  import { updateErrorMessage } from '@jsopen/objects';
3
- import { ArrayType, ComplexType, EnumType, MappedType, MixinType, OperationResult, SimpleType, UnionType, } from '@opra/common';
3
+ import { ArrayType, ComplexType, DataType, EnumType, MappedType, MixinType, OperationResult, SimpleType, UnionType, } from '@opra/common';
4
4
  import { CodeBlock } from '../../code-block.js';
5
+ import { TsFile } from '../ts-file.js';
5
6
  import { wrapJSDocString } from '../utils/string-utils.js';
6
7
  const internalTypeNames = [
7
8
  'any',
@@ -1,6 +1,6 @@
1
1
  import path from 'node:path';
2
2
  import { OpraHttpClient } from '@opra/client';
3
- import { BUILTIN, HttpApi } from '@opra/common';
3
+ import { ApiDocument, BUILTIN, HttpApi } from '@opra/common';
4
4
  import colors from 'ansi-colors';
5
5
  import { pascalCase } from 'putil-varhelpers';
6
6
  /**
@@ -1,4 +1,5 @@
1
1
  import path from 'node:path';
2
+ import { HttpApi } from '@opra/common';
2
3
  import { camelCase, pascalCase } from 'putil-varhelpers';
3
4
  import { CodeBlock } from '../../code-block.js';
4
5
  import { httpControllerNodeScript } from '../http-controller-node.js';
@@ -1,6 +1,6 @@
1
1
  import path from 'node:path';
2
2
  import typeIs from '@browsery/type-is';
3
- import { ComplexType, HttpController, MimeTypes, OperationResult, } from '@opra/common';
3
+ import { ComplexType, DataType, HttpController, HttpParameter, MimeTypes, OperationResult, } from '@opra/common';
4
4
  import { camelCase, pascalCase } from 'putil-varhelpers';
5
5
  import { CodeBlock } from '../../code-block.js';
6
6
  import { locateNamedType } from '../utils/locate-named-type.js';
@@ -2,6 +2,7 @@ import { EventEmitter } from 'node:events';
2
2
  import fs from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import process from 'node:process';
5
+ import { ApiDocument } from '@opra/common';
5
6
  import colors from 'ansi-colors';
6
7
  import { FileWriter } from '../file-writer.js';
7
8
  import { cleanDirectory } from './generators/clean-directory.js';
@@ -1,4 +1,4 @@
1
- import { ComplexType, EnumType, MappedType, SimpleType, } from '@opra/common';
1
+ import { ComplexType, DataType, EnumType, MappedType, SimpleType, } from '@opra/common';
2
2
  /**
3
3
  * Locates the first named type in the inheritance chain of a data type.
4
4
  *