Socket
Socket
Sign inDemoInstall

@google-cloud/functions-framework

Package Overview
Dependencies
141
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.0 to 3.2.1

23

build/src/loader.js

@@ -80,3 +80,5 @@ "use strict";

if (functionModulePath === null) {
console.error('Provided code is not a loadable module.');
console.error(`Provided code location '${codeLocation}' is not a loadable module.` +
'\nDid you specify the correct location for the module defining ' +
'your function?');
return null;

@@ -152,17 +154,16 @@ }

function getFunctionModulePath(codeLocation) {
let path = null;
try {
path = require.resolve(codeLocation);
return require.resolve(codeLocation);
}
catch (ex) {
try {
// TODO: Decide if we want to keep this fallback.
path = require.resolve(codeLocation + '/function.js');
}
catch (ex) {
return path;
}
// Ignore exception, this means the function was not found here.
}
return path;
try {
return require.resolve(codeLocation + '/function.js');
}
catch (ex) {
// Ignore exception, this means the function was not found here.
}
return null;
}
//# sourceMappingURL=loader.js.map
{
"name": "@google-cloud/functions-framework",
"version": "3.2.0",
"version": "3.2.1",
"description": "FaaS (Function as a service) framework for writing portable Node.js functions",

@@ -24,3 +24,3 @@ "engines": {

"body-parser": "^1.18.3",
"cloudevents": "^6.0.0",
"cloudevents": "^7.0.0",
"express": "^4.16.4",

@@ -60,3 +60,3 @@ "minimist": "^1.2.7",

"@types/mocha": "9.1.1",
"@types/node": "14.18.37",
"@types/node": "14.18.43",
"@types/on-finished": "2.3.1",

@@ -71,4 +71,4 @@ "@types/semver": "^7.3.6",

"supertest": "6.3.3",
"typescript": "4.9.5"
"typescript": "5.0.4"
}
}

@@ -5,3 +5,3 @@ # Functions Framework for Node.js

[![Node unit CI][ff_node_unit_img]][ff_node_unit_link] [![Node lint CI][ff_node_lint_img]][ff_node_lint_link] [![Node conformace CI][ff_node_conformance_img]][ff_node_conformance_link]
[![Node unit CI][ff_node_unit_img]][ff_node_unit_link] [![Node lint CI][ff_node_lint_img]][ff_node_lint_link] [![Node conformace CI][ff_node_conformance_img]][ff_node_conformance_link] ![Security Scorecard](https://api.securityscorecards.dev/projects/github.com/GoogleCloudPlatform/functions-framework-nodejs/badge)

@@ -8,0 +8,0 @@ An open source FaaS (Function as a Service) framework based on [Express](https://expressjs.com/)

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