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

fc-run

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fc-run - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

15

fc-run.js

@@ -42,11 +42,11 @@ var chalk = require('chalk');

func.handler(JSON.stringify(data), {}, function(error, data) {
func.handler(wrapData(data), {}, function(error, data) {
var now = new Date();
var rtn = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate() + ' ' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds();
if (error) {
rtn += '【error】';
rtn += '[error]';
} else {
rtn += '【info】';
rtn += '[info]';
}
rtn += '函数运行结果:';
rtn += '函数运行结果:';
console.log(rtn);

@@ -57,2 +57,9 @@ log(error || data);

const wrapData = function (data) {
data.toString = function () {
return JSON.stringify(data);
}
return data;
}
exports.run = run;
{
"name": "fc-run",
"version": "1.0.6",
"version": "1.0.7",
"description": "a boot tool for ali function-compute proj",

@@ -5,0 +5,0 @@ "main": "fc-run.js",

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