@netlify/functions
Advanced tools
Comparing version 0.7.3-handle-secrets.2 to 0.7.3-streaming.0
@@ -5,3 +5,3 @@ { | ||
"types": "./src/main.d.ts", | ||
"version": "0.7.3-handle-secrets.2", | ||
"version": "0.7.3-streaming.0", | ||
"description": "JavaScript utilities for Netlify Functions", | ||
@@ -11,3 +11,2 @@ "files": [ | ||
"src/**/*.ts", | ||
"src/**/*.json", | ||
"!src/**/*.test.js" | ||
@@ -63,4 +62,3 @@ ], | ||
"@commitlint/config-conventional": "^13.0.0", | ||
"@netlify/eslint-config-node": "^3.1.9", | ||
"@typescript-eslint/eslint-plugin": "^4.28.5", | ||
"@netlify/eslint-config-node": "^3.2.10", | ||
"ava": "^2.4.0", | ||
@@ -67,0 +65,0 @@ "husky": "^4.3.8", |
@@ -9,4 +9,4 @@ import type { Context } from './context' | ||
export interface Handler<C extends Context> { | ||
(event: Event, context: C, callback: HandlerCallback): void | Response | Promise<Response> | ||
export interface Handler { | ||
(event: Event, context: Context, callback: HandlerCallback): void | Response | Promise<Response> | ||
} |
@@ -1,8 +0,7 @@ | ||
import { Context } from '../function/context' | ||
import { Handler } from '../function/handler' | ||
export interface Builder { | ||
<C extends Context = Context>(handler: Handler<C>): Handler<C> | ||
(handler: Handler): Handler | ||
} | ||
export declare const builder: Builder |
@@ -5,3 +5,2 @@ const BUILDER_FUNCTIONS_FLAG = true | ||
const METADATA_VERSION = 1 | ||
const ONEGRAPH_AUTHLIFY_APP_ID = '4d3de9a5-722f-4d27-9c96-2ac43c93c004' | ||
@@ -13,3 +12,2 @@ module.exports = { | ||
METADATA_VERSION, | ||
ONEGRAPH_AUTHLIFY_APP_ID, | ||
} |
export * from './lib/builder' | ||
export * from './function' | ||
export * from './lib/secrets' | ||
export * from './lib/streamer' |
const { builder } = require('./lib/builder') | ||
const { withSecrets, getSecrets } = require('./lib/secrets') | ||
const { streamer } = require('./lib/streamer') | ||
module.exports = { builder, withSecrets, getSecrets } | ||
module.exports = { builder, streamer } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
6
16
1
13558
252