@gapi/federation 1.8.169 → 1.8.170
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/bin/federation-linux.js +5672 -5671
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/tokens.d.ts +4 -4
- package/eslint.config.mjs +38 -0
- package/package.json +13 -13
- package/src/main.ts +2 -0
- package/.eslintrc.js +0 -27
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -13,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
17
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
18
|
};
|
|
15
19
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
21
|
};
|
|
18
22
|
var FederationModule_1;
|
|
19
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -61,9 +65,9 @@ let FederationModule = FederationModule_1 = class FederationModule {
|
|
|
61
65
|
};
|
|
62
66
|
}
|
|
63
67
|
};
|
|
64
|
-
FederationModule = FederationModule_1 = __decorate([
|
|
65
|
-
core_1.Module()
|
|
66
|
-
], FederationModule);
|
|
67
68
|
exports.FederationModule = FederationModule;
|
|
69
|
+
exports.FederationModule = FederationModule = FederationModule_1 = __decorate([
|
|
70
|
+
(0, core_1.Module)()
|
|
71
|
+
], FederationModule);
|
|
68
72
|
__exportStar(require("./tokens"), exports);
|
|
69
73
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAgD;AAChD,qCAAyD;AACzD,iDAA6C;AAE7C,yDAA6D;AAC7D,qCAIkB;AAGX,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IACpB,MAAM,CAAC,OAAO,CAAC,EACpB,IAAI,EACJ,WAAW,EACX,eAAe,EACf,OAAO,EACP,kBAAkB,GACM;QACxB,OAAO;YACL,MAAM,EAAE,kBAAgB;YACxB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,8BAAqB;oBAC9B,UAAU,EAAE,GAAG,EAAE,CACf,IAAI,uBAAa,CAAC;wBAChB,WAAW;wBACX,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;4BACxB,MAAM,IAAI,GAAG,IAAI,0CAAuB,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;4BAClD,IAAI,eAAe,EAAE,CAAC;gCACpB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;4BACpD,CAAC;4BACD,OAAO,IAAI,CAAC;wBACd,CAAC;wBACD,6BAA6B,EAAE,IAAI;qBACpC,CAAC;iBACL;gBACD;oBACE,OAAO,EAAE,6BAAoB;oBAC7B,IAAI,EAAE,CAAC,8BAAqB,CAAC;oBAC7B,UAAU,EAAE,CAAC,OAA8B,EAAE,EAAE,CAC7C,IAAI,4BAAY,iBACd,OAAO,EACP,MAAM,EAAE,KAAK,EACb,OAAO,EAAE,OAAO;4BACd,CAAC,CAAC,OAAO;4BACT,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAC3C,aAAa,EAAE,KAAK,IACjB,kBAAkB,EACrB;iBACL;gBACD;oBACE,OAAO,EAAE,QAAQ;oBACjB,IAAI,EAAE,CAAC,6BAAoB,CAAC;oBAC5B,IAAI,EAAE,IAAI;oBACV,UAAU,EAAE,CAAC,MAA4B,EAAE,EAAE,CAC3C,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;wBACvC,OAAO,CAAC,GAAG,CAAC,yBAAyB,GAAG,EAAE,CAAC,CAAC;oBAC9C,CAAC,CAAC;iBACL;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AApDY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,aAAM,GAAE;GACI,gBAAgB,CAoD5B;AAED,2CAAyB"}
|
package/dist/tokens.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import { ApolloServer } from 'apollo-server';
|
|
|
4
4
|
import { ContextFunction } from 'apollo-server-core';
|
|
5
5
|
import { ApolloServerExpressConfig } from 'apollo-server-express';
|
|
6
6
|
export declare const ApolloServerInternal: InjectionToken<ApolloServer>;
|
|
7
|
-
export
|
|
7
|
+
export type ApolloServerInternal = ApolloServer;
|
|
8
8
|
export declare const ApolloGatewayInternal: InjectionToken<ApolloGateway>;
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type ApolloGatewayInternal = ApolloGateway;
|
|
10
|
+
export type WillSendRequest = (ctx: {
|
|
11
11
|
request: any;
|
|
12
12
|
context: any;
|
|
13
13
|
}) => void;
|
|
14
|
-
export
|
|
14
|
+
export type FederationModuleOptions = {
|
|
15
15
|
port: number | string;
|
|
16
16
|
willSendRequest?: WillSendRequest;
|
|
17
17
|
context?: ContextFunction;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
2
|
+
import tsParser from '@typescript-eslint/parser';
|
|
3
|
+
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
4
|
+
import prettierPlugin from 'eslint-plugin-prettier';
|
|
5
|
+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
6
|
+
import prettierConfig from 'eslint-config-prettier';
|
|
7
|
+
|
|
8
|
+
export default defineConfig([
|
|
9
|
+
globalIgnores(['dist', './bin']),
|
|
10
|
+
{
|
|
11
|
+
files: ['./src/**/*.ts'],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parser: tsParser,
|
|
14
|
+
ecmaVersion: 2018,
|
|
15
|
+
sourceType: 'module',
|
|
16
|
+
},
|
|
17
|
+
plugins: {
|
|
18
|
+
'@typescript-eslint': tsPlugin,
|
|
19
|
+
prettier: prettierPlugin,
|
|
20
|
+
'simple-import-sort': simpleImportSort, // ✅ MUST MATCH RULE PREFIX
|
|
21
|
+
},
|
|
22
|
+
rules: {
|
|
23
|
+
...tsPlugin.configs.recommended.rules,
|
|
24
|
+
...prettierConfig.rules,
|
|
25
|
+
|
|
26
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
27
|
+
'@typescript-eslint/camelcase': 'off',
|
|
28
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
29
|
+
|
|
30
|
+
'simple-import-sort/imports': 'error',
|
|
31
|
+
'simple-import-sort/exports': 'error',
|
|
32
|
+
'sort-imports': 'off',
|
|
33
|
+
'import/order': 'off',
|
|
34
|
+
|
|
35
|
+
'prettier/prettier': 'error',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/federation",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.170",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi.git"
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@apollo/gateway": "^0.14.1",
|
|
37
|
-
"@rxdi/core": "^0.7.
|
|
37
|
+
"@rxdi/core": "^0.7.194",
|
|
38
38
|
"apollo-server": "^2.12.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^25.0.3",
|
|
42
42
|
"@types/jest": "^25.2.1",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
44
|
-
"@typescript-eslint/parser": "^
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"prettier": "^
|
|
47
|
-
"typescript": "^
|
|
48
|
-
"eslint-config-prettier": "^
|
|
49
|
-
"eslint-plugin-prettier": "^
|
|
50
|
-
"eslint-plugin-simple-import-sort": "^
|
|
51
|
-
"jest": "^
|
|
52
|
-
"ts-jest": "^
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.50.1",
|
|
44
|
+
"@typescript-eslint/parser": "^8.50.1",
|
|
45
|
+
"eslint": "^9.39.2",
|
|
46
|
+
"prettier": "^3.7.4",
|
|
47
|
+
"typescript": "^5.9.3",
|
|
48
|
+
"eslint-config-prettier": "^10.1.8",
|
|
49
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
50
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
51
|
+
"jest": "^30.2.0",
|
|
52
|
+
"ts-jest": "^29.4.6"
|
|
53
53
|
},
|
|
54
54
|
"bin": {
|
|
55
55
|
"federation": "./bin/federation-linux.js"
|
package/src/main.ts
CHANGED
package/.eslintrc.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// Specifies the ESLint parser
|
|
3
|
-
parser: "@typescript-eslint/parser",
|
|
4
|
-
extends: [
|
|
5
|
-
// Uses the recommended rules from the @typescript-eslint/eslint-plugin
|
|
6
|
-
"plugin:@typescript-eslint/recommended",
|
|
7
|
-
// Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
|
|
8
|
-
"prettier/@typescript-eslint",
|
|
9
|
-
// Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
|
|
10
|
-
"plugin:prettier/recommended"
|
|
11
|
-
],
|
|
12
|
-
parserOptions: {
|
|
13
|
-
// Allows for the parsing of modern ECMAScript features
|
|
14
|
-
ecmaVersion: 2018,
|
|
15
|
-
// Allows for the use of imports
|
|
16
|
-
sourceType: "module"
|
|
17
|
-
},
|
|
18
|
-
rules: {
|
|
19
|
-
"@typescript-eslint/explicit-function-return-type": 0,
|
|
20
|
-
"simple-import-sort/sort": "error",
|
|
21
|
-
"sort-imports": "off",
|
|
22
|
-
"import/order": "off",
|
|
23
|
-
"@typescript-eslint/camelcase": 0,
|
|
24
|
-
"@typescript-eslint/interface-name-prefix": 0
|
|
25
|
-
},
|
|
26
|
-
plugins: ["simple-import-sort"]
|
|
27
|
-
};
|