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.2.0 to 2.3.0-build-expand-defer-all-60b4233b03c1ec25165b800de1fd9bd31158cfca-1

5

CHANGELOG.md

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

## 2.3.0 - 2024-04-17
* Allow using `PickDeferred` with a single parameter to defer all keys [Pagan Gazzard]
* Allow using `PickExpanded` with a single parameter to expand all keys [Pagan Gazzard]
## 2.2.0 - 2024-04-09

@@ -9,0 +14,0 @@

4

out/index.js

@@ -10,7 +10,7 @@ "use strict";

export type Expanded<T> = Extract<T, any[]>;
export type PickExpanded<T, K extends keyof T> = {
export type PickExpanded<T, K extends keyof T = keyof T> = {
[P in K]-?: Expanded<T[P]>;
};
export type Deferred<T> = Exclude<T, any[]>;
export type PickDeferred<T, K extends keyof T> = {
export type PickDeferred<T, K extends keyof T = keyof T> = {
[P in K]: Deferred<T[P]>;

@@ -17,0 +17,0 @@ };

{
"name": "@balena/abstract-sql-to-typescript",
"version": "2.2.0",
"version": "2.3.0-build-expand-defer-all-60b4233b03c1ec25165b800de1fd9bd31158cfca-1",
"description": "A translator for abstract sql into typescript types.",

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

"versionist": {
"publishedAt": "2024-04-09T02:03:27.626Z"
"publishedAt": "2024-04-17T18:02:46.516Z"
}
}

@@ -25,7 +25,7 @@ import type {

export type Expanded<T> = Extract<T, any[]>;
export type PickExpanded<T, K extends keyof T> = {
export type PickExpanded<T, K extends keyof T = keyof T> = {
[P in K]-?: Expanded<T[P]>;
};
export type Deferred<T> = Exclude<T, any[]>;
export type PickDeferred<T, K extends keyof T> = {
export type PickDeferred<T, K extends keyof T = keyof T> = {
[P in K]: Deferred<T[P]>;

@@ -32,0 +32,0 @@ };

@@ -29,7 +29,7 @@ import type { AbstractSqlModel } from '@balena/abstract-sql-compiler';

export type Expanded<T> = Extract<T, any[]>;
export type PickExpanded<T, K extends keyof T> = {
export type PickExpanded<T, K extends keyof T = keyof T> = {
[P in K]-?: Expanded<T[P]>;
};
export type Deferred<T> = Exclude<T, any[]>;
export type PickDeferred<T, K extends keyof T> = {
export type PickDeferred<T, K extends keyof T = keyof T> = {
[P in K]: Deferred<T[P]>;

@@ -36,0 +36,0 @@ };

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