@tussle/core
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -0,16 +1,8 @@ | ||
import type { TussleCreationParams } from '@tussle/spec/interface/middleware'; | ||
import type { TussleIncomingRequest } from '@tussle/spec/interface/request'; | ||
import type { UploadConcatFinal, UploadConcatPartial } from '@tussle/spec/interface/storage'; | ||
import { Observable } from 'rxjs'; | ||
import type { Tussle } from '../core'; | ||
export default function handleCreate<T, P>(_core: Tussle, ctx: Readonly<TussleIncomingRequest<T, P>>): Observable<TussleIncomingRequest<T, P>>; | ||
export interface TussleCreationParams { | ||
id: string; | ||
path: string; | ||
contentLength: number; | ||
uploadLength: number; | ||
uploadMetadata: Record<string, string>; | ||
uploadConcat: UploadConcatFinal | UploadConcatPartial | null; | ||
} | ||
declare const extractCreationHeaders: <T, P>(ctx: TussleIncomingRequest<T, P>) => TussleCreationParams; | ||
export declare type ExtractedCreateHeaders = ReturnType<typeof extractCreationHeaders>; | ||
export {}; |
@@ -44,3 +44,2 @@ "use strict"; | ||
const extractCreationHeaders = (ctx) => { | ||
const id = ctx.request.path; | ||
const path = ctx.request.path; | ||
@@ -63,3 +62,2 @@ const header = ctx.request.getHeader; | ||
return { | ||
id, | ||
path, | ||
@@ -66,0 +64,0 @@ contentLength, |
{ | ||
"name": "@tussle/core", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Tussle tus daemon core module", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@tussle/spec": "^0.6.4", | ||
"@tussle/spec": "^0.6.5", | ||
"jest": "^29.2.2", | ||
@@ -37,3 +37,3 @@ "npm-run-all": "^4.1.5", | ||
}, | ||
"gitHead": "a243eeb89d59077530f6e62153411c3f955a4e05" | ||
"gitHead": "9d94e032dd58c48823914bfb00ad62fbe0af4f4c" | ||
} |
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
43233
589