@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.
Files changed (56) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +10 -8
  3. package/bin/index.js +2 -2
  4. package/dist/env_web.js +172 -22
  5. package/dist/naan.min.js +6 -6
  6. package/frameworks/browser/https_request.nlg +120 -0
  7. package/frameworks/browser/sworker.js +299 -91
  8. package/frameworks/browser/terminals.nlg +28 -13
  9. package/frameworks/browser/workers.nlg +27 -12
  10. package/frameworks/client/apiclient.nlg +17 -4
  11. package/frameworks/client/psm_client.nlg +184 -81
  12. package/frameworks/common/common.nlg +105 -25
  13. package/frameworks/common/preferences.nlg +1 -0
  14. package/frameworks/common/watching.nlg +1 -0
  15. package/frameworks/node/apiserver.nlg +31 -15
  16. package/frameworks/node/filesystem.nlg +230 -46
  17. package/frameworks/node/gitter.nlg +27 -6
  18. package/frameworks/node/https_request.nlg +119 -0
  19. package/frameworks/node/node.nlg +1 -0
  20. package/frameworks/node/psm_server.nlg +113 -37
  21. package/frameworks/project/build.nlg +40 -23
  22. package/frameworks/project/proj_cliser.nlg +11 -3
  23. package/frameworks/project/proj_console.nlg +13 -4
  24. package/frameworks/project/proj_folder.nlg +10 -1
  25. package/frameworks/project/proj_lambda.nlg +13 -4
  26. package/frameworks/project/proj_static.nlg +11 -3
  27. package/frameworks/project/projects.nlg +128 -40
  28. package/frameworks/running/debugnub.nlg +2 -5
  29. package/frameworks/running/executors.nlg +1 -0
  30. package/frameworks/storage/csv.nlg +120 -0
  31. package/frameworks/storage/dbt_pouch.nlg +41 -25
  32. package/frameworks/storage/psm.nlg +108 -28
  33. package/frameworks/storage/psm_dbtables.nlg +7 -3
  34. package/frameworks/storage/resources.nlg +30 -2
  35. package/lib/browser/env_web.js +170 -20
  36. package/lib/browser/env_webworker.js +1 -1
  37. package/lib/browser/require.js +1 -1
  38. package/lib/core/naanlib.js +6 -6
  39. package/package.json +2 -1
  40. package/plugins/serviceAws/aws/aws-sdk-node.min.js +2 -0
  41. package/plugins/serviceAws/aws/aws-sdk.min.js +2 -88
  42. package/plugins/serviceAws/aws_cloudwatchlogs.nlg +8 -7
  43. package/plugins/serviceAws/aws_dynamo.nlg +715 -148
  44. package/plugins/serviceAws/aws_dynextra.nlg +294 -0
  45. package/plugins/serviceAws/aws_lambda.nlg +11 -4
  46. package/plugins/serviceAws/aws_s3.nlg +44 -14
  47. package/plugins/serviceAws/dbt_aws.nlg +58 -45
  48. package/plugins/serviceAws/psm_aws.nlg +61 -40
  49. package/plugins/serviceAws/serviceAws.nlg +7 -4
  50. package/plugins/serviceGitHub/psm_github.nlg +41 -25
  51. package/plugins/serviceGitLab/psm_gitlab.nlg +41 -25
  52. package/test/harness.nlg +3 -1
  53. package/test/test_01_core.nlg +5 -5
  54. package/test/test_02_context.nlg +4 -4
  55. package/test/test_03_jsinterop.nlg +9 -3
  56. 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
- apiVersion: "2014-03-28",
30
- accessKeyId: creds.keyID,
31
- secretAccessKey: creds.keySecret,
32
- region: creds.region })
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("./aws_utils.nlg")
118
+ require("./serviceAws.nlg")
118
119
  compobj.manifest = manifest
119
120
  modobj.exports.CloudWatchLogs = CloudWatchLogs
120
121
  })