@znemz/cft-utils 0.1.34 → 0.1.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@znemz/cft-utils",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "AWS CFT Utilities to fill the gaps for Cloud Formation",
5
5
  "keywords": [
6
6
  "cft",
@@ -26,33 +26,38 @@
26
26
  "src/**/*.json",
27
27
  "*.js",
28
28
  "!commitlint.config.js",
29
- "!jest*.js",
29
+ "!vitest*.js",
30
30
  "!.*.js"
31
31
  ],
32
32
  "scripts": {
33
33
  "lint": "eslint .",
34
34
  "prepack": "./bin/taggableResourceMap.js && ./bin/taggableResources.js",
35
35
  "prepare": "skip-npm-task -t prepare sort-package-json",
36
- "test": "mocha --timeout 20000 --bail ./src/**/*.test.js",
36
+ "test": "vitest run",
37
37
  "unused:dependencies": "depcheck --ignore-bin-package --ignores @znemz/skip-npm-task,sort-package-json"
38
38
  },
39
39
  "dependencies": {
40
- "debug-fabulous": "2.0.36",
41
- "glob": "13.0.0"
40
+ "debug-fabulous": "2.0.39",
41
+ "glob": "11.1.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@commitlint/cli": "^20",
45
45
  "@commitlint/config-conventional": "^20",
46
+ "@eslint/js": "^10",
46
47
  "@znemz/skip-npm-task": "0.1.0",
47
- "aws-cdk-lib": "2.236.0",
48
+ "aws-cdk-lib": "2.237.1",
48
49
  "commit-and-tag-version": "12",
49
50
  "commitlint": "20",
50
51
  "depcheck": "1.4.7",
51
- "eslint": "9",
52
+ "eslint": "^10",
52
53
  "eslint-config-prettier": "10",
53
- "eslint-plugin-mocha": "11",
54
54
  "eslint-plugin-prettier": "5",
55
- "mocha": "11",
56
- "sort-package-json": "3.6"
55
+ "globals": "^16",
56
+ "prettier": "3",
57
+ "sort-package-json": "3.6",
58
+ "vitest": "^3"
59
+ },
60
+ "engines": {
61
+ "node": ">=20"
57
62
  }
58
63
  }
@@ -1,19 +1,17 @@
1
1
  const taggable = require('./taggable');
2
- const assert = require('assert');
3
2
 
4
- describe(taggable.isTaggableResource.name, function () {
5
- ['AWS::IAM::Role'].forEach(function (resourceName) {
6
- it(`${resourceName} is taggable`, async function () {
3
+ describe(taggable.isTaggableResource.name, () => {
4
+ ['AWS::IAM::Role'].forEach((resourceName) => {
5
+ it(`${resourceName} is taggable`, async () => {
7
6
  const isTag = await taggable.isTaggableResource(resourceName);
8
- assert.ok(isTag);
7
+ expect(isTag).toBe(true);
9
8
  });
10
9
  });
11
10
 
12
- ['AWS::IAM::Policy', 'AWS::IAM::ManagedPolicy'].forEach(function (resourceName) {
13
-
14
- it(`${resourceName} is NOT taggable`, async function () {
11
+ ['AWS::IAM::Policy', 'AWS::IAM::ManagedPolicy'].forEach((resourceName) => {
12
+ it(`${resourceName} is NOT taggable`, async () => {
15
13
  const isTag = await taggable.isTaggableResource(resourceName);
16
- assert.ok(!isTag);
14
+ expect(isTag).toBe(false);
17
15
  });
18
16
  });
19
17
  });