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.2.3 to 0.2.5

2

lib/handlers/head.js

@@ -13,3 +13,3 @@ "use strict";

const params$ = ctx.source.hook('before-head', ctx, params);
return params$.pipe((0, operators_1.switchMap)((params) => store.getFileInfo(params)), (0, operators_1.map)(fileInfo => toResponse(ctx, fileInfo)));
return params$.pipe((0, operators_1.switchMap)((params) => store.getFileInfo(params)), (0, operators_1.switchMap)((params) => ctx.source.hook('after-head', ctx, params)), (0, operators_1.map)(fileInfo => toResponse(ctx, fileInfo)));
}

@@ -16,0 +16,0 @@ }

"use strict";
// import type { Observable } from 'rxjs';
// import type { TussleIncomingRequest } from '@tussle/spec/interface/request';
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -13,5 +11,2 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const options_1 = __importDefault(require("./options"));
// type IncomingRequestMethod = TussleIncomingRequest<unknown>['request']['method'];
// type IncomingRequestHandler = <T>(core: Tussle, ctx: TussleIncomingRequest<T>) => Observable<TussleIncomingRequest<T>>;
// type RequestHandler = Record<IncomingRequestMethod, IncomingRequestHandler>;
exports.defaultHandlers = {

@@ -18,0 +13,0 @@ 'POST': create_1.default,

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { Observable } from 'rxjs';

@@ -3,0 +2,0 @@ import type { Tussle } from '../core';

@@ -21,3 +21,3 @@ "use strict";

const params$ = ctx.source.hook('before-patch', ctx, params);
return params$.pipe((0, operators_1.switchMap)((params) => store.patchFile(params)), (0, operators_1.switchMap)((patchedFile) => callOptionalHooks(ctx, patchedFile)), (0, operators_1.map)((patchedFile) => toResponse(ctx, patchedFile)));
return params$.pipe((0, operators_1.switchMap)((params) => store.patchFile(params)), (0, operators_1.switchMap)((patchedFile) => callOptionalHooks(ctx, patchedFile)), (0, operators_1.switchMap)((patchedFile) => ctx.source.hook('after-patch', ctx, patchedFile)), (0, operators_1.map)((patchedFile) => toResponse(ctx, patchedFile)));
}

@@ -24,0 +24,0 @@ exports.default = handlePatch;

{
"name": "@tussle/core",
"version": "0.2.3",
"version": "0.2.5",
"description": "Tussle tus daemon core module",

@@ -23,3 +23,3 @@ "main": "lib/index.js",

"devDependencies": {
"@tussle/spec": "^0.2.2",
"@tussle/spec": "^0.2.5",
"jest": "^27.5.1",

@@ -36,3 +36,3 @@ "npm-run-all": "^4.1.5",

},
"gitHead": "ec8013768f04e3060ee20df06caf99cfa86f222e"
"gitHead": "7d0d0169d242ce850b8d5d6b48861a22e78f4486"
}
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