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

@google-cloud/functions-framework

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

@google-cloud/functions-framework - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

11

build/src/index.js

@@ -38,2 +38,3 @@ #!/usr/bin/env node

SOURCE: 'source',
DRY_RUN: 'dry-run',
};

@@ -46,2 +47,3 @@ // Supported environment variables

SOURCE: 'FUNCTION_SOURCE',
DRY_RUN: 'DRY_RUN',
};

@@ -53,3 +55,3 @@ var NodeEnv;

const argv = minimist(process.argv, {
string: [FLAG.PORT, FLAG.TARGET, FLAG.SIGNATURE_TYPE],
string: [FLAG.PORT, FLAG.TARGET, FLAG.SIGNATURE_TYPE, FLAG.DRY_RUN],
});

@@ -65,2 +67,3 @@ const CODE_LOCATION = path_1.resolve(argv[FLAG.SOURCE] || process.env[ENV.SOURCE] || '');

}
const DRY_RUN = argv[FLAG.DRY_RUN] || process.env[ENV.DRY_RUN] || false;
// CLI Help Flag

@@ -81,2 +84,8 @@ if (process.argv[2] === '-h' || process.argv[2] === '--help') {

const ERROR_HANDLER = new invoker_1.ErrorHandler(SERVER);
if (DRY_RUN) {
console.log(`Function: ${TARGET}`);
console.log(`URL: http://localhost:${PORT}/`);
console.log('Dry run successful, shutting down.');
process.exit(0);
}
SERVER.listen(PORT, () => {

@@ -83,0 +92,0 @@ ERROR_HANDLER.register();

@@ -7,2 +7,23 @@ # Changelog

## v1.4.0
01-30-2020 11:54 PST
### Implementation Changes
### New Features
- feat: add --dry-run option to load user's function but not start a server ([#118](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/118))
### Dependencies
### Documentation
- docs: Remove beta from gcloud run ([#114](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/114))
- Update README.md ([#115](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/115))
- docs: update pub sub docs with instructions that work ([#109](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/109))
- Fix double quotation from full-width character ([#107](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/107))
- docs: add video about FF ([#102](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/102))
- Changed curl command to include json content-type ([#100](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/pull/100))
### Internal / Testing Changes
## v1.3.2

@@ -9,0 +30,0 @@

2

package.json
{
"name": "@google-cloud/functions-framework",
"version": "1.3.2",
"version": "1.4.0",
"description": "FaaS (Function as a service) framework for writing portable Node.js functions",

@@ -5,0 +5,0 @@ "engines": {

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

# Functions Framework for Node.js [![Build Status](https://travis-ci.com/GoogleCloudPlatform/functions-framework-nodejs.svg?branch=master)](https://travis-ci.com/GoogleCloudPlatform/functions-framework-nodejs) [![npm version](https://img.shields.io/npm/v/@google-cloud/functions-framework.svg)](https://www.npmjs.com/package/@google-cloud/functions-framework)
# Functions Framework for Node.js [![Build Status](https://travis-ci.com/GoogleCloudPlatform/functions-framework-nodejs.svg?branch=master)](https://travis-ci.com/GoogleCloudPlatform/functions-framework-nodejs) [![npm version](https://img.shields.io/npm/v/@google-cloud/functions-framework.svg)](https://www.npmjs.com/package/@google-cloud/functions-framework) [![npm downloads](https://img.shields.io/npm/dm/@google-cloud/functions-framework.svg)](https://npmcharts.com/compare/@google-cloud/functions-framework?minimal=true)

@@ -32,2 +32,4 @@ An open source FaaS (Function as a service) framework for writing portable

> Watch [this video](https://youtu.be/yMEcyAkTliU?t=912) to learn more about the Node Functions Framework.
# Features

@@ -34,0 +36,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