@contember/client
Advanced tools
Comparing version 1.1.0-alpha.11 to 1.1.0-alpha.12
@@ -8,2 +8,3 @@ var __defProp = Object.defineProperty; | ||
import { GenerateUploadUrlMutationBuilder } from "./GenerateUploadUrlMutationBuilder.js"; | ||
import { FileUploadError } from "./FileUploadError.js"; | ||
import { readFileAsArrayBuffer } from "../../utils/readFileAsArrayBuffer.js"; | ||
@@ -81,3 +82,8 @@ class S3FileUploader { | ||
} catch (error) { | ||
onError(Array.from(files).map(([file]) => [file, error])); | ||
if (error instanceof FileUploadError) { | ||
const fileUploadError = error; | ||
onError(Array.from(files).map(([file]) => [file, fileUploadError])); | ||
} else { | ||
throw error; | ||
} | ||
} | ||
@@ -84,0 +90,0 @@ } |
@@ -42,23 +42,4 @@ import { GraphQlLiteral } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
_CrudQueryBuilder.WriteOperation = WriteOperation; | ||
_CrudQueryBuilder.CreateMutationArguments = void 0; | ||
_CrudQueryBuilder.CreateMutationFields = void 0; | ||
_CrudQueryBuilder.DeleteMutationArguments = void 0; | ||
_CrudQueryBuilder.DeleteMutationFields = void 0; | ||
_CrudQueryBuilder.GetQueryArguments = void 0; | ||
_CrudQueryBuilder.HasManyArguments = void 0; | ||
_CrudQueryBuilder.HasOneArguments = void 0; | ||
_CrudQueryBuilder.ListQueryArguments = void 0; | ||
_CrudQueryBuilder.Mutations = void 0; | ||
_CrudQueryBuilder.OrderDirection = void 0; | ||
_CrudQueryBuilder.PaginateQueryArguments = void 0; | ||
_CrudQueryBuilder.Queries = void 0; | ||
_CrudQueryBuilder.ReadArguments = void 0; | ||
_CrudQueryBuilder.ReductionArguments = void 0; | ||
_CrudQueryBuilder.UpdateMutationArguments = void 0; | ||
_CrudQueryBuilder.UpdateMutationFields = void 0; | ||
_CrudQueryBuilder.WriteArguments = void 0; | ||
_CrudQueryBuilder.WriteFields = void 0; | ||
_CrudQueryBuilder.WriteRelationOps = void 0; | ||
})(CrudQueryBuilder || (CrudQueryBuilder = {})); | ||
export { CrudQueryBuilder, GraphQlBuilder }; | ||
//# sourceMappingURL=index.js.map |
@@ -8,2 +8,3 @@ var __defProp = Object.defineProperty; | ||
import { GenerateUploadUrlMutationBuilder } from "./GenerateUploadUrlMutationBuilder.js"; | ||
import { FileUploadError } from "./FileUploadError.js"; | ||
import { readFileAsArrayBuffer } from "../../utils/readFileAsArrayBuffer.js"; | ||
@@ -81,3 +82,8 @@ class S3FileUploader { | ||
} catch (error) { | ||
onError(Array.from(files).map(([file]) => [file, error])); | ||
if (error instanceof FileUploadError) { | ||
const fileUploadError = error; | ||
onError(Array.from(files).map(([file]) => [file, fileUploadError])); | ||
} else { | ||
throw error; | ||
} | ||
} | ||
@@ -84,0 +90,0 @@ } |
@@ -42,23 +42,4 @@ import { GraphQlLiteral } from "./graphQlBuilder/GraphQlLiteral.js"; | ||
_CrudQueryBuilder.WriteOperation = WriteOperation; | ||
_CrudQueryBuilder.CreateMutationArguments = void 0; | ||
_CrudQueryBuilder.CreateMutationFields = void 0; | ||
_CrudQueryBuilder.DeleteMutationArguments = void 0; | ||
_CrudQueryBuilder.DeleteMutationFields = void 0; | ||
_CrudQueryBuilder.GetQueryArguments = void 0; | ||
_CrudQueryBuilder.HasManyArguments = void 0; | ||
_CrudQueryBuilder.HasOneArguments = void 0; | ||
_CrudQueryBuilder.ListQueryArguments = void 0; | ||
_CrudQueryBuilder.Mutations = void 0; | ||
_CrudQueryBuilder.OrderDirection = void 0; | ||
_CrudQueryBuilder.PaginateQueryArguments = void 0; | ||
_CrudQueryBuilder.Queries = void 0; | ||
_CrudQueryBuilder.ReadArguments = void 0; | ||
_CrudQueryBuilder.ReductionArguments = void 0; | ||
_CrudQueryBuilder.UpdateMutationArguments = void 0; | ||
_CrudQueryBuilder.UpdateMutationFields = void 0; | ||
_CrudQueryBuilder.WriteArguments = void 0; | ||
_CrudQueryBuilder.WriteFields = void 0; | ||
_CrudQueryBuilder.WriteRelationOps = void 0; | ||
})(CrudQueryBuilder || (CrudQueryBuilder = {})); | ||
export { CrudQueryBuilder, GraphQlBuilder }; | ||
//# sourceMappingURL=index.js.map |
@@ -20,21 +20,21 @@ import * as CrudQueryBuilderTmp from './crudQueryBuilder'; | ||
export import WriteOperation = CrudQueryBuilderTmp.WriteOperation; | ||
export import CreateMutationArguments = CrudQueryBuilderTmp.CreateMutationArguments; | ||
export import CreateMutationFields = CrudQueryBuilderTmp.CreateMutationFields; | ||
export import DeleteMutationArguments = CrudQueryBuilderTmp.DeleteMutationArguments; | ||
export import DeleteMutationFields = CrudQueryBuilderTmp.DeleteMutationFields; | ||
export import GetQueryArguments = CrudQueryBuilderTmp.GetQueryArguments; | ||
export import HasManyArguments = CrudQueryBuilderTmp.HasManyArguments; | ||
export import HasOneArguments = CrudQueryBuilderTmp.HasOneArguments; | ||
export import ListQueryArguments = CrudQueryBuilderTmp.ListQueryArguments; | ||
export import Mutations = CrudQueryBuilderTmp.Mutations; | ||
export import OrderDirection = CrudQueryBuilderTmp.OrderDirection; | ||
export import PaginateQueryArguments = CrudQueryBuilderTmp.PaginateQueryArguments; | ||
export import Queries = CrudQueryBuilderTmp.Queries; | ||
export import ReadArguments = CrudQueryBuilderTmp.ReadArguments; | ||
export import ReductionArguments = CrudQueryBuilderTmp.ReductionArguments; | ||
export import UpdateMutationArguments = CrudQueryBuilderTmp.UpdateMutationArguments; | ||
export import UpdateMutationFields = CrudQueryBuilderTmp.UpdateMutationFields; | ||
export import WriteArguments = CrudQueryBuilderTmp.WriteArguments; | ||
export import WriteFields = CrudQueryBuilderTmp.WriteFields; | ||
export import WriteRelationOps = CrudQueryBuilderTmp.WriteRelationOps; | ||
type CreateMutationArguments = CrudQueryBuilderTmp.CreateMutationArguments; | ||
type CreateMutationFields = CrudQueryBuilderTmp.CreateMutationFields; | ||
type DeleteMutationArguments = CrudQueryBuilderTmp.DeleteMutationArguments; | ||
type DeleteMutationFields = CrudQueryBuilderTmp.DeleteMutationFields; | ||
type GetQueryArguments = CrudQueryBuilderTmp.GetQueryArguments; | ||
type HasManyArguments = CrudQueryBuilderTmp.HasManyArguments; | ||
type HasOneArguments = CrudQueryBuilderTmp.HasOneArguments; | ||
type ListQueryArguments = CrudQueryBuilderTmp.ListQueryArguments; | ||
type Mutations = CrudQueryBuilderTmp.Mutations; | ||
type OrderDirection = CrudQueryBuilderTmp.OrderDirection; | ||
type PaginateQueryArguments = CrudQueryBuilderTmp.PaginateQueryArguments; | ||
type Queries = CrudQueryBuilderTmp.Queries; | ||
type ReadArguments = CrudQueryBuilderTmp.ReadArguments; | ||
type ReductionArguments = CrudQueryBuilderTmp.ReductionArguments; | ||
type UpdateMutationArguments = CrudQueryBuilderTmp.UpdateMutationArguments; | ||
type UpdateMutationFields = CrudQueryBuilderTmp.UpdateMutationFields; | ||
type WriteArguments = CrudQueryBuilderTmp.WriteArguments; | ||
type WriteFields = CrudQueryBuilderTmp.WriteFields; | ||
type WriteRelationOps = CrudQueryBuilderTmp.WriteRelationOps; | ||
} | ||
@@ -41,0 +41,0 @@ export * from './content'; |
{ | ||
"name": "@contember/client", | ||
"license": "Apache-2.0", | ||
"version": "1.1.0-alpha.11", | ||
"version": "1.1.0-alpha.12", | ||
"main": "./dist/production/index.js", | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -5,2 +5,3 @@ import { readFileAsArrayBuffer } from '../../utils' | ||
import type { UploadedFileMetadata } from './UploadedFileMetadata' | ||
import { FileUploadError } from './FileUploadError' | ||
@@ -101,3 +102,9 @@ interface S3UploadState { | ||
} catch (error) { | ||
onError(Array.from(files).map(([file]) => [file, error])) | ||
if (error instanceof FileUploadError) { | ||
const fileUploadError = error | ||
onError(Array.from(files).map(([file]) => [file, fileUploadError])) | ||
} else { | ||
throw error | ||
} | ||
} | ||
@@ -104,0 +111,0 @@ } |
@@ -23,21 +23,21 @@ import * as CrudQueryBuilderTmp from './crudQueryBuilder' | ||
export import WriteOperation = CrudQueryBuilderTmp.WriteOperation | ||
export import CreateMutationArguments = CrudQueryBuilderTmp.CreateMutationArguments | ||
export import CreateMutationFields = CrudQueryBuilderTmp.CreateMutationFields | ||
export import DeleteMutationArguments = CrudQueryBuilderTmp.DeleteMutationArguments | ||
export import DeleteMutationFields = CrudQueryBuilderTmp.DeleteMutationFields | ||
export import GetQueryArguments = CrudQueryBuilderTmp.GetQueryArguments | ||
export import HasManyArguments = CrudQueryBuilderTmp.HasManyArguments | ||
export import HasOneArguments = CrudQueryBuilderTmp.HasOneArguments | ||
export import ListQueryArguments = CrudQueryBuilderTmp.ListQueryArguments | ||
export import Mutations = CrudQueryBuilderTmp.Mutations | ||
export import OrderDirection = CrudQueryBuilderTmp.OrderDirection | ||
export import PaginateQueryArguments = CrudQueryBuilderTmp.PaginateQueryArguments | ||
export import Queries = CrudQueryBuilderTmp.Queries | ||
export import ReadArguments = CrudQueryBuilderTmp.ReadArguments | ||
export import ReductionArguments = CrudQueryBuilderTmp.ReductionArguments | ||
export import UpdateMutationArguments = CrudQueryBuilderTmp.UpdateMutationArguments | ||
export import UpdateMutationFields = CrudQueryBuilderTmp.UpdateMutationFields | ||
export import WriteArguments = CrudQueryBuilderTmp.WriteArguments | ||
export import WriteFields = CrudQueryBuilderTmp.WriteFields | ||
export import WriteRelationOps = CrudQueryBuilderTmp.WriteRelationOps | ||
export type CreateMutationArguments = CrudQueryBuilderTmp.CreateMutationArguments | ||
export type CreateMutationFields = CrudQueryBuilderTmp.CreateMutationFields | ||
export type DeleteMutationArguments = CrudQueryBuilderTmp.DeleteMutationArguments | ||
export type DeleteMutationFields = CrudQueryBuilderTmp.DeleteMutationFields | ||
export type GetQueryArguments = CrudQueryBuilderTmp.GetQueryArguments | ||
export type HasManyArguments = CrudQueryBuilderTmp.HasManyArguments | ||
export type HasOneArguments = CrudQueryBuilderTmp.HasOneArguments | ||
export type ListQueryArguments = CrudQueryBuilderTmp.ListQueryArguments | ||
export type Mutations = CrudQueryBuilderTmp.Mutations | ||
export type OrderDirection = CrudQueryBuilderTmp.OrderDirection | ||
export type PaginateQueryArguments = CrudQueryBuilderTmp.PaginateQueryArguments | ||
export type Queries = CrudQueryBuilderTmp.Queries | ||
export type ReadArguments = CrudQueryBuilderTmp.ReadArguments | ||
export type ReductionArguments = CrudQueryBuilderTmp.ReductionArguments | ||
export type UpdateMutationArguments = CrudQueryBuilderTmp.UpdateMutationArguments | ||
export type UpdateMutationFields = CrudQueryBuilderTmp.UpdateMutationFields | ||
export type WriteArguments = CrudQueryBuilderTmp.WriteArguments | ||
export type WriteFields = CrudQueryBuilderTmp.WriteFields | ||
export type WriteRelationOps = CrudQueryBuilderTmp.WriteRelationOps | ||
} | ||
@@ -44,0 +44,0 @@ |
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
417812
3947