Skip to content

Commit a0067a1

Browse files
committed
add prettier fix
1 parent 38bd6c1 commit a0067a1

File tree

151 files changed

+1510
-1532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+1510
-1532
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ module.exports = {
1515
},
1616
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
1717
rules: {},
18-
};
18+
}

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
# cmd: test
3333
- name: Check for modified files
3434
id: git-check
35-
run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ];
35+
run:
36+
echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ];
3637
then echo "true"; else echo "false"; fi)
37-
38+
3839
- name: Extract branch name
3940
shell: bash
4041
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"

.github/workflows/bump-version.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ jobs:
1919
tag: ${{ steps.tag_version.outputs.new_tag }}
2020
name: Release ${{ steps.tag_version.outputs.new_tag }}
2121
body: ${{ steps.tag_version.outputs.changelog }}
22-
23-
#### https://github.com/marketplace/actions/github-tag
22+
#### https://github.com/marketplace/actions/github-tag

.vscode/c_cpp_properties.json

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
2-
"configurations": [
3-
{
4-
"name": "Mac",
5-
"includePath": [
6-
"${workspaceFolder}/**"
7-
],
8-
"defines": [],
9-
"macFrameworkPath": [
10-
"/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks"
11-
],
12-
"compilerPath": "/usr/bin/clang",
13-
"cStandard": "c17",
14-
"cppStandard": "c++98",
15-
"intelliSenseMode": "macos-clang-arm64"
16-
}
17-
],
18-
"version": 4
19-
}
2+
"configurations": [
3+
{
4+
"name": "Mac",
5+
"includePath": ["${workspaceFolder}/**"],
6+
"defines": [],
7+
"macFrameworkPath": [
8+
"/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks"
9+
],
10+
"compilerPath": "/usr/bin/clang",
11+
"cStandard": "c17",
12+
"cppStandard": "c++98",
13+
"intelliSenseMode": "macos-clang-arm64"
14+
}
15+
],
16+
"version": 4
17+
}

.vscode/extensions.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"recommendations": [
3-
"GitHub.copilot"
4-
]
5-
}
2+
"recommendations": ["GitHub.copilot"]
3+
}

.vscode/settings.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
2-
"yaml.customTags": [
3-
"!And",
4-
"!And sequence",
5-
"!If",
6-
"!If sequence",
7-
"!Not",
8-
"!Not sequence",
9-
"!Equals",
10-
"!Equals sequence",
11-
"!Or",
12-
"!Or sequence",
13-
"!FindInMap",
14-
"!FindInMap sequence",
15-
"!Base64",
16-
"!Join",
17-
"!Join sequence",
18-
"!Cidr",
19-
"!Ref",
20-
"!Sub",
21-
"!Sub sequence",
22-
"!GetAtt",
23-
"!GetAZs",
24-
"!ImportValue",
25-
"!ImportValue sequence",
26-
"!Select",
27-
"!Select sequence",
28-
"!Split",
29-
"!Split sequence"
30-
]
31-
}
2+
"yaml.customTags": [
3+
"!And",
4+
"!And sequence",
5+
"!If",
6+
"!If sequence",
7+
"!Not",
8+
"!Not sequence",
9+
"!Equals",
10+
"!Equals sequence",
11+
"!Or",
12+
"!Or sequence",
13+
"!FindInMap",
14+
"!FindInMap sequence",
15+
"!Base64",
16+
"!Join",
17+
"!Join sequence",
18+
"!Cidr",
19+
"!Ref",
20+
"!Sub",
21+
"!Sub sequence",
22+
"!GetAtt",
23+
"!GetAZs",
24+
"!ImportValue",
25+
"!ImportValue sequence",
26+
"!Select",
27+
"!Select sequence",
28+
"!Split",
29+
"!Split sequence"
30+
]
31+
}

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ See the [aegis-host](https://github.com/module-federation/aegis-host) repo for d
1313
</a>
1414
</div>
1515

16-
## Consolidate your microservices
16+
## Consolidate your microservices
17+
1718
(by running them together in a single process)
1819

1920
- for decreased footprint,
@@ -27,6 +28,7 @@ _without loosing_
2728
- or component independence (i.e. components remain decoupled)
2829

2930
## Or distribute your components
31+
3032
(across a self-forming service mesh)
3133

3234
- dynamically and adaptively
@@ -67,7 +69,7 @@ npm i @module-federation/aegis
6769

6870
### Contribute
6971

70-
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/github.com/module-federation/aegis)
72+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/github.com/module-federation/aegis)
7173

