@openstax/ts-utils 1.25.1 → 1.25.2

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 (27) hide show
  1. package/dist/cjs/services/accountsGateway/index.d.ts +13 -3
  2. package/dist/cjs/services/accountsGateway/index.js +91 -72
  3. package/dist/cjs/services/launchParams/signer.d.ts +2 -1
  4. package/dist/cjs/services/launchParams/signer.js +2 -2
  5. package/dist/cjs/services/lrsGateway/xapiUtils.d.ts +0 -2
  6. package/dist/cjs/services/lrsGateway/xapiUtils.js +1 -1
  7. package/dist/cjs/services/searchProvider/index.d.ts +4 -0
  8. package/dist/cjs/services/searchProvider/memorySearchTheBadWay.d.ts +1 -0
  9. package/dist/cjs/services/searchProvider/memorySearchTheBadWay.js +15 -1
  10. package/dist/cjs/services/searchProvider/openSearch.d.ts +1 -0
  11. package/dist/cjs/services/searchProvider/openSearch.js +23 -13
  12. package/dist/cjs/tsconfig.without-specs.cjs.tsbuildinfo +1 -1
  13. package/dist/esm/services/accountsGateway/index.d.ts +13 -3
  14. package/dist/esm/services/accountsGateway/index.js +92 -73
  15. package/dist/esm/services/launchParams/signer.d.ts +2 -1
  16. package/dist/esm/services/launchParams/signer.js +2 -2
  17. package/dist/esm/services/lrsGateway/xapiUtils.d.ts +0 -2
  18. package/dist/esm/services/lrsGateway/xapiUtils.js +1 -1
  19. package/dist/esm/services/searchProvider/index.d.ts +4 -0
  20. package/dist/esm/services/searchProvider/memorySearchTheBadWay.d.ts +1 -0
  21. package/dist/esm/services/searchProvider/memorySearchTheBadWay.js +15 -1
  22. package/dist/esm/services/searchProvider/openSearch.d.ts +1 -0
  23. package/dist/esm/services/searchProvider/openSearch.js +23 -13
  24. package/dist/esm/tsconfig.without-specs.esm.tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/script/bin/deploy.bash +2 -1
  27. package/script/bin/init-params-script.bash +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openstax/ts-utils",
3
- "version": "1.25.1",
3
+ "version": "1.25.2",
4
4
  "bin": {
5
5
  "ts-utils": "./script/bin-entry.bash"
6
6
  },
@@ -42,7 +42,8 @@ source $(yarn -s ts-utils which init-params-script)
42
42
 
43
43
  missing_params=$(get_missing_param_names)
44
44
  if [ -n "$missing_params" ]; then
45
- echo "please upload the following params before deploying: $missing_params"
45
+ echo "please upload the following params before deploying:"
46
+ echo "$missing_params"
46
47
  exit 1
47
48
  fi
48
49
 
@@ -51,12 +51,17 @@ function get_parameter() {
51
51
  }
52
52
 
53
53
  function get_missing_param_names() {
54
- names=()
55
- for param in "${PARAMS[@]}"; do
56
- name=$param
57
- names+=($(get_param_name))
54
+ for (( i=0; i<${#PARAMS[@]}; i+=10 )); do
55
+ chunk=("${PARAMS[@]:i:10}")
56
+ names=()
57
+
58
+ for param in "${chunk[@]}"; do
59
+ name=$param
60
+ names+=($(get_param_name))
61
+ done
62
+
63
+ aws ssm get-parameters --region "$region" --names "${names[@]}" --query InvalidParameters --output text 2>&1
58
64
  done
59
- aws ssm get-parameters --region "$region" --names "${names[@]}" --query InvalidParameters --output text 2>&1
60
65
  }
61
66
 
62
67
  function upload_parameter() {