@tussle/core
Advanced tools
Comparing version 0.5.3 to 0.5.4
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'; | ||
import { Observable } from 'rxjs'; | ||
export default function handleCreate<T, P>(_core: Tussle, ctx: Readonly<TussleIncomingRequest<T, P>>): Observable<TussleIncomingRequest<T, P>>; | ||
@@ -6,0 +6,0 @@ export interface TussleCreationParams { |
@@ -21,3 +21,3 @@ "use strict"; | ||
if (((_a = createdFile.uploadConcat) === null || _a === void 0 ? void 0 : _a.action) === 'final') { | ||
const patchedFile = Object.assign(Object.assign({}, createdFile), { offset: -1, complete: true, details: { | ||
const patchedFile = Object.assign(Object.assign({}, createdFile), { offset: createdFile.offset, complete: true, details: { | ||
tussleUploadMetadata: createdFile.metadata || {}, | ||
@@ -24,0 +24,0 @@ } }); |
{ | ||
"name": "@tussle/core", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Tussle tus daemon core module", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@tussle/spec": "^0.5.0", | ||
"@tussle/spec": "^0.5.4", | ||
"jest": "^29.1.2", | ||
@@ -37,3 +37,3 @@ "npm-run-all": "^4.1.5", | ||
}, | ||
"gitHead": "c9141a31ffabe3746760d2028440edbe5b29c7a1" | ||
"gitHead": "51cc6b91a2e8ff71681692e7ba33e4b2570b54af" | ||
} |
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
29534