7274
or
7375

@@ -90,9 +92,11 @@ yarn start
9092
yarn demo
9193
```
9294

93-
----
95+
---
96+
9497
### Learn
95-
[![Aegis Overview](https://res.cloudinary.com/marcomontalbano/image/upload/v1632364889/video_to_markdown/images/youtube--n2qqgi3fTto-c05b58ac6eb4c4700831b2b3070cd403.jpg)](https://youtu.be/jddhfLA_2k0 "Aegis Overview")
98+
99+
[![Aegis Overview](https://res.cloudinary.com/marcomontalbano/image/upload/v1632364889/video_to_markdown/images/youtube--n2qqgi3fTto-c05b58ac6eb4c4700831b2b3070cd403.jpg)](https://youtu.be/jddhfLA_2k0 'Aegis Overview')
96100

97101
# Roadmap
98102

@@ -121,5 +125,3 @@ yarn demo
121125
[downloads-url]: https://npmjs.org/package/@module-federation/aegis
122126
[gitpod-image]: https://img.shields.io/badge/Gitpod-ready--to--code-908a85?logo=gitpod
123127
[gitpod-url]: https://gitpod.io/github.com/module-federation/aegis-app
124-
125-

__test__/controllers/lrm.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
const ModelFactory = {
2-
getModelSpecs (model) {
2+
getModelSpecs(model) {
33
model = [
44
{
55
relations: {
6-
rel1: { modelName: 'm1', type: 'inbound', foreignKey: 'customerId' }
7-
}
8-
}
6+
rel1: { modelName: 'm1', type: 'inbound', foreignKey: 'customerId' },
7+
},
8+
},
99
]
1010
return model
1111
},
12-
getModelSpec (model) {
12+
getModelSpec(model) {
1313
model = {
1414
relations: {
15-
rel1: { modelName: 'm1', type: 'inbound', foreignKey: 'customerId' }
16-
}
15+
rel1: { modelName: 'm1', type: 'inbound', foreignKey: 'customerId' },
16+
},
1717
}
1818
return model
19-
}
19+
},
2020
}
2121

22-
function findLocalRelatedModels (modelName) {
22+
function findLocalRelatedModels(modelName) {
2323
const relations = ModelFactory.getModelSpec(modelName).relations
2424
const localModels = ModelFactory.getModelSpecs().map(spec => spec.modelName)
2525
const localRelatedModels = Object.keys(relations)

__test__/controllers/post-model.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Controllers', function () {
1616
modelName: 'ABC',
1717
factory: ({ a }) => ({ a, b: 'c' }),
1818
endpoint: 'abcs',
19-
dependencies: {}
19+
dependencies: {},
2020
})
2121
ModelFactory.registerEvent(
2222
ModelFactory.EventTypes.CREATE,
@@ -27,13 +27,13 @@ describe('Controllers', function () {
2727
modelName: 'ABC',
2828
models: ModelFactory,
2929
repository: DataSourceFactory.getDataSource('ABC'),
30-
broker: EventBrokerFactory.getInstance()
30+
broker: EventBrokerFactory.getInstance(),
3131
})
3232
const resp = await postModelFactory(createModel)({
3333
body: { a: 'a' },
3434
headers: { 'User-Agent': 'test' },
3535
ip: '127.0.0.1',
36-
log: () => 1
36+
log: () => 1,
3737
})
3838
console.log('resp.status', resp.statusCode)
3939
assert.strictEqual(resp.statusCode, 201)

__test__/controllers/route-map.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ const { assert } = require('console')
22
const { pathToRegexp } = require('path-to-regexp')
33

44
class RouteMap extends Map {
5-
find (path) {
5+
find(path) {
66
return [...super.keys()].find(
77
regex => regex instanceof RegExp && regex.test(path)
88
)
99
}
1010

11-
set (path, method) {
11+
set(path, method) {
1212
super.set(pathToRegexp(path), method)
1313
}
1414

15-
has (path) {
15+
has(path) {
1616
return this.find(path) ? true : false
1717
}
1818

19-
get (path) {
19+
get(path) {
2020
return this.find(path)
2121
}
2222
}

0 commit comments

Comments
 (0)