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.
Files changed (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +263 -156
  3. package/lib/copy-metadata.js +9 -0
  4. package/lib/install.js +151 -0
  5. package/lib/main.js +42 -26
  6. package/npm-shrinkwrap.json +97 -0
  7. package/package.json +40 -20
  8. package/assets/azure-functions-logo-color-raster.png +0 -0
  9. package/bin/ARMClient.Authentication.dll +0 -0
  10. package/bin/ARMClient.Library.dll +0 -0
  11. package/bin/Autofac.Integration.WebApi.dll +0 -0
  12. package/bin/Autofac.dll +0 -0
  13. package/bin/Colors.Net.dll +0 -0
  14. package/bin/DocumentDB.Spatial.Sql.dll +0 -0
  15. package/bin/EdgeJs.dll +0 -0
  16. package/bin/FSharp.Compiler.Service.MSBuild.v12.dll +0 -0
  17. package/bin/FSharp.Compiler.Service.dll +0 -0
  18. package/bin/FSharp.Core.dll +0 -0
  19. package/bin/FluentCommandLineParser.dll +0 -0
  20. package/bin/Humanizer.dll +0 -0
  21. package/bin/Ignite.SharpNetSH.dll +0 -0
  22. package/bin/Microsoft.AspNet.WebHooks.Common.dll +0 -0
  23. package/bin/Microsoft.AspNet.WebHooks.Receivers.Azure.dll +0 -0
  24. package/bin/Microsoft.AspNet.WebHooks.Receivers.Bitbucket.dll +0 -0
  25. package/bin/Microsoft.AspNet.WebHooks.Receivers.Dropbox.dll +0 -0
  26. package/bin/Microsoft.AspNet.WebHooks.Receivers.DynamicsCRM.dll +0 -0
  27. package/bin/Microsoft.AspNet.WebHooks.Receivers.Generic.dll +0 -0
  28. package/bin/Microsoft.AspNet.WebHooks.Receivers.GitHub.dll +0 -0
  29. package/bin/Microsoft.AspNet.WebHooks.Receivers.Instagram.dll +0 -0
  30. package/bin/Microsoft.AspNet.WebHooks.Receivers.MailChimp.dll +0 -0
  31. package/bin/Microsoft.AspNet.WebHooks.Receivers.Pusher.dll +0 -0
  32. package/bin/Microsoft.AspNet.WebHooks.Receivers.Salesforce.dll +0 -0
  33. package/bin/Microsoft.AspNet.WebHooks.Receivers.Slack.dll +0 -0
  34. package/bin/Microsoft.AspNet.WebHooks.Receivers.Stripe.dll +0 -0
  35. package/bin/Microsoft.AspNet.WebHooks.Receivers.Trello.dll +0 -0
  36. package/bin/Microsoft.AspNet.WebHooks.Receivers.WordPress.dll +0 -0
  37. package/bin/Microsoft.AspNet.WebHooks.Receivers.dll +0 -0
  38. package/bin/Microsoft.AspNetCore.Cryptography.Internal.dll +0 -0
  39. package/bin/Microsoft.AspNetCore.DataProtection.Abstractions.dll +0 -0
  40. package/bin/Microsoft.AspNetCore.DataProtection.dll +0 -0
  41. package/bin/Microsoft.AspNetCore.Hosting.Abstractions.dll +0 -0
  42. package/bin/Microsoft.AspNetCore.Hosting.Server.Abstractions.dll +0 -0
  43. package/bin/Microsoft.AspNetCore.Http.Abstractions.dll +0 -0
  44. package/bin/Microsoft.AspNetCore.Http.Features.dll +0 -0
  45. package/bin/Microsoft.AspNetCore.WebUtilities.dll +0 -0
  46. package/bin/Microsoft.Azure.ApiHub.Sdk.dll +0 -0
  47. package/bin/Microsoft.Azure.Documents.Client.dll +0 -0
  48. package/bin/Microsoft.Azure.Documents.ServiceInterop.dll +0 -0
  49. package/bin/Microsoft.Azure.KeyVault.Core.dll +0 -0
  50. package/bin/Microsoft.Azure.NotificationHubs.dll +0 -0
  51. package/bin/Microsoft.Azure.WebJobs.Extensions.ApiHub.dll +0 -0
  52. package/bin/Microsoft.Azure.WebJobs.Extensions.BotFramework.dll +0 -0
  53. package/bin/Microsoft.Azure.WebJobs.Extensions.DocumentDB.dll +0 -0
  54. package/bin/Microsoft.Azure.WebJobs.Extensions.MobileApps.dll +0 -0
  55. package/bin/Microsoft.Azure.WebJobs.Extensions.NotificationHubs.dll +0 -0
  56. package/bin/Microsoft.Azure.WebJobs.Extensions.SendGrid.dll +0 -0
  57. package/bin/Microsoft.Azure.WebJobs.Extensions.Twilio.dll +0 -0
  58. package/bin/Microsoft.Azure.WebJobs.Extensions.dll +0 -0
  59. package/bin/Microsoft.Azure.WebJobs.Host.dll +0 -0
  60. package/bin/Microsoft.Azure.WebJobs.Logging.dll +0 -0
  61. package/bin/Microsoft.Azure.WebJobs.Script.Extensibility.dll +0 -0
  62. package/bin/Microsoft.Azure.WebJobs.Script.WebHost.dll +0 -0
  63. package/bin/Microsoft.Azure.WebJobs.Script.dll +0 -0
  64. package/bin/Microsoft.Azure.WebJobs.ServiceBus.dll +0 -0
  65. package/bin/Microsoft.Azure.WebJobs.dll +0 -0
  66. package/bin/Microsoft.Azure.WebSites.DataProtection.dll +0 -0
  67. package/bin/Microsoft.Bot.Connector.DirectLine.dll +0 -0
  68. package/bin/Microsoft.CodeAnalysis.CSharp.Scripting.dll +0 -0
  69. package/bin/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  70. package/bin/Microsoft.CodeAnalysis.Scripting.dll +0 -0
  71. package/bin/Microsoft.CodeAnalysis.dll +0 -0
  72. package/bin/Microsoft.Data.Edm.dll +0 -0
  73. package/bin/Microsoft.Data.OData.dll +0 -0
  74. package/bin/Microsoft.Data.Services.Client.dll +0 -0
  75. package/bin/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
  76. package/bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  77. package/bin/Microsoft.Extensions.DependencyInjection.dll +0 -0
  78. package/bin/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
  79. package/bin/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  80. package/bin/Microsoft.Extensions.Options.dll +0 -0
  81. package/bin/Microsoft.Extensions.Primitives.dll +0 -0
  82. package/bin/Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll +0 -0
  83. package/bin/Microsoft.IdentityModel.Clients.ActiveDirectory.dll +0 -0
  84. package/bin/Microsoft.Rest.ClientRuntime.dll +0 -0
  85. package/bin/Microsoft.ServiceBus.Messaging.EventProcessorHost.dll +0 -0
  86. package/bin/Microsoft.ServiceBus.dll +0 -0
  87. package/bin/Microsoft.WindowsAzure.Configuration.dll +0 -0
  88. package/bin/Microsoft.WindowsAzure.Mobile.Ext.dll +0 -0
  89. package/bin/Microsoft.WindowsAzure.Mobile.dll +0 -0
  90. package/bin/Microsoft.WindowsAzure.Storage.dll +0 -0
  91. package/bin/NCrontab.dll +0 -0
  92. package/bin/Newtonsoft.Json.dll +0 -0
  93. package/bin/NuGet.Frameworks.dll +0 -0
  94. package/bin/NuGet.LibraryModel.dll +0 -0
  95. package/bin/NuGet.Versioning.dll +0 -0
  96. package/bin/NuGet.exe +0 -0
  97. package/bin/RestSharp.dll +0 -0
  98. package/bin/SendGrid.CSharp.HTTP.Client.dll +0 -0
  99. package/bin/SendGrid.SmtpApi.dll +0 -0
  100. package/bin/SendGrid.dll +0 -0
  101. package/bin/System.AppContext.dll +0 -0
  102. package/bin/System.Buffers.dll +0 -0
  103. package/bin/System.Collections.Immutable.dll +0 -0
  104. package/bin/System.Console.dll +0 -0
  105. package/bin/System.Diagnostics.FileVersionInfo.dll +0 -0
  106. package/bin/System.Diagnostics.StackTrace.dll +0 -0
  107. package/bin/System.IO.Abstractions.dll +0 -0
  108. package/bin/System.IO.FileSystem.Primitives.dll +0 -0
  109. package/bin/System.IO.FileSystem.dll +0 -0
  110. package/bin/System.Net.Http.Extensions.dll +0 -0
  111. package/bin/System.Net.Http.Formatting.dll +0 -0
  112. package/bin/System.Net.Http.Primitives.dll +0 -0
  113. package/bin/System.Reflection.Metadata.dll +0 -0
  114. package/bin/System.Security.Cryptography.Algorithms.dll +0 -0
  115. package/bin/System.Security.Cryptography.Encoding.dll +0 -0
  116. package/bin/System.Security.Cryptography.Primitives.dll +0 -0
  117. package/bin/System.Security.Cryptography.X509Certificates.dll +0 -0
  118. package/bin/System.Spatial.dll +0 -0
  119. package/bin/System.Text.Encoding.CodePages.dll +0 -0
  120. package/bin/System.Text.Encodings.Web.dll +0 -0
  121. package/bin/System.Threading.Tasks.Dataflow.dll +0 -0
  122. package/bin/System.Threading.Thread.dll +0 -0
  123. package/bin/System.ValueTuple.dll +0 -0
  124. package/bin/System.Web.Cors.dll +0 -0
  125. package/bin/System.Web.Http.Cors.dll +0 -0
  126. package/bin/System.Web.Http.SelfHost.dll +0 -0
  127. package/bin/System.Web.Http.WebHost.dll +0 -0
  128. package/bin/System.Web.Http.dll +0 -0
  129. package/bin/System.Xml.XPath.XDocument.dll +0 -0
  130. package/bin/System.Xml.XPath.dll +0 -0
  131. package/bin/System.Xml.XmlDocument.dll +0 -0
  132. package/bin/Twilio.Api.dll +0 -0
  133. package/bin/azurefunctions/functions.js +0 -129
  134. package/bin/azurefunctions/http/request.js +0 -8
  135. package/bin/azurefunctions/http/response.js +0 -78
  136. package/bin/edge/double_edge.js +0 -49
  137. package/bin/edge/edge.js +0 -172
  138. package/bin/edge/x64/edge_nativeclr.node +0 -0
  139. package/bin/edge/x64/node.dll +0 -0
  140. package/bin/edge/x86/edge_nativeclr.node +0 -0
  141. package/bin/edge/x86/node.dll +0 -0
  142. package/bin/func.exe +0 -0
  143. package/bin/func.exe.config +0 -96
package/lib/main.js CHANGED
@@ -1,26 +1,42 @@
1
- #! /usr/bin/env node
2
-
3
- var path = require('path');
4
- var fs = require('fs');
5
- var spawn = require('child_process').spawn;
6
- var fork = require('child_process').fork;
7
- var args = process.argv;
8
-
9
- function main() {
10
- var isWin = /^win/.test(process.platform);
11
- var bin = path.join(path.dirname(fs.realpathSync(__filename)), '../bin');
12
-
13
- if (!isWin) {
14
- var funcProc = spawn("mono " + bin + '/func.exe', args.slice(2), { stdio : [process.stdin, process.stdout, process.stderr, 'pipe']});
15
- funcProc.on('exit', function(code) {
16
- process.exit(code);
17
- });
18
- } else {
19
- var funcProc = spawn(bin + '/func.exe', args.slice(2), { stdio : [process.stdin, process.stdout, process.stderr, 'pipe']});
20
- funcProc.on('exit', function(code) {
21
- process.exit(code);
22
- });
23
- }
24
- }
25
-
26
- main();
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": "1.0.0-beta.93",
4
- "description": "Azure Functions Cli",
5
- "scripts": { },
6
- "author": "Microsoft",
7
- "license": "MIT",
8
- "preferGlobal": true,
9
- "repository" : {
10
- "type" : "git",
11
- "url" : "https://github.com/Azure/azure-functions-cli.git"
12
- },
13
- "bin": {
14
- "func": "lib/main.js",
15
- "azfun": "lib/main.js",
16
- "azurefunctions": "lib/main.js"
17
- },
18
- "os": ["win32"],
19
- "dependencies": {}
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
package/bin/Autofac.dll DELETED
Binary file
Binary file
Binary file
package/bin/EdgeJs.dll DELETED
Binary file
Binary file
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
package/bin/NCrontab.dll DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
package/bin/NuGet.exe DELETED
Binary file
package/bin/RestSharp.dll DELETED
Binary file
Binary file
Binary file
package/bin/SendGrid.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