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

@tussle/core

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tussle/core - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

10

lib/handlers/create.d.ts

@@ -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,

6

package.json
{
"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

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