@skillswaveca/nova-shared-libraries 3.9.0 → 3.9.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.
@@ -1,25 +1,25 @@
1
1
  export const packageInfo = [
2
2
  {
3
3
  "name": "@skillswaveca/nova-utils",
4
- "version": "3.8.0",
4
+ "version": "3.9.1",
5
5
  "description": "A collection of random utils used in nova repos",
6
6
  "docsPath": "./nova-utils/index.html"
7
7
  },
8
8
  {
9
9
  "name": "@skillswaveca/nova-model",
10
- "version": "3.8.0",
10
+ "version": "3.9.1",
11
11
  "description": "Nova model stuff",
12
12
  "docsPath": "./nova-model/index.html"
13
13
  },
14
14
  {
15
15
  "name": "@skillswaveca/nova-middleware",
16
- "version": "3.8.0",
16
+ "version": "3.9.1",
17
17
  "description": "A collection of middleware used by nova projects",
18
18
  "docsPath": "./nova-middleware/index.html"
19
19
  },
20
20
  {
21
21
  "name": "@skillswaveca/nova-drivers",
22
- "version": "3.8.0",
22
+ "version": "3.9.1",
23
23
  "description": "Some helper drivers for AWS services",
24
24
  "docsPath": "./drivers/index.html"
25
25
  }
package/package.json CHANGED
@@ -3,16 +3,17 @@
3
3
  "name": "@skillswaveca/nova-shared-libraries",
4
4
  "description": "A monorepo of shared libraries for Nova projects.",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "3.9.0",
6
+ "version": "3.9.2",
7
7
  "main": "index.js",
8
8
  "license": "MIT",
9
9
  "keywords": [],
10
10
  "author": "SkillsWave",
11
11
  "dependencies": {
12
- "@aws-sdk/client-dynamodb": "^3.577.0",
13
- "@aws-sdk/client-secrets-manager": "^3.578.0",
14
- "@aws-sdk/client-sqs": "^3.577.0",
15
- "@aws-sdk/lib-dynamodb": "^3.577.0",
12
+ "@aws-sdk/client-dynamodb": "^3.682.0",
13
+ "@aws-sdk/client-secrets-manager": "^3.682.0",
14
+ "@aws-sdk/client-sqs": "^3.682.0",
15
+ "@aws-sdk/client-ssm": "^3.682.0",
16
+ "@aws-sdk/lib-dynamodb": "^3.682.0",
16
17
  "aws-xray-sdk-core": "^3.6.0",
17
18
  "jsonwebtoken": "^9.0.2",
18
19
  "jwk-to-pem": "^2.0.5",
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-drivers",
4
4
  "description": "Some helper drivers for AWS services",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "3.9.0",
6
+ "version": "3.9.2",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",
@@ -1,12 +1,20 @@
1
1
  import { GetParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
2
2
 
3
+ import { AwsBaseDriver } from "./aws-base-driver.js";
4
+
3
5
  const cache = {};
4
6
 
5
- export class SSMDriver extends AWSDriver {
7
+ export class SSMDriver extends AwsBaseDriver {
6
8
  constructor() {
7
9
  super(SSMClient);
8
10
  }
9
11
 
12
+ /**
13
+ * Get parameter from SSM
14
+ *
15
+ * @param attr
16
+ * @returns {Promise<*>}
17
+ */
10
18
  async getParameter(attr) {
11
19
  if (cache[attr] === undefined) {
12
20
  const params = {
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-middleware",
4
4
  "description": "A collection of middleware used by nova projects",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "3.9.0",
6
+ "version": "3.9.2",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-model",
4
4
  "description": "Nova model stuff",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "3.9.0",
6
+ "version": "3.9.2",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",
@@ -3,7 +3,7 @@
3
3
  "name": "@skillswaveca/nova-utils",
4
4
  "description": "A collection of random utils used in nova repos",
5
5
  "repository": "https://github.com/SkillsWave/nova-shared-libraries",
6
- "version": "3.9.0",
6
+ "version": "3.9.2",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "pre-release": "pnpm run create-index",