@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 2.1.5-build-otavio-fix-webresource-write-e5c6f1de2d5456c74b91cd91e67731d8c51ed6cc-1 to 2.1.5-build-renovate-major--balenalint-ebafb1edda286e10394be6e137ac674645537b1a-1
@@ -7,5 +7,5 @@ # Change Log | ||
## 2.1.5 - 2024-03-12 | ||
## 2.1.5 - 2024-03-16 | ||
* Fix WebResource write typings [Otavio Jacobi] | ||
* Update dependency @balena/lint to v8 [Self-hosted Renovate Bot] | ||
@@ -12,0 +12,0 @@ ## 2.1.4 - 2024-03-04 |
@@ -25,8 +25,4 @@ "use strict"; | ||
`, | ||
write: ` | ||
export interface WebResourceWrite extends Blob { | ||
name: string; | ||
write: '', | ||
}; | ||
`, | ||
}; | ||
const trimNL = new common_tags_1.TemplateTag((0, common_tags_1.replaceResultTransformer)(/^[\r\n]*|[\r\n]*$/g, '')); | ||
@@ -86,3 +82,3 @@ const modelNameToCamelCaseName = (s) => s | ||
case 'WebResource': | ||
return opts.mode === 'read' ? 'WebResource' : 'WebResourceWrite'; | ||
return 'WebResource'; | ||
default: | ||
@@ -89,0 +85,0 @@ throw new Error(`Unknown data type: '${f.dataType}'`); |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "2.1.5-build-otavio-fix-webresource-write-e5c6f1de2d5456c74b91cd91e67731d8c51ed6cc-1", | ||
"version": "2.1.5-build-renovate-major--balenalint-ebafb1edda286e10394be6e137ac674645537b1a-1", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -23,3 +23,3 @@ "main": "out/index.js", | ||
"devDependencies": { | ||
"@balena/lint": "^7.3.0", | ||
"@balena/lint": "^8.0.0", | ||
"@types/chai": "^4.3.12", | ||
@@ -49,4 +49,4 @@ "@types/common-tags": "^1.8.4", | ||
"versionist": { | ||
"publishedAt": "2024-03-12T13:43:48.667Z" | ||
"publishedAt": "2024-03-16T16:44:40.470Z" | ||
} | ||
} |
@@ -40,8 +40,4 @@ import type { | ||
`, | ||
write: ` | ||
export interface WebResourceWrite extends Blob { | ||
name: string; | ||
write: '', | ||
}; | ||
`, | ||
}; | ||
@@ -124,3 +120,3 @@ const trimNL = new TemplateTag( | ||
case 'WebResource': | ||
return opts.mode === 'read' ? 'WebResource' : 'WebResourceWrite'; | ||
return 'WebResource'; | ||
default: | ||
@@ -127,0 +123,0 @@ throw new Error(`Unknown data type: '${f.dataType}'`); |
@@ -47,9 +47,3 @@ import type { AbstractSqlModel } from '@balena/abstract-sql-compiler'; | ||
} else { | ||
expect(result).to.equal(source` | ||
export interface WebResourceWrite extends Blob { | ||
name: string; | ||
}; | ||
${expectation} | ||
`); | ||
expect(result).to.equal(expectation); | ||
} | ||
@@ -368,3 +362,3 @@ }); | ||
a_date: Date; | ||
a_file: WebResourceWrite; | ||
a_file: WebResource; | ||
parent: number; | ||
@@ -371,0 +365,0 @@ references__other: number; |
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
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
197267
781