@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 2.1.0 to 2.1.1-build-eslint-6d14937a7ed94048f5bb09ed381d8d3fc86d8bbd-1
@@ -7,4 +7,9 @@ # Change Log | ||
## 2.1.0 - 2023-08-09 | ||
## 2.1.1 - 2023-08-18 | ||
* Update @balena/lint to 7.0.0 [Thodoris Greasidis] | ||
* Type JSON fields as object rather than {} [Thodoris Greasidis] | ||
## 2.1.0 - 2023-08-10 | ||
* Adds webresource typing generation [Otávio Jacobi] | ||
@@ -11,0 +16,0 @@ |
@@ -67,3 +67,3 @@ "use strict"; | ||
case 'ConceptType': | ||
case 'ForeignKey': | ||
case 'ForeignKey': { | ||
const referencedDataType = getReferencedDataType(m, f, opts); | ||
@@ -76,6 +76,7 @@ if (opts.mode === 'write') { | ||
return `{ __id: ${referencedDataType} } | [${referencedInterface}${nullable}]`; | ||
} | ||
case 'File': | ||
return 'Buffer'; | ||
case 'JSON': | ||
return '{}'; | ||
return 'object'; | ||
case 'WebResource': | ||
@@ -82,0 +83,0 @@ return 'WebResource'; |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "2.1.0", | ||
"version": "2.1.1-build-eslint-6d14937a7ed94048f5bb09ed381d8d3fc86d8bbd-1", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -22,3 +22,3 @@ "main": "out/index.js", | ||
"devDependencies": { | ||
"@balena/lint": "^6.2.2", | ||
"@balena/lint": "^7.0.0-build-eslint-637e45d92f2d8fc61a42b15b17c2d2af2755a16e-1", | ||
"@types/chai": "^4.3.4", | ||
@@ -48,4 +48,4 @@ "@types/common-tags": "^1.8.1", | ||
"versionist": { | ||
"publishedAt": "2023-08-09T00:44:05.109Z" | ||
"publishedAt": "2023-08-18T12:53:30.165Z" | ||
} | ||
} |
@@ -102,3 +102,3 @@ import type { | ||
case 'ConceptType': | ||
case 'ForeignKey': | ||
case 'ForeignKey': { | ||
const referencedDataType = getReferencedDataType(m, f, opts); | ||
@@ -114,6 +114,7 @@ if (opts.mode === 'write') { | ||
return `{ __id: ${referencedDataType} } | [${referencedInterface}${nullable}]`; | ||
} | ||
case 'File': | ||
return 'Buffer'; | ||
case 'JSON': | ||
return '{}'; | ||
return 'object'; | ||
case 'WebResource': | ||
@@ -120,0 +121,0 @@ return 'WebResource'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111393
780
2