@gapi/voyager 1.8.168 → 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/dist/index.d.ts +1 -1
- package/dist/index.js +10 -6
- package/dist/voyager-plugin.js +6 -6
- package/eslint.config.mjs +38 -0
- package/package.json +4 -4
- package/src/index.ts +2 -2
- package/src/voyager-config.ts +1 -1
- package/src/voyager-plugin.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { VoyagerConfigModel } from './voyager-config';
|
|
|
3
3
|
export declare class VoyagerModule {
|
|
4
4
|
static forRoot(config?: VoyagerConfigModel): ModuleWithServices;
|
|
5
5
|
}
|
|
6
|
-
export * from './voyager-plugin';
|
|
7
6
|
export * from './voyager-config';
|
|
7
|
+
export * from './voyager-plugin';
|
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 VoyagerModule_1;
|
|
19
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -34,11 +38,11 @@ let VoyagerModule = VoyagerModule_1 = class VoyagerModule {
|
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
40
|
};
|
|
37
|
-
VoyagerModule =
|
|
38
|
-
|
|
41
|
+
exports.VoyagerModule = VoyagerModule;
|
|
42
|
+
exports.VoyagerModule = VoyagerModule = VoyagerModule_1 = __decorate([
|
|
43
|
+
(0, core_1.Module)({
|
|
39
44
|
plugins: [voyager_plugin_1.VoyagerGapiHapiPlugin],
|
|
40
45
|
})
|
|
41
46
|
], VoyagerModule);
|
|
42
|
-
exports.VoyagerModule = VoyagerModule;
|
|
43
|
-
__exportStar(require("./voyager-plugin"), exports);
|
|
44
47
|
__exportStar(require("./voyager-config"), exports);
|
|
48
|
+
__exportStar(require("./voyager-plugin"), exports);
|
package/dist/voyager-plugin.js
CHANGED
|
@@ -44,14 +44,14 @@ let VoyagerGapiHapiPlugin = class VoyagerGapiHapiPlugin {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
handler() {
|
|
47
|
-
return render_voyager_page_1.default({ endpointUrl: this.config.endpointUrl });
|
|
47
|
+
return (0, render_voyager_page_1.default)({ endpointUrl: this.config.endpointUrl });
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
VoyagerGapiHapiPlugin =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
__param(
|
|
50
|
+
exports.VoyagerGapiHapiPlugin = VoyagerGapiHapiPlugin;
|
|
51
|
+
exports.VoyagerGapiHapiPlugin = VoyagerGapiHapiPlugin = __decorate([
|
|
52
|
+
(0, core_1.Plugin)(),
|
|
53
|
+
__param(0, (0, core_1.Inject)(voyager_config_1.VoyagerConfig)),
|
|
54
|
+
__param(1, (0, core_1.Inject)(hapi_2.HAPI_SERVER)),
|
|
54
55
|
__metadata("design:paramtypes", [voyager_config_1.VoyagerConfigModel,
|
|
55
56
|
hapi_1.Server])
|
|
56
57
|
], VoyagerGapiHapiPlugin);
|
|
57
|
-
exports.VoyagerGapiHapiPlugin = VoyagerGapiHapiPlugin;
|
|
@@ -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']),
|
|
10
|
+
{
|
|
11
|
+
files: ['./src/**/*.ts', './src/**/*.tsx'],
|
|
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/voyager",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.170",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi-voyager.git"
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"graphql-voyager": "^1.0.0-rc.15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@rxdi/core": "^0.7.
|
|
40
|
-
"@rxdi/hapi": "^0.7.
|
|
39
|
+
"@rxdi/core": "^0.7.194",
|
|
40
|
+
"@rxdi/hapi": "^0.7.194",
|
|
41
41
|
"@types/hapi": "^18.0.2",
|
|
42
|
-
"@types/node": "^
|
|
42
|
+
"@types/node": "^25.0.3"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { VoyagerGapiHapiPlugin } from './voyager-plugin';
|
|
|
8
8
|
})
|
|
9
9
|
export class VoyagerModule {
|
|
10
10
|
static forRoot(
|
|
11
|
-
config: VoyagerConfigModel = new VoyagerConfigModel()
|
|
11
|
+
config: VoyagerConfigModel = new VoyagerConfigModel(),
|
|
12
12
|
): ModuleWithServices {
|
|
13
13
|
return {
|
|
14
14
|
module: VoyagerModule,
|
|
@@ -22,5 +22,5 @@ export class VoyagerModule {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export * from './voyager-plugin';
|
|
26
25
|
export * from './voyager-config';
|
|
26
|
+
export * from './voyager-plugin';
|
package/src/voyager-config.ts
CHANGED
package/src/voyager-plugin.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class VoyagerGapiHapiPlugin implements PluginInterface {
|
|
|
12
12
|
|
|
13
13
|
constructor(
|
|
14
14
|
@Inject(VoyagerConfig) private config: VoyagerConfigModel,
|
|
15
|
-
@Inject(HAPI_SERVER) private server: Server
|
|
15
|
+
@Inject(HAPI_SERVER) private server: Server,
|
|
16
16
|
) {}
|
|
17
17
|
|
|
18
18
|
async register() {
|