azure-functions-cli 1.0.0-beta.93 → 5.0.0-preview.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +263 -156
- package/lib/copy-metadata.js +9 -0
- package/lib/install.js +151 -0
- package/lib/main.js +42 -26
- package/npm-shrinkwrap.json +97 -0
- package/package.json +40 -20
- package/assets/azure-functions-logo-color-raster.png +0 -0
- package/bin/ARMClient.Authentication.dll +0 -0
- package/bin/ARMClient.Library.dll +0 -0
- package/bin/Autofac.Integration.WebApi.dll +0 -0
- package/bin/Autofac.dll +0 -0
- package/bin/Colors.Net.dll +0 -0
- package/bin/DocumentDB.Spatial.Sql.dll +0 -0
- package/bin/EdgeJs.dll +0 -0
- package/bin/FSharp.Compiler.Service.MSBuild.v12.dll +0 -0
- package/bin/FSharp.Compiler.Service.dll +0 -0
- package/bin/FSharp.Core.dll +0 -0
- package/bin/FluentCommandLineParser.dll +0 -0
- package/bin/Humanizer.dll +0 -0
- package/bin/Ignite.SharpNetSH.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Common.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Azure.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Bitbucket.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Dropbox.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.DynamicsCRM.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Generic.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.GitHub.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Instagram.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.MailChimp.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Pusher.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Salesforce.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Slack.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Stripe.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.Trello.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.WordPress.dll +0 -0
- package/bin/Microsoft.AspNet.WebHooks.Receivers.dll +0 -0
- package/bin/Microsoft.AspNetCore.Cryptography.Internal.dll +0 -0
- package/bin/Microsoft.AspNetCore.DataProtection.Abstractions.dll +0 -0
- package/bin/Microsoft.AspNetCore.DataProtection.dll +0 -0
- package/bin/Microsoft.AspNetCore.Hosting.Abstractions.dll +0 -0
- package/bin/Microsoft.AspNetCore.Hosting.Server.Abstractions.dll +0 -0
- package/bin/Microsoft.AspNetCore.Http.Abstractions.dll +0 -0
- package/bin/Microsoft.AspNetCore.Http.Features.dll +0 -0
- package/bin/Microsoft.AspNetCore.WebUtilities.dll +0 -0
- package/bin/Microsoft.Azure.ApiHub.Sdk.dll +0 -0
- package/bin/Microsoft.Azure.Documents.Client.dll +0 -0
- package/bin/Microsoft.Azure.Documents.ServiceInterop.dll +0 -0
- package/bin/Microsoft.Azure.KeyVault.Core.dll +0 -0
- package/bin/Microsoft.Azure.NotificationHubs.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.ApiHub.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.BotFramework.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.DocumentDB.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.MobileApps.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.NotificationHubs.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.SendGrid.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.Twilio.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Extensions.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Host.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Logging.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Script.Extensibility.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Script.WebHost.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.Script.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.ServiceBus.dll +0 -0
- package/bin/Microsoft.Azure.WebJobs.dll +0 -0
- package/bin/Microsoft.Azure.WebSites.DataProtection.dll +0 -0
- package/bin/Microsoft.Bot.Connector.DirectLine.dll +0 -0
- package/bin/Microsoft.CodeAnalysis.CSharp.Scripting.dll +0 -0
- package/bin/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/bin/Microsoft.CodeAnalysis.Scripting.dll +0 -0
- package/bin/Microsoft.CodeAnalysis.dll +0 -0
- package/bin/Microsoft.Data.Edm.dll +0 -0
- package/bin/Microsoft.Data.OData.dll +0 -0
- package/bin/Microsoft.Data.Services.Client.dll +0 -0
- package/bin/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/bin/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/bin/Microsoft.Extensions.Options.dll +0 -0
- package/bin/Microsoft.Extensions.Primitives.dll +0 -0
- package/bin/Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll +0 -0
- package/bin/Microsoft.IdentityModel.Clients.ActiveDirectory.dll +0 -0
- package/bin/Microsoft.Rest.ClientRuntime.dll +0 -0
- package/bin/Microsoft.ServiceBus.Messaging.EventProcessorHost.dll +0 -0
- package/bin/Microsoft.ServiceBus.dll +0 -0
- package/bin/Microsoft.WindowsAzure.Configuration.dll +0 -0
- package/bin/Microsoft.WindowsAzure.Mobile.Ext.dll +0 -0
- package/bin/Microsoft.WindowsAzure.Mobile.dll +0 -0
- package/bin/Microsoft.WindowsAzure.Storage.dll +0 -0
- package/bin/NCrontab.dll +0 -0
- package/bin/Newtonsoft.Json.dll +0 -0
- package/bin/NuGet.Frameworks.dll +0 -0
- package/bin/NuGet.LibraryModel.dll +0 -0
- package/bin/NuGet.Versioning.dll +0 -0
- package/bin/NuGet.exe +0 -0
- package/bin/RestSharp.dll +0 -0
- package/bin/SendGrid.CSharp.HTTP.Client.dll +0 -0
- package/bin/SendGrid.SmtpApi.dll +0 -0
- package/bin/SendGrid.dll +0 -0
- package/bin/System.AppContext.dll +0 -0
- package/bin/System.Buffers.dll +0 -0
- package/bin/System.Collections.Immutable.dll +0 -0
- package/bin/System.Console.dll +0 -0
- package/bin/System.Diagnostics.FileVersionInfo.dll +0 -0
- package/bin/System.Diagnostics.StackTrace.dll +0 -0
- package/bin/System.IO.Abstractions.dll +0 -0
- package/bin/System.IO.FileSystem.Primitives.dll +0 -0
- package/bin/System.IO.FileSystem.dll +0 -0
- package/bin/System.Net.Http.Extensions.dll +0 -0
- package/bin/System.Net.Http.Formatting.dll +0 -0
- package/bin/System.Net.Http.Primitives.dll +0 -0
- package/bin/System.Reflection.Metadata.dll +0 -0
- package/bin/System.Security.Cryptography.Algorithms.dll +0 -0
- package/bin/System.Security.Cryptography.Encoding.dll +0 -0
- package/bin/System.Security.Cryptography.Primitives.dll +0 -0
- package/bin/System.Security.Cryptography.X509Certificates.dll +0 -0
- package/bin/System.Spatial.dll +0 -0
- package/bin/System.Text.Encoding.CodePages.dll +0 -0
- package/bin/System.Text.Encodings.Web.dll +0 -0
- package/bin/System.Threading.Tasks.Dataflow.dll +0 -0
- package/bin/System.Threading.Thread.dll +0 -0
- package/bin/System.ValueTuple.dll +0 -0
- package/bin/System.Web.Cors.dll +0 -0
- package/bin/System.Web.Http.Cors.dll +0 -0
- package/bin/System.Web.Http.SelfHost.dll +0 -0
- package/bin/System.Web.Http.WebHost.dll +0 -0
- package/bin/System.Web.Http.dll +0 -0
- package/bin/System.Xml.XPath.XDocument.dll +0 -0
- package/bin/System.Xml.XPath.dll +0 -0
- package/bin/System.Xml.XmlDocument.dll +0 -0
- package/bin/Twilio.Api.dll +0 -0
- package/bin/azurefunctions/functions.js +0 -129
- package/bin/azurefunctions/http/request.js +0 -8
- package/bin/azurefunctions/http/response.js +0 -78
- package/bin/edge/double_edge.js +0 -49
- package/bin/edge/edge.js +0 -172
- package/bin/edge/x64/edge_nativeclr.node +0 -0
- package/bin/edge/x64/node.dll +0 -0
- package/bin/edge/x86/edge_nativeclr.node +0 -0
- package/bin/edge/x86/node.dll +0 -0
- package/bin/func.exe +0 -0
- package/bin/func.exe.config +0 -96
package/lib/main.js
CHANGED
|
@@ -1,26 +1,42 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawn, spawnSync } = require('child_process');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
const packageRoot = path.resolve(__dirname, '..');
|
|
8
|
+
const executable = path.join(packageRoot, 'bin', process.platform === 'win32' ? 'func.exe' : 'func');
|
|
9
|
+
|
|
10
|
+
if (!fs.existsSync(executable)) {
|
|
11
|
+
console.log('Azure Functions CLI binary not found. Running first-time setup...');
|
|
12
|
+
const result = spawnSync(process.execPath, [path.join(__dirname, 'install.js')], { stdio: 'inherit' });
|
|
13
|
+
if (result.status !== 0) {
|
|
14
|
+
process.exit(result.status || 1);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const child = spawn(executable, process.argv.slice(2), {
|
|
19
|
+
stdio: 'inherit'
|
|
20
|
+
});
|
|
21
|
+
const handleSigint = () => {};
|
|
22
|
+
const handleSigterm = () => child.kill('SIGTERM');
|
|
23
|
+
|
|
24
|
+
process.on('SIGINT', handleSigint);
|
|
25
|
+
process.on('SIGTERM', handleSigterm);
|
|
26
|
+
|
|
27
|
+
child.on('error', error => {
|
|
28
|
+
console.error(`Failed to start Azure Functions CLI: ${error.message}`);
|
|
29
|
+
process.exitCode = 1;
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
child.on('exit', (code, signal) => {
|
|
33
|
+
process.off('SIGINT', handleSigint);
|
|
34
|
+
process.off('SIGTERM', handleSigterm);
|
|
35
|
+
|
|
36
|
+
if (signal) {
|
|
37
|
+
process.kill(process.pid, signal);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
process.exitCode = code ?? 1;
|
|
42
|
+
});
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "azure-functions-cli",
|
|
3
|
+
"version": "5.0.0-preview.5",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "azure-functions-cli",
|
|
9
|
+
"version": "5.0.0-preview.5",
|
|
10
|
+
"hasInstallScript": true,
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"os": [
|
|
13
|
+
"win32",
|
|
14
|
+
"darwin",
|
|
15
|
+
"linux"
|
|
16
|
+
],
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"https-proxy-agent": "^7.0.6",
|
|
19
|
+
"progress": "2.0.3",
|
|
20
|
+
"yauzl": "^3.2.0"
|
|
21
|
+
},
|
|
22
|
+
"bin": {
|
|
23
|
+
"azfun": "lib/main.js",
|
|
24
|
+
"azurefunctions": "lib/main.js",
|
|
25
|
+
"func": "lib/main.js"
|
|
26
|
+
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=22"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"node_modules/agent-base": {
|
|
32
|
+
"version": "7.1.4",
|
|
33
|
+
"integrity": "sha1-48121MVI7oldPD/Y3B9sW5Ay56g=",
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">= 14"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"node_modules/debug": {
|
|
40
|
+
"version": "4.4.3",
|
|
41
|
+
"integrity": "sha1-xq5DLZvZZiWC/OCHCbA4xY6ePWo=",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"ms": "^2.1.3"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=6.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependenciesMeta": {
|
|
50
|
+
"supports-color": {
|
|
51
|
+
"optional": true
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"node_modules/https-proxy-agent": {
|
|
56
|
+
"version": "7.0.6",
|
|
57
|
+
"integrity": "sha1-2o3+rH2hMLBcK6S1nJts1mYRprk=",
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"agent-base": "^7.1.2",
|
|
61
|
+
"debug": "4"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">= 14"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"node_modules/ms": {
|
|
68
|
+
"version": "2.1.3",
|
|
69
|
+
"integrity": "sha1-V0yBOM4dK1hh8LRFedut1gxmFbI=",
|
|
70
|
+
"license": "MIT"
|
|
71
|
+
},
|
|
72
|
+
"node_modules/pend": {
|
|
73
|
+
"version": "1.2.0",
|
|
74
|
+
"integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
|
|
75
|
+
"license": "MIT"
|
|
76
|
+
},
|
|
77
|
+
"node_modules/progress": {
|
|
78
|
+
"version": "2.0.3",
|
|
79
|
+
"integrity": "sha1-foz42PW48jnBvGi+tOt4Vn1XLvg=",
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=0.4.0"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"node_modules/yauzl": {
|
|
86
|
+
"version": "3.4.0",
|
|
87
|
+
"integrity": "sha1-iLKiFFXzfKfczy7rM7rLQ5IyJxk=",
|
|
88
|
+
"license": "MIT",
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"pend": "~1.2.0"
|
|
91
|
+
},
|
|
92
|
+
"engines": {
|
|
93
|
+
"node": ">=12"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "azure-functions-cli",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Azure Functions
|
|
5
|
-
"scripts": {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "azure-functions-cli",
|
|
3
|
+
"version": "5.0.0-preview.5",
|
|
4
|
+
"description": "Azure Functions CLI",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"postinstall": "node lib/install.js",
|
|
7
|
+
"prepack": "node lib/copy-metadata.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "Microsoft",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"preferGlobal": true,
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/Azure/azure-functions-core-tools.git"
|
|
15
|
+
},
|
|
16
|
+
"bin": {
|
|
17
|
+
"func": "lib/main.js",
|
|
18
|
+
"azfun": "lib/main.js",
|
|
19
|
+
"azurefunctions": "lib/main.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"lib",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"npm-shrinkwrap.json",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"os": [
|
|
28
|
+
"win32",
|
|
29
|
+
"darwin",
|
|
30
|
+
"linux"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=22"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"https-proxy-agent": "^7.0.6",
|
|
37
|
+
"progress": "2.0.3",
|
|
38
|
+
"yauzl": "^3.2.0"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/Autofac.dll
DELETED
|
Binary file
|
package/bin/Colors.Net.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/EdgeJs.dll
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/FSharp.Core.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/Humanizer.dll
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/NCrontab.dll
DELETED
|
Binary file
|
package/bin/Newtonsoft.Json.dll
DELETED
|
Binary file
|
package/bin/NuGet.Frameworks.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/NuGet.Versioning.dll
DELETED
|
Binary file
|
package/bin/NuGet.exe
DELETED
|
Binary file
|
package/bin/RestSharp.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/SendGrid.SmtpApi.dll
DELETED
|
Binary file
|
package/bin/SendGrid.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/System.Buffers.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/System.Console.dll
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/System.Spatial.dll
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/System.Web.Cors.dll
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/System.Web.Http.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/System.Xml.XPath.dll
DELETED
|
Binary file
|
|
Binary file
|
package/bin/Twilio.Api.dll
DELETED
|
Binary file
|