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

@xata.io/kysely

Package Overview
Dependencies
Maintainers
0
Versions
1352
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xata.io/kysely - npm Package Compare versions

Comparing version 0.0.0-alpha.v46de49dbbfde427fa950c3cf1fc0fc0deaf96d2e to 0.0.0-alpha.v46f126ac9821962864917920f0d2a8d3eed10adb

test/kysely.test.ts

24

CHANGELOG.md
# @xata.io/kysely
## 0.0.0-alpha.v46de49dbbfde427fa950c3cf1fc0fc0deaf96d2e
## 0.0.0-alpha.v46f126ac9821962864917920f0d2a8d3eed10adb

@@ -9,5 +9,23 @@ ### Patch Changes

- Updated dependencies [[`6d72a4d`](https://github.com/xataio/client-ts/commit/6d72a4d153f00080eb1203e25429fd1627f32cff)]:
- @xata.io/client@0.0.0-alpha.v46de49dbbfde427fa950c3cf1fc0fc0deaf96d2e
- Updated dependencies []:
- @xata.io/client@0.0.0-alpha.v46f126ac9821962864917920f0d2a8d3eed10adb
## 0.2.1
### Patch Changes
- Updated dependencies [[`8fe6fbf`](https://github.com/xataio/client-ts/commit/8fe6fbf3e6f0983723d770c942a5a202eee6fb8f)]:
- @xata.io/client@0.30.1
## 0.2.0
### Minor Changes
- [#1535](https://github.com/xataio/client-ts/pull/1535) [`40f97d5`](https://github.com/xataio/client-ts/commit/40f97d53091af3d268fe40b4e027245270d42a26) Thanks [@SferaDev](https://github.com/SferaDev)! - Improve types
### Patch Changes
- Updated dependencies [[`cc673c9`](https://github.com/xataio/client-ts/commit/cc673c9a7885351082020e360630eab5db78c652)]:
- @xata.io/client@0.30.0
## 0.1.22

@@ -14,0 +32,0 @@

28

dist/index.d.ts

@@ -1,2 +0,2 @@

import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions, EditableData, Identifiable } from '@xata.io/client';
import { SQLPluginResult, XataRecord, XataPlugin, XataPluginOptions } from '@xata.io/client';
import { Dialect, PostgresAdapter, Driver, QueryCompiler, Kysely, DatabaseIntrospector, DatabaseConnection, CompiledQuery, QueryResult } from 'kysely';

@@ -44,10 +44,26 @@

}
type ExcludeFromUnionIfNotOnlyType<Union, Type> = Exclude<Union, Type> extends never ? Union : Exclude<Union, Type>;
type RemoveIdentifiable<T extends Record<string, any>> = {
[K in keyof T]: T[K] extends any[] ? ExcludeFromUnionIfNotOnlyType<T[K][number], Identifiable>[] : ExcludeFromUnionIfNotOnlyType<T[K], Identifiable>;
type XataFilePgFields = {
id?: string;
mediaType?: string;
size?: number;
name?: string;
enablePublicUrl?: boolean;
signedUrlTimeout?: number;
storageKey?: string;
uploadKey?: string;
uploadUrlTimeout?: number;
version?: number;
};
type Model<Schemas extends Record<string, XataRecord>> = {
[Model in keyof Schemas]: RemoveIdentifiable<EditableData<Schemas[Model]>>;
type RowTypeFields<T> = T extends {
mediaType?: string;
} ? XataFilePgFields : T extends Array<{
mediaType?: string;
}> ? XataFilePgFields[] : T;
type RowType<O> = {
[K in keyof O]: RowTypeFields<NonNullable<O[K]>>;
};
type Model<Schemas extends Record<string, any>> = {
[Model in keyof Schemas]: RowType<Schemas[Model]>;
};
export { KyselyPlugin, type KyselyPluginResult, type Model, XataConnection, XataDialect, type XataDialectConfig, XataDriver };
{
"name": "@xata.io/kysely",
"version": "0.0.0-alpha.v46de49dbbfde427fa950c3cf1fc0fc0deaf96d2e",
"version": "0.0.0-alpha.v46f126ac9821962864917920f0d2a8d3eed10adb",
"description": "",

@@ -21,9 +21,9 @@ "main": "./dist/index.cjs",

"dependencies": {
"@xata.io/client": "0.0.0-alpha.v46de49dbbfde427fa950c3cf1fc0fc0deaf96d2e"
"@xata.io/client": "0.0.0-alpha.v46f126ac9821962864917920f0d2a8d3eed10adb"
},
"devDependencies": {
"kysely": "^0.27.3"
"kysely": "^0.27.5"
},
"peerDependencies": {
"kysely": "^0.26.1"
"kysely": "*"
},

@@ -30,0 +30,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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