netlify-cli 24.11.2 → 25.0.0
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/dist/commands/functions/functions-create.d.ts.map +1 -1
- package/dist/commands/functions/functions-create.js +1 -6
- package/dist/commands/functions/functions-create.js.map +1 -1
- package/dist/commands/logs/index.d.ts +0 -2
- package/dist/commands/logs/index.d.ts.map +1 -1
- package/dist/commands/logs/index.js +95 -29
- package/dist/commands/logs/index.js.map +1 -1
- package/dist/commands/logs/log-api.d.ts +64 -0
- package/dist/commands/logs/log-api.d.ts.map +1 -0
- package/dist/commands/logs/log-api.js +200 -0
- package/dist/commands/logs/log-api.js.map +1 -0
- package/dist/commands/logs/logs.d.ts +4 -0
- package/dist/commands/logs/logs.d.ts.map +1 -0
- package/dist/commands/logs/logs.js +302 -0
- package/dist/commands/logs/logs.js.map +1 -0
- package/dist/commands/logs/sources/deploy.d.ts +13 -0
- package/dist/commands/logs/sources/deploy.d.ts.map +1 -0
- package/dist/commands/logs/sources/deploy.js +71 -0
- package/dist/commands/logs/sources/deploy.js.map +1 -0
- package/dist/commands/logs/sources/edge-functions.d.ts +17 -0
- package/dist/commands/logs/sources/edge-functions.d.ts.map +1 -0
- package/dist/commands/logs/sources/edge-functions.js +71 -0
- package/dist/commands/logs/sources/edge-functions.js.map +1 -0
- package/dist/commands/logs/sources/functions.d.ts +22 -0
- package/dist/commands/logs/sources/functions.d.ts.map +1 -0
- package/dist/commands/logs/sources/functions.js +75 -0
- package/dist/commands/logs/sources/functions.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +72 -9
- package/scripts/netlifyPackage.js +2 -26
- package/dist/commands/logs/functions.d.ts +0 -4
- package/dist/commands/logs/functions.d.ts.map +0 -1
- package/dist/commands/logs/functions.js +0 -79
- package/dist/commands/logs/functions.js.map +0 -1
- package/functions-templates/go/hello-world/.netlify-function-template.mjs +0 -6
- package/functions-templates/go/hello-world/go.mod +0 -5
- package/functions-templates/go/hello-world/go.sum +0 -22
- package/functions-templates/go/hello-world/main.go +0 -24
- package/functions-templates/rust/hello-world/.netlify-function-template.mjs +0 -6
- package/functions-templates/rust/hello-world/Cargo.lock +0 -1149
- package/functions-templates/rust/hello-world/Cargo.toml +0 -14
- package/functions-templates/rust/hello-world/src/main.rs +0 -29
- package/npm-shrinkwrap.json +0 -13400
- package/scripts/prepublishOnly.js +0 -29
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
edition = "2018"
|
|
3
|
-
name = "{{name}}"
|
|
4
|
-
version = "0.1.0"
|
|
5
|
-
|
|
6
|
-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
7
|
-
|
|
8
|
-
[dependencies]
|
|
9
|
-
aws_lambda_events = "0.18.0"
|
|
10
|
-
http = "0.2.9"
|
|
11
|
-
lambda_runtime = "0.14.0"
|
|
12
|
-
log = "0.4.17"
|
|
13
|
-
simple_logger = "1.16.0"
|
|
14
|
-
tokio = "1.38.2"
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
use aws_lambda_events::event::apigw::{ApiGatewayProxyRequest, ApiGatewayProxyResponse};
|
|
2
|
-
use aws_lambda_events::encodings::Body;
|
|
3
|
-
use http::header::HeaderMap;
|
|
4
|
-
use lambda_runtime::{service_fn, Error, LambdaEvent};
|
|
5
|
-
use log::LevelFilter;
|
|
6
|
-
use simple_logger::SimpleLogger;
|
|
7
|
-
|
|
8
|
-
#[tokio::main]
|
|
9
|
-
async fn main() -> Result<(), Error> {
|
|
10
|
-
SimpleLogger::new().with_utc_timestamps().with_level(LevelFilter::Info).init().unwrap();
|
|
11
|
-
|
|
12
|
-
let func = service_fn(my_handler);
|
|
13
|
-
lambda_runtime::run(func).await?;
|
|
14
|
-
Ok(())
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
pub(crate) async fn my_handler(event: LambdaEvent<ApiGatewayProxyRequest>) -> Result<ApiGatewayProxyResponse, Error> {
|
|
18
|
-
let path = event.payload.path.unwrap();
|
|
19
|
-
|
|
20
|
-
let resp = ApiGatewayProxyResponse {
|
|
21
|
-
status_code: 200,
|
|
22
|
-
headers: HeaderMap::new(),
|
|
23
|
-
multi_value_headers: HeaderMap::new(),
|
|
24
|
-
body: Some(Body::Text(format!("Hello from '{}'", path))),
|
|
25
|
-
is_base64_encoded: Some(false),
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
Ok(resp)
|
|
29
|
-
}
|