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

@contember/client

Package Overview
Dependencies
Maintainers
5
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/client - npm Package Compare versions

Comparing version 0.8.0-alpha.10 to 1.0.0-alpha.1

4

dist/client.d.ts

@@ -48,3 +48,5 @@ declare type CreateMutationArguments = 'data';

delete(name: string, query: WriteBuilder.BuilderFactory<DeleteMutationArguments, DeleteMutationFields, WriteOperation.Delete>, alias?: string): Omit<CrudQueryBuilder_2, Queries>;
inTransaction(alias?: string): CrudQueryBuilder_2;
inTransaction(alias?: string, options?: {
deferForeignKeyConstraints?: boolean;
}): CrudQueryBuilder_2;
getGql(): string;

@@ -51,0 +53,0 @@ }

@@ -79,14 +79,5 @@ import { CrudQueryBuilderError } from './CrudQueryBuilderError.js';

}
inTransaction(alias) {
const name = "transaction";
const [objectName, objectBuilder, fragments] = typeof alias === "string" ? [
alias,
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, void 0, void 0, void 0, name),
this.rootObjectBuilder.fragmentDefinitions
] : [
name,
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }),
this.rootObjectBuilder.fragmentDefinitions
];
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [objectName]: objectBuilder }, fragments));
inTransaction(alias = "transaction", options = {}) {
const objectBuilder = new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, { options }, void 0, void 0, "transaction");
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [alias]: objectBuilder }, this.rootObjectBuilder.fragmentDefinitions));
}

@@ -93,0 +84,0 @@ getGql() {

@@ -78,14 +78,5 @@ import { CrudQueryBuilderError } from "./CrudQueryBuilderError.js";

}
inTransaction(alias) {
const name = "transaction";
const [objectName, objectBuilder, fragments] = typeof alias === "string" ? [
alias,
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, void 0, void 0, void 0, name),
this.rootObjectBuilder.fragmentDefinitions
] : [
name,
new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }),
this.rootObjectBuilder.fragmentDefinitions
];
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [objectName]: objectBuilder }, fragments));
inTransaction(alias = "transaction", options = {}) {
const objectBuilder = new ObjectBuilder(void 0, { ...this.rootObjectBuilder.objects }, { options }, void 0, void 0, "transaction");
return new CrudQueryBuilder(this.type, new RootObjectBuilder({ [alias]: objectBuilder }, this.rootObjectBuilder.fragmentDefinitions));
}

@@ -92,0 +83,0 @@ getGql() {

{
"name": "@contember/client",
"license": "Apache-2.0",
"version": "0.8.0-alpha.10",
"version": "1.0.0-alpha.1",
"main": "./dist/production/index.js",

@@ -6,0 +6,0 @@ "exports": {

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