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

@netlify/functions

Package Overview
Dependencies
Maintainers
19
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/functions - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

4

dist/function/handler.d.ts

@@ -13,3 +13,3 @@ import type { Context } from './context.js';

}
export declare type Handler = BaseHandler<Response, Context>;
export declare type BuilderHandler = BaseHandler<BuilderResponse, Context>;
export type Handler = BaseHandler<Response, Context>;
export type BuilderHandler = BaseHandler<BuilderResponse, Context>;
export { Context as HandlerContext } from './context.js';
export { Event as HandlerEvent } from './event.js';
export { Handler, BackgroundHandler, HandlerCallback } from './handler.js';
export { Response as HandlerResponse } from './response.js';
export { BuilderHandler, Handler, BackgroundHandler, HandlerCallback } from './handler.js';
export { BuilderResponse, Response as HandlerResponse } from './response.js';
export { getSecrets, getSecretsForBuild, withSecrets, getNetlifyGraphToken, getNetlifyGraphTokenForBuild, GraphTokenResponse, HasHeaders, } from '../lib/graph.js';
export { NetlifySecrets } from '../lib/secrets_helper.js';

@@ -1,6 +0,6 @@

export declare type GraphTokenResponseError = {
export type GraphTokenResponseError = {
type: 'missing-event-in-function' | 'provided-event-in-build';
message: string;
};
export declare type GraphTokenResponse = {
export type GraphTokenResponse = {
errors?: GraphTokenResponseError[];

@@ -7,0 +7,0 @@ token?: string | null;

@@ -11,3 +11,3 @@ import { Context as HandlerContext, Context } from '../function/context.js';

}
export declare type HandlerWithSecrets = BaseHandler<Response, ContextWithSecrets>;
export type HandlerWithSecrets = BaseHandler<Response, ContextWithSecrets>;
export declare const withSecrets: (handler: BaseHandler<Response, ContextWithSecrets>) => (event: HandlerEvent, context: HandlerContext, callback: HandlerCallback<Response>) => Promise<void | Response>;

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

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -31,0 +31,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -8,3 +8,3 @@ import { HasHeaders } from './graph_token.js';

};
export declare type Service = {
export type Service = {
friendlyServiceName: string;

@@ -27,6 +27,6 @@ service: string;

};
export declare type Services = typeof services;
export declare type ServiceKey = keyof Services;
export declare type ServiceTokens = Service;
export declare type NetlifySecrets = {
export type Services = typeof services;
export type ServiceKey = keyof Services;
export type ServiceTokens = Service;
export type NetlifySecrets = {
[K in ServiceKey]?: Service;

@@ -33,0 +33,0 @@ } & {

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

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -31,0 +31,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -5,3 +5,3 @@ {

"types": "./dist/main.d.ts",
"version": "1.3.0",
"version": "1.4.0",
"description": "JavaScript utilities for Netlify Functions",

@@ -59,5 +59,5 @@ "files": [

"devDependencies": {
"@commitlint/cli": "^13.0.0",
"@commitlint/config-conventional": "^13.0.0",
"@netlify/eslint-config-node": "^7.0.0",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@netlify/eslint-config-node": "^7.0.1",
"ava": "^2.4.0",

@@ -67,3 +67,3 @@ "husky": "^7.0.4",

"nyc": "^15.0.0",
"tsd": "^0.24.1",
"tsd": "^0.25.0",
"typescript": "^4.4.4"

@@ -70,0 +70,0 @@ },

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