@naanlang/naan 1.0.2 → 1.0.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.md +1 -1
- package/README.md +10 -8
- package/bin/index.js +2 -2
- package/dist/env_web.js +172 -22
- package/dist/naan.min.js +6 -6
- package/frameworks/browser/https_request.nlg +120 -0
- package/frameworks/browser/sworker.js +299 -91
- package/frameworks/browser/terminals.nlg +28 -13
- package/frameworks/browser/workers.nlg +27 -12
- package/frameworks/client/apiclient.nlg +17 -4
- package/frameworks/client/psm_client.nlg +184 -81
- package/frameworks/common/common.nlg +105 -25
- package/frameworks/common/preferences.nlg +1 -0
- package/frameworks/common/watching.nlg +1 -0
- package/frameworks/node/apiserver.nlg +31 -15
- package/frameworks/node/filesystem.nlg +230 -46
- package/frameworks/node/gitter.nlg +27 -6
- package/frameworks/node/https_request.nlg +119 -0
- package/frameworks/node/node.nlg +1 -0
- package/frameworks/node/psm_server.nlg +113 -37
- package/frameworks/project/build.nlg +40 -23
- package/frameworks/project/proj_cliser.nlg +11 -3
- package/frameworks/project/proj_console.nlg +13 -4
- package/frameworks/project/proj_folder.nlg +10 -1
- package/frameworks/project/proj_lambda.nlg +13 -4
- package/frameworks/project/proj_static.nlg +11 -3
- package/frameworks/project/projects.nlg +128 -40
- package/frameworks/running/debugnub.nlg +2 -5
- package/frameworks/running/executors.nlg +1 -0
- package/frameworks/storage/csv.nlg +120 -0
- package/frameworks/storage/dbt_pouch.nlg +41 -25
- package/frameworks/storage/psm.nlg +108 -28
- package/frameworks/storage/psm_dbtables.nlg +7 -3
- package/frameworks/storage/resources.nlg +30 -2
- package/lib/browser/env_web.js +170 -20
- package/lib/browser/env_webworker.js +1 -1
- package/lib/browser/require.js +1 -1
- package/lib/core/naanlib.js +6 -6
- package/package.json +2 -1
- package/plugins/serviceAws/aws/aws-sdk-node.min.js +2 -0
- package/plugins/serviceAws/aws/aws-sdk.min.js +2 -88
- package/plugins/serviceAws/aws_cloudwatchlogs.nlg +8 -7
- package/plugins/serviceAws/aws_dynamo.nlg +715 -148
- package/plugins/serviceAws/aws_dynextra.nlg +294 -0
- package/plugins/serviceAws/aws_lambda.nlg +11 -4
- package/plugins/serviceAws/aws_s3.nlg +44 -14
- package/plugins/serviceAws/dbt_aws.nlg +58 -45
- package/plugins/serviceAws/psm_aws.nlg +61 -40
- package/plugins/serviceAws/serviceAws.nlg +7 -4
- package/plugins/serviceGitHub/psm_github.nlg +41 -25
- package/plugins/serviceGitLab/psm_gitlab.nlg +41 -25
- package/test/harness.nlg +3 -1
- package/test/test_01_core.nlg +5 -5
- package/test/test_02_context.nlg +4 -4
- package/test/test_03_jsinterop.nlg +9 -3
- package/plugins/serviceAws/aws_cognito.nlg +0 -76
|
@@ -26,10 +26,13 @@ closure CloudWatchLogs(local cwlogs) {
|
|
|
26
26
|
//
|
|
27
27
|
cwlogs.login = closure login(creds) {
|
|
28
28
|
cwlogs.aws = xnew(awsSDK.CloudWatchLogs, {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
region: creds.region
|
|
30
|
+
credentials: {
|
|
31
|
+
accessKeyId: creds.keyID
|
|
32
|
+
secretAccessKey: creds.keySecret
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
list(false, { ok: true })
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
//
|
|
@@ -67,7 +70,6 @@ closure CloudWatchLogs(local cwlogs) {
|
|
|
67
70
|
}
|
|
68
71
|
output = []
|
|
69
72
|
`(error) = cwlQueryPager(`describeLogStreams, params, options.limit, function(data) {
|
|
70
|
-
debuglog("describeLogStreams:", params.limit, data.logStreams.length, output.length)
|
|
71
73
|
if data.logStreams.length > 0
|
|
72
74
|
output = output.concat(new(data.logStreams))
|
|
73
75
|
data.logStreams.length
|
|
@@ -89,7 +91,6 @@ closure CloudWatchLogs(local cwlogs) {
|
|
|
89
91
|
}
|
|
90
92
|
output = []
|
|
91
93
|
`(error) = cwlQueryPager(`getLogEvents, params, options.limit, function(data) {
|
|
92
|
-
debuglog("getLogEvents:", params.limit, data.events.length, output.length)
|
|
93
94
|
if data.events.length > 0
|
|
94
95
|
output = output.concat(new(data.events))
|
|
95
96
|
data.events.length
|
|
@@ -114,7 +115,7 @@ function cwlogsInit(local manifest) {
|
|
|
114
115
|
manifest = `(CloudWatchLogs, cwlogsInit)
|
|
115
116
|
|
|
116
117
|
Naan.module.build(module.id, "aws_cloudwatchlogs", function(modobj, compobj) {
|
|
117
|
-
require("./
|
|
118
|
+
require("./serviceAws.nlg")
|
|
118
119
|
compobj.manifest = manifest
|
|
119
120
|
modobj.exports.CloudWatchLogs = CloudWatchLogs
|
|
120
121
|
})
|