declapract-typescript-ehmpathy 0.39.4 → 0.39.6

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Uladzimir Kasacheuski
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -9,7 +9,7 @@ on:
9
9
 
10
10
  jobs:
11
11
  npm:
12
- runs-on: ubuntu-20.04
12
+ runs-on: ubuntu-24.04
13
13
  outputs:
14
14
  node-modules-cache-key: ${{ steps.cache.outputs.cache-primary-key }}
15
15
  steps:
@@ -26,7 +26,7 @@ jobs:
26
26
 
27
27
  # run tests in parallel
28
28
  test-commits:
29
- runs-on: ubuntu-20.04
29
+ runs-on: ubuntu-24.04
30
30
  needs: [install]
31
31
  steps:
32
32
  - name: checkout
@@ -49,7 +49,7 @@ jobs:
49
49
  run: npm run test:commits
50
50
 
51
51
  test-types:
52
- runs-on: ubuntu-20.04
52
+ runs-on: ubuntu-24.04
53
53
  needs: [install]
54
54
  steps:
55
55
  - name: checkout
@@ -70,7 +70,7 @@ jobs:
70
70
  run: npm run test:types
71
71
 
72
72
  test-format:
73
- runs-on: ubuntu-20.04
73
+ runs-on: ubuntu-24.04
74
74
  needs: [install]
75
75
  steps:
76
76
  - name: checkout
@@ -94,7 +94,7 @@ jobs:
94
94
  run: npm run test:format
95
95
 
96
96
  test-lint:
97
- runs-on: ubuntu-20.04
97
+ runs-on: ubuntu-24.04
98
98
  needs: [install]
99
99
  steps:
100
100
  - name: checkout
@@ -115,7 +115,7 @@ jobs:
115
115
  run: npm run test:lint
116
116
 
117
117
  test-unit:
118
- runs-on: ubuntu-20.04
118
+ runs-on: ubuntu-24.04
119
119
  needs: [install]
120
120
  steps:
121
121
  - name: checkout
@@ -136,7 +136,7 @@ jobs:
136
136
  run: THOROUGH=true npm run test:unit
137
137
 
138
138
  test-integration:
139
- runs-on: ubuntu-20.04
139
+ runs-on: ubuntu-24.04
140
140
  needs: [install]
141
141
  steps:
142
142
  - name: checkout
@@ -176,7 +176,7 @@ jobs:
176
176
  run: THOROUGH=true npm run test:integration
177
177
 
178
178
  test-acceptance-locally:
179
- runs-on: ubuntu-20.04
179
+ runs-on: ubuntu-24.04
180
180
  needs: [install]
181
181
  steps:
182
182
  - name: checkout
@@ -7,7 +7,7 @@ on:
7
7
 
8
8
  jobs:
9
9
  release-please:
10
- runs-on: ubuntu-20.04
10
+ runs-on: ubuntu-24.04
11
11
  steps:
12
12
  - uses: google-github-actions/release-please-action@v3
13
13
  with:
@@ -12,7 +12,7 @@ jobs:
12
12
  uses: ./.github/workflows/.install.yml
13
13
 
14
14
  publish:
15
- runs-on: ubuntu-20.04
15
+ runs-on: ubuntu-24.04
16
16
  needs: [install]
17
17
  steps:
18
18
  - name: checkout
@@ -43,7 +43,7 @@ jobs:
43
43
  uses: ./.github/workflows/.install.yml
44
44
 
45
45
  deploy:
46
- runs-on: ubuntu-20.04
46
+ runs-on: ubuntu-24.04
47
47
  needs: [install]
48
48
  steps:
49
49
  - name: checkout
@@ -83,7 +83,7 @@ jobs:
83
83
  run: STAGE=${{ inputs.stage }} DEPLOYER_NAME=$GITHUB_ACTOR npm run deploy
84
84
 
85
85
  assure:
86
- runs-on: ubuntu-20.04
86
+ runs-on: ubuntu-24.04
87
87
  needs: [install, deploy]
88
88
  steps:
89
89
  - name: checkout
@@ -156,7 +156,7 @@ jobs:
156
156
  pagerduty-dedup-key: github_workflow_failed
157
157
 
158
158
  prune:
159
- runs-on: ubuntu-20.04
159
+ runs-on: ubuntu-24.04
160
160
  needs: [install, deploy]
161
161
  steps:
162
162
  - name: checkout
@@ -36,7 +36,7 @@ jobs:
36
36
  uses: ./.github/workflows/.install.yml
37
37
 
38
38
  plan:
39
- runs-on: ubuntu-20.04
39
+ runs-on: ubuntu-24.04
40
40
  needs: [install]
41
41
  outputs:
42
42
  has-changes-planned: ${{ steps.evaluate-plan.outputs.has-changes-planned }}
@@ -120,7 +120,7 @@ jobs:
120
120
  run: sudo killall openvpn
121
121
 
122
122
  apply:
123
- runs-on: ubuntu-20.04
123
+ runs-on: ubuntu-24.04
124
124
  environment: ${{ inputs.github-environment }}
125
125
  needs: [install, plan]
126
126
  if: ${{ inputs.allow-apply == true && needs.plan.outputs.has-changes-planned == 'true' }}
@@ -0,0 +1,5 @@
1
+ {
2
+ "devDependencies": {
3
+ "simple-leveled-log-methods": "@declapract{check.minVersion('0.0.0')}"
4
+ }
5
+ }
@@ -0,0 +1,18 @@
1
+ import { FileCheckType, FileFixFunction } from 'declapract';
2
+
3
+ export const check = FileCheckType.CONTAINS;
4
+
5
+ export const fix: FileFixFunction = (contents) => {
6
+ if (!contents) return { contents }; // do nothing if no contents
7
+ const packageJSON = JSON.parse(contents);
8
+ const updatedPackageJSON = {
9
+ ...packageJSON,
10
+ devDependencies: {
11
+ ...packageJSON.devDependencies,
12
+ 'simple-leveled-log-methods': undefined,
13
+ },
14
+ };
15
+ return {
16
+ contents: JSON.stringify(updatedPackageJSON, null, 2),
17
+ };
18
+ };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "simple-leveled-log-methods": "@declapract{check.minVersion('0.2.2')}"
3
+ "simple-log-methods": "@declapract{check.minVersion('0.5.0')}"
4
4
  }
5
5
  }
@@ -1,3 +1,3 @@
1
- import { generateLogMethods } from 'simple-leveled-log-methods';
1
+ import { generateLogMethods } from 'simple-log-methods';
2
2
 
3
3
  export const log = generateLogMethods();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "declapract-typescript-ehmpathy",
3
3
  "author": "ehmpathy",
4
4
  "description": "declapract best practices declarations for typescript",
5
- "version": "0.39.4",
5
+ "version": "0.39.6",
6
6
  "license": "MIT",
7
7
  "main": "src/index.js",
8
8
  "repository": "ehmpathy/declapract-typescript-ehmpathy",
@@ -44,7 +44,8 @@
44
44
  "domain-objects": "0.22.1",
45
45
  "expect": "29.4.2",
46
46
  "flat": "5.0.2",
47
- "helpful-errors": "1.3.8"
47
+ "helpful-errors": "1.3.8",
48
+ "simple-log-methods": "0.5.0"
48
49
  },
49
50
  "peerDependencies": {
50
51
  "declapract": ">=0.11.5"