Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@balena/abstract-sql-to-typescript

Package Overview
Dependencies
Maintainers
3
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/abstract-sql-to-typescript - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1-build-eslint-6d14937a7ed94048f5bb09ed381d8d3fc86d8bbd-1

7

CHANGELOG.md

@@ -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 @@

5

out/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc