@common-stack/server-core 0.3.1-alpha.0 → 0.4.1
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/lib/connector/connector.d.ts +12 -0
- package/lib/utils/preferences.d.ts +3 -0
- package/package.json +50 -50
|
@@ -215,6 +215,8 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
215
215
|
keys(): IterableIterator<number>;
|
|
216
216
|
values(): IterableIterator<IPreferences<S>>;
|
|
217
217
|
includes(searchElement: IPreferences<S>, fromIndex?: number): boolean;
|
|
218
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: IPreferences<S>, index: number, array: IPreferences<S>[]) => U_3 | readonly U_3[], thisArg?: This): U_3[];
|
|
219
|
+
flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
|
|
218
220
|
[Symbol.iterator](): IterableIterator<IPreferences<S>>;
|
|
219
221
|
[Symbol.unscopables](): {
|
|
220
222
|
copyWithin: boolean;
|
|
@@ -225,6 +227,7 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
225
227
|
keys: boolean;
|
|
226
228
|
values: boolean;
|
|
227
229
|
};
|
|
230
|
+
at(index: number): IPreferences<S>;
|
|
228
231
|
};
|
|
229
232
|
getPermissionPreferences<T = ConfigurationScope>(): IPreferences<T>[];
|
|
230
233
|
getPermissionPreferencesObj<T>(): {
|
|
@@ -268,6 +271,8 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
268
271
|
keys(): IterableIterator<number>;
|
|
269
272
|
values(): IterableIterator<IPreferences<T>>;
|
|
270
273
|
includes(searchElement: IPreferences<T>, fromIndex?: number): boolean;
|
|
274
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: IPreferences<T>, index: number, array: IPreferences<T>[]) => U_3 | readonly U_3[], thisArg?: This): U_3[];
|
|
275
|
+
flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
|
|
271
276
|
[Symbol.iterator](): IterableIterator<IPreferences<T>>;
|
|
272
277
|
[Symbol.unscopables](): {
|
|
273
278
|
copyWithin: boolean;
|
|
@@ -278,6 +283,7 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
278
283
|
keys: boolean;
|
|
279
284
|
values: boolean;
|
|
280
285
|
};
|
|
286
|
+
at(index: number): IPreferences<T>;
|
|
281
287
|
};
|
|
282
288
|
getPolicyPreferences<T = ConfigurationScope>(): IPreferences<T>[];
|
|
283
289
|
getPolicyPreferencesObj<T>(): {
|
|
@@ -321,6 +327,8 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
321
327
|
keys(): IterableIterator<number>;
|
|
322
328
|
values(): IterableIterator<IPreferences<T>>;
|
|
323
329
|
includes(searchElement: IPreferences<T>, fromIndex?: number): boolean;
|
|
330
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: IPreferences<T>, index: number, array: IPreferences<T>[]) => U_3 | readonly U_3[], thisArg?: This): U_3[];
|
|
331
|
+
flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
|
|
324
332
|
[Symbol.iterator](): IterableIterator<IPreferences<T>>;
|
|
325
333
|
[Symbol.unscopables](): {
|
|
326
334
|
copyWithin: boolean;
|
|
@@ -331,6 +339,7 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
331
339
|
keys: boolean;
|
|
332
340
|
values: boolean;
|
|
333
341
|
};
|
|
342
|
+
at(index: number): IPreferences<T>;
|
|
334
343
|
};
|
|
335
344
|
getRoles(): {};
|
|
336
345
|
getRolesObj<S>(): {
|
|
@@ -374,6 +383,8 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
374
383
|
keys(): IterableIterator<number>;
|
|
375
384
|
values(): IterableIterator<IPreferences<S>>;
|
|
376
385
|
includes(searchElement: IPreferences<S>, fromIndex?: number): boolean;
|
|
386
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: IPreferences<S>, index: number, array: IPreferences<S>[]) => U_3 | readonly U_3[], thisArg?: This): U_3[];
|
|
387
|
+
flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
|
|
377
388
|
[Symbol.iterator](): IterableIterator<IPreferences<S>>;
|
|
378
389
|
[Symbol.unscopables](): {
|
|
379
390
|
copyWithin: boolean;
|
|
@@ -384,6 +395,7 @@ declare class Feature<T = ConfigurationScope> {
|
|
|
384
395
|
keys: boolean;
|
|
385
396
|
values: boolean;
|
|
386
397
|
};
|
|
398
|
+
at(index: number): IPreferences<S>;
|
|
387
399
|
};
|
|
388
400
|
getWebsocketConfig(): IWebsocketConfig;
|
|
389
401
|
private convertArrayToObject;
|
|
@@ -40,6 +40,8 @@ export declare function getCurrentPreferences<T>(preferencesDefaultArr: IPrefere
|
|
|
40
40
|
keys(): IterableIterator<number>;
|
|
41
41
|
values(): IterableIterator<IPreferences<T>>;
|
|
42
42
|
includes(searchElement: IPreferences<T>, fromIndex?: number): boolean;
|
|
43
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: IPreferences<T>, index: number, array: IPreferences<T>[]) => U_3 | readonly U_3[], thisArg?: This): U_3[];
|
|
44
|
+
flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
|
|
43
45
|
[Symbol.iterator](): IterableIterator<IPreferences<T>>;
|
|
44
46
|
[Symbol.unscopables](): {
|
|
45
47
|
copyWithin: boolean;
|
|
@@ -50,5 +52,6 @@ export declare function getCurrentPreferences<T>(preferencesDefaultArr: IPrefere
|
|
|
50
52
|
keys: boolean;
|
|
51
53
|
values: boolean;
|
|
52
54
|
};
|
|
55
|
+
at(index: number): IPreferences<T>;
|
|
53
56
|
};
|
|
54
57
|
export declare function transformPrefsToArray<T>(preferences: IPreferences<T>[]): IPreferencesData<T>[];
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"name": "@common-stack/server-core",
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "common core for higher packages to depend on",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "CDMBase LLC",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"typings": "lib/index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "yarn build:clean && yarn build:lib",
|
|
11
|
+
"build:clean": "rimraf lib",
|
|
12
|
+
"build:lib": "webpack",
|
|
13
|
+
"build:lib:watch": "yarn build:lib -- --watch",
|
|
14
|
+
"jest": "./node_modules/.bin/jest",
|
|
15
|
+
"prepublish": "yarn build",
|
|
16
|
+
"test": "jest",
|
|
17
|
+
"test:debug": "npm test -- --runInBand",
|
|
18
|
+
"test:watch": "npm test -- --watch",
|
|
19
|
+
"watch": "yarn build:lib:watch"
|
|
20
|
+
},
|
|
21
|
+
"jest": {
|
|
22
|
+
"moduleFileExtensions": [
|
|
23
|
+
"ts",
|
|
24
|
+
"tsx",
|
|
25
|
+
"js",
|
|
26
|
+
"json"
|
|
27
|
+
],
|
|
28
|
+
"modulePaths": [
|
|
29
|
+
"node_modules"
|
|
30
|
+
],
|
|
31
|
+
"roots": [
|
|
32
|
+
"src"
|
|
33
|
+
],
|
|
34
|
+
"testEnvironment": "node",
|
|
35
|
+
"testRegex": "/__tests__/.*test*\\.(ts|tsx|js)$",
|
|
36
|
+
"transform": {
|
|
37
|
+
"\\.(ts|tsx)$": "<rootDir>/../../node_modules/ts-jest/preprocessor.js"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@common-stack/core": "0.4.1"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@cdm-logger/core": ">=7.0.12"
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"gitHead": "1a36a13aa4bb8151460b3b1c636e7cd29852be5d",
|
|
50
|
+
"typescript": {
|
|
51
|
+
"definition": "lib/index.d.ts"
|
|
38
52
|
}
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@common-stack/core": "0.3.1-alpha.0"
|
|
42
|
-
},
|
|
43
|
-
"peerDependencies": {
|
|
44
|
-
"@cdm-logger/core": ">=7.0.12"
|
|
45
|
-
},
|
|
46
|
-
"publishConfig": {
|
|
47
|
-
"access": "public"
|
|
48
|
-
},
|
|
49
|
-
"gitHead": "38b12e16509f5521de83592aa4901d5b02394980",
|
|
50
|
-
"typescript": {
|
|
51
|
-
"definition": "lib/index.d.ts"
|
|
52
|
-
}
|
|
53
53
|
}
|