@opra/cli 1.16.1 → 1.17.0

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.
@@ -200,7 +200,8 @@ async function _generateComplexTypeCode(currentFile, dataType, intent) {
200
200
  */
201
201
  async function _generateSimpleTypeCode(currentFile, dataType, intent) {
202
202
  let out = intent === 'root' ? `type ${dataType.name} = ` : '';
203
- out += dataType.nameMappings.js || 'any';
203
+ const nameMapping = dataType.nameMappings.js || 'any';
204
+ out += nameMapping === 'Date' ? 'string' : nameMapping;
204
205
  return intent === 'root' ? out + ';' : out;
205
206
  }
206
207
  /**
@@ -190,7 +190,8 @@ export async function _generateComplexTypeCode(currentFile, dataType, intent) {
190
190
  */
191
191
  export async function _generateSimpleTypeCode(currentFile, dataType, intent) {
192
192
  let out = intent === 'root' ? `type ${dataType.name} = ` : '';
193
- out += dataType.nameMappings.js || 'any';
193
+ const nameMapping = dataType.nameMappings.js || 'any';
194
+ out += nameMapping === 'Date' ? 'string' : nameMapping;
194
195
  return intent === 'root' ? out + ';' : out;
195
196
  }
196
197
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/cli",
3
- "version": "1.16.1",
3
+ "version": "1.17.0",
4
4
  "description": "Opra CLI tools",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -14,8 +14,8 @@
14
14
  "tslib": "^2.8.1"
15
15
  },
16
16
  "peerDependencies": {
17
- "@opra/client": "^1.16.1",
18
- "@opra/common": "^1.16.1"
17
+ "@opra/client": "^1.17.0",
18
+ "@opra/common": "^1.17.0"
19
19
  },
20
20
  "type": "module",
21
21
  "exports": {