ac-sqs 2.0.2 → 2.0.4

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/.ncurc.js ADDED
@@ -0,0 +1,8 @@
1
+ // List packages for minor updates
2
+ const minorUpdatePackages = ['chai']
3
+
4
+ module.exports = {
5
+ target: packageName => {
6
+ return minorUpdatePackages.includes(packageName) ? 'minor' : 'latest'
7
+ }
8
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ <a name="2.0.4"></a>
2
+
3
+ ## [2.0.4](https://github.com/admiralcloud/ac-sqs/compare/v2.0.3..v2.0.4) (2024-06-05 15:17:57)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Package updates | MP | [a6c6c7cec0385768446ef635b6605bac9dfc7d40](https://github.com/admiralcloud/ac-sqs/commit/a6c6c7cec0385768446ef635b6605bac9dfc7d40)
9
+ Package updates
10
+ Related issues: [admiralcloud/ac-sqs#1](https://github.com/admiralcloud/ac-sqs/issues/1) [admiralcloud/ac-api-server#340](https://github.com/admiralcloud/ac-api-server/issues/340)
11
+ <a name="2.0.3"></a>
12
+
13
+ ## [2.0.3](https://github.com/admiralcloud/ac-sqs/compare/v2.0.2..v2.0.3) (2023-09-06 09:29:40)
14
+
15
+
16
+ ### Bug Fix
17
+
18
+ * **App:** Allow suffix for lists | MP | [5b2395593896a83dd8bbd6a558e589c8d0a2f0c7](https://github.com/admiralcloud/ac-sqs/commit/5b2395593896a83dd8bbd6a558e589c8d0a2f0c7)
19
+ Allow suffix for lists
20
+ Related issues: [undefined/undefined#master](undefined/browse/master)
21
+ ### Chores
22
+
23
+ * **App:** Updated packages | MP | [0a96ae8df4a46863bd8faeccdfde674b37338055](https://github.com/admiralcloud/ac-sqs/commit/0a96ae8df4a46863bd8faeccdfde674b37338055)
24
+ Updated packages
25
+ Related issues: [undefined/undefined#master](undefined/browse/master)
1
26
  <a name="2.0.2"></a>
2
27
 
3
28
  ## [2.0.2](https://github.com/admiralcloud/ac-sqs/compare/v2.0.1..v2.0.2) (2023-08-26 14:18:17)
@@ -0,0 +1,28 @@
1
+ const globals = require('globals');
2
+
3
+ module.exports = [
4
+ {
5
+ languageOptions: {
6
+ ecmaVersion: 2022,
7
+ sourceType: 'module',
8
+ globals: {
9
+ ...globals.commonjs,
10
+ ...globals.es6,
11
+ ...globals.node,
12
+ expect: 'readonly',
13
+ describe: 'readonly',
14
+ it: 'readonly'
15
+ }
16
+ },
17
+ rules: {
18
+ 'space-before-function-paren': 'off',
19
+ 'no-extra-semi': 'off',
20
+ 'object-curly-spacing': ['error', 'always'],
21
+ 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
22
+ 'no-useless-escape': 'off',
23
+ 'standard/no-callback-literal': 'off',
24
+ 'new-cap': 'off',
25
+ 'no-console': ['error', { allow: ['error'] }]
26
+ }
27
+ }
28
+ ];
package/index.js CHANGED
@@ -48,11 +48,12 @@ class ACSQS {
48
48
  return response
49
49
  }
50
50
 
51
- async getQueueUrl({ name, fifo, localPrefix }) {
51
+ async getQueueUrl({ name, fifo, localPrefix, suffix }) {
52
52
  let queueUrl = `https://sqs.${this.region}.amazonaws.com/${this.account}/`
53
53
  if (localPrefix) queueUrl += `local_${localPrefix}_`
54
54
  if (process.env['NODE_ENV'] === 'test') queueUrl += 'test_'
55
55
  queueUrl += name
56
+ if (suffix) queueUrl += suffix
56
57
  if (fifo) queueUrl += '.fifo'
57
58
  return queueUrl
58
59
  }
package/package.json CHANGED
@@ -3,18 +3,18 @@
3
3
  "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
5
  "repository": "admiralcloud/ac-sqs",
6
- "version": "2.0.2",
6
+ "version": "2.0.4",
7
7
  "dependencies": {
8
- "@aws-sdk/client-s3": "^3.400.0",
9
- "@aws-sdk/client-sqs": "^3.398.0",
10
- "@aws-sdk/credential-providers": "^3.398.0",
8
+ "@aws-sdk/client-s3": "^3.590.0",
9
+ "@aws-sdk/client-sqs": "^3.590.0",
10
+ "@aws-sdk/credential-providers": "^3.590.0",
11
11
  "lodash": "^4.17.21",
12
- "uuid": "^9.0.0"
12
+ "uuid": "^9.0.1"
13
13
  },
14
14
  "devDependencies": {
15
15
  "ac-semantic-release": "^0.4.2",
16
- "chai": "^4.3.8",
17
- "eslint": "^8.48.0",
16
+ "chai": "^4.4.1",
17
+ "eslint": "^9.4.0",
18
18
  "mocha": "^10.x"
19
19
  },
20
20
  "scripts": {
package/.eslintrc.js DELETED
@@ -1,27 +0,0 @@
1
- const config = {
2
- root: true,
3
- 'env': {
4
- 'commonjs': true,
5
- 'es6': true,
6
- 'node': true
7
- },
8
- 'extends': 'eslint:recommended',
9
- "rules": {
10
- "space-before-function-paren": 0,
11
- "no-extra-semi": 0,
12
- "object-curly-spacing": ["error", "always"],
13
- "brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
14
- "no-useless-escape": 0,
15
- "standard/no-callback-literal": 0,
16
- "new-cap": 0
17
- },
18
- globals: {
19
- describe: true,
20
- it: true
21
- },
22
- 'parserOptions': {
23
- 'ecmaVersion': 2022
24
- },
25
- }
26
-
27
- module.exports = config