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 3.0.0 to 3.0.1-build-typing-fixes-0b9661d460138a2e93e30974bb792f2f452290b0-1

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Change Log

## 3.0.1 - 2024-05-03
* Use `[A] | []` rather than `[A?]` for singular references [Pagan Gazzard]
* Fix `Resource` typing to allow for null [Pagan Gazzard]
* Fix `Resource` typing for expandable properties [Pagan Gazzard]
## 3.0.0 - 2024-05-02

@@ -9,0 +15,0 @@

4

out/generate.js

@@ -31,4 +31,4 @@ "use strict";

}
const nullable = f.required ? '' : '?';
return `{ __id: ${referencedFieldType} } | [${referencedInterface}${nullable}]`;
const nullable = f.required ? '' : ' | []';
return `{ __id: ${referencedFieldType} } | [${referencedInterface}]${nullable}`;
}

@@ -35,0 +35,0 @@ default:

@@ -17,7 +17,7 @@ import type { Types } from '@balena/sbvr-types';

__id: ReadTypes;
} | Resource[];
} | Array<Resource['Read']> | null;
};
Write: {
[key in keyof T]: WriteTypes;
[key in keyof T]: WriteTypes | null;
};
};
{
"name": "@balena/abstract-sql-to-typescript",
"version": "3.0.0",
"version": "3.0.1-build-typing-fixes-0b9661d460138a2e93e30974bb792f2f452290b0-1",
"description": "A translator for abstract sql into typescript types.",

@@ -53,4 +53,4 @@ "main": "out/index.js",

"versionist": {
"publishedAt": "2024-05-02T11:06:29.599Z"
"publishedAt": "2024-05-03T16:59:03.119Z"
}
}

@@ -65,4 +65,4 @@ import type {

const nullable = f.required ? '' : '?';
return `{ __id: ${referencedFieldType} } | [${referencedInterface}${nullable}]`;
const nullable = f.required ? '' : ' | []';
return `{ __id: ${referencedFieldType} } | [${referencedInterface}]${nullable}`;
}

@@ -69,0 +69,0 @@ default:

@@ -18,7 +18,11 @@ import type { Types } from '@balena/sbvr-types';

Read: {
[key in keyof T]: ReadTypes | { __id: ReadTypes } | Resource[];
[key in keyof T]:
| ReadTypes
| { __id: ReadTypes }
| Array<Resource['Read']>
| null;
};
Write: {
[key in keyof T]: WriteTypes;
[key in keyof T]: WriteTypes | null;
};
};

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