Socket
Socket
Sign inDemoInstall

tote-lib

Package Overview
Dependencies
6
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.7

readme.md

2

dist/func.d.ts

@@ -17,5 +17,5 @@ import { Context, HttpRequest } from '@azure/functions';

invoke(): object | void;
validate(): void;
_validate(): void;
static bootstrap(Func: Constructable): (context: Context, request: HttpRequest) => Promise<void>;
}
export {};

@@ -111,3 +111,3 @@ 'use strict';

Func.prototype.invoke = function () { };
Func.prototype.validate = function () {
Func.prototype._validate = function () {
var _a = this, schema = _a.schema, _b = _a.request, body = _b.body, query = _b.query;

@@ -138,3 +138,3 @@ var request = {};

if (func.schema) {
func.validate();
func._validate();
}

@@ -141,0 +141,0 @@ return [4 /*yield*/, func.invoke()];

{
"name": "tote-lib",
"license": "MIT",
"version": "0.0.6",
"version": "0.0.7",
"main": "dist/index.js",

@@ -28,5 +28,5 @@ "scripts": {

"hooks": {
"pre-commit": "yarn build && pretty-quick --staged"
"pre-commit": "yarn build && git add ./dist && pretty-quick --staged"
}
}
}

@@ -45,3 +45,3 @@ import get from 'lodash.get'

validate() {
_validate() {
const {

@@ -71,2 +71,5 @@ schema,

return async (context: Context, request: HttpRequest) => {
// workaround for Azure Function host bug
console.log = context.log
const func: Func = new Func(context, request)

@@ -76,3 +79,3 @@

if (func.schema) {
func.validate()
func._validate()
}

@@ -79,0 +82,0 @@

@@ -7,1 +7,3 @@ import * as joi from '@hapi/joi'

export { default as Func } from './func'
export { default as invoke } from './invoke'
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc