@balena/pinejs 14.49.1 → 14.49.2
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.
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
- commits:
|
|
2
|
+
- subject: Fixing issue reported by tsc 4.8.2
|
|
3
|
+
hash: 57b05baa09718525b4e0e85c99b2c6c8c5b387ae
|
|
4
|
+
body: >
|
|
5
|
+
Inferenced type of check could be I & null
|
|
6
|
+
|
|
7
|
+
when I is not set in the overload.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
tsc 4.8 https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#unconstrained-generics-no-longer-assignable-to
|
|
11
|
+
footer:
|
|
12
|
+
Change-type: patch
|
|
13
|
+
change-type: patch
|
|
14
|
+
Signed-off-by: Harald Fischer <harald@balena.io>
|
|
15
|
+
signed-off-by: Harald Fischer <harald@balena.io>
|
|
16
|
+
author: Harald Fischer
|
|
17
|
+
nested: []
|
|
18
|
+
version: 14.49.2
|
|
19
|
+
title: "'Fixing issue reported by tsc 4.8.2'"
|
|
20
|
+
date: 2022-08-26T12:14:07.410Z
|
|
1
21
|
- commits:
|
|
2
22
|
- subject: Lazily define read-only hook args to avoid doing so unnecessarily
|
|
3
23
|
hash: 56eef2eb82ab4f0b2aa436e8b126d0013df7a790
|
|
@@ -9,7 +29,7 @@
|
|
|
9
29
|
nested: []
|
|
10
30
|
version: 14.49.1
|
|
11
31
|
title: "'Lazily define read-only hook args to avoid doing so unnecessarily'"
|
|
12
|
-
date: 2022-08-08T12:
|
|
32
|
+
date: 2022-08-08T12:02:25.739Z
|
|
13
33
|
- commits:
|
|
14
34
|
- subject: Make checking that read-only TX queries are SELECT queries optional
|
|
15
35
|
hash: 7d6ef12d558b6cd5438b5cf277d969ccaccb5c21
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
|
|
|
4
4
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
+
# v14.49.2
|
|
8
|
+
## (2022-08-26)
|
|
9
|
+
|
|
10
|
+
* Fixing issue reported by tsc 4.8.2 [Harald Fischer]
|
|
11
|
+
|
|
7
12
|
# v14.49.1
|
|
8
13
|
## (2022-08-08)
|
|
9
14
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
14.49.
|
|
1
|
+
14.49.2
|
|
@@ -25,9 +25,9 @@ declare type NestedCheck<T> = NestedCheckOr<T> | NestedCheckAnd<T> | NestedCheck
|
|
|
25
25
|
declare type PermissionCheck = NestedCheck<string>;
|
|
26
26
|
declare type MappedType<I, O> = O extends NestedCheck<infer T> ? Exclude<Exclude<I, string> | T, boolean> : Exclude<Exclude<I, string> | O, boolean>;
|
|
27
27
|
declare type MappedNestedCheck<T extends NestedCheck<I>, I, O> = T extends NestedCheckOr<I> ? NestedCheckOr<MappedType<I, O>> : T extends NestedCheckAnd<I> ? NestedCheckAnd<MappedType<I, O>> : T extends NestedCheckArray<I> ? NestedCheckArray<MappedType<I, O>> : Exclude<I, string> | O;
|
|
28
|
-
export declare function nestedCheck<I, O>(check: string, stringCallback: (s: string) => O): O;
|
|
29
|
-
export declare function nestedCheck<I, O>(check: boolean, stringCallback: (s: string) => O): boolean;
|
|
30
|
-
export declare function nestedCheck<I, O>(check: NestedCheck<I>, stringCallback: (s: string) => O): Exclude<I, string> | O | MappedNestedCheck<typeof check, I, O>;
|
|
28
|
+
export declare function nestedCheck<I extends {}, O>(check: string, stringCallback: (s: string) => O): O;
|
|
29
|
+
export declare function nestedCheck<I extends {}, O>(check: boolean, stringCallback: (s: string) => O): boolean;
|
|
30
|
+
export declare function nestedCheck<I extends {}, O>(check: NestedCheck<I>, stringCallback: (s: string) => O): Exclude<I, string> | O | MappedNestedCheck<typeof check, I, O>;
|
|
31
31
|
export declare const checkPassword: (username: string, password: string) => Promise<{
|
|
32
32
|
id: number;
|
|
33
33
|
actor: number;
|
|
@@ -5,7 +5,6 @@ require("./sbvr-loader");
|
|
|
5
5
|
const dbModule = require("../database-layer/db");
|
|
6
6
|
const configLoader = require("../config-loader/config-loader");
|
|
7
7
|
const migrator = require("../migrator/sync");
|
|
8
|
-
const migratorUtils = require("../migrator/utils");
|
|
9
8
|
const sbvrUtils = require("../sbvr-api/sbvr-utils");
|
|
10
9
|
exports.dbModule = require("../database-layer/db");
|
|
11
10
|
var pinejs_session_store_1 = require("../pinejs-session-store/pinejs-session-store");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/server-glue/module.ts"],"names":[],"mappings":";;;AAEA,yBAAuB;AAEvB,iDAAiD;AACjD,+DAA+D;AAC/D,6CAA6C;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/server-glue/module.ts"],"names":[],"mappings":";;;AAEA,yBAAuB;AAEvB,iDAAiD;AACjD,+DAA+D;AAC/D,6CAA6C;AAG7C,oDAAoD;AAEpD,mDAAiD;AACjD,qFAAkF;AAAzE,0HAAA,kBAAkB,OAAA;AAC3B,sDAAoD;AACpD,yDAAuD;AACvD,+CAA6C;AAC7C,8CAA4C;AAC5C,oDAAkD;AAClD,6CAA2C;AAI3C,IAAI,kBAAoD,CAAC;AACzD,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,EAAE;IACpC,kBAAkB,GAAG;QACpB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,YAAY;KACpB,CAAC;CACF;KAAM;IACN,IAAI,WAAmB,CAAC;IACxB,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;QAC7B,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;KACvC;SAAM,IAAI,QAAQ,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,EAAE;QAC7C,WAAW,GAAG,+CAA+C,CAAC;KAC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QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC;SACvD;QACD,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE5B,OAAO,SAAS,CAAC;KACjB;IAAC,OAAO,GAAQ,EAAE;QAClB,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;QAC3D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAChB;AACF,CAAC,CAAC;AAlCW,QAAA,IAAI,QAkCf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/pinejs",
|
|
3
|
-
"version": "14.49.
|
|
3
|
+
"version": "14.49.2",
|
|
4
4
|
"main": "out/server-glue/module",
|
|
5
5
|
"repository": "git@github.com:balena-io/pinejs.git",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -144,6 +144,6 @@
|
|
|
144
144
|
"recursive": true
|
|
145
145
|
},
|
|
146
146
|
"versionist": {
|
|
147
|
-
"publishedAt": "2022-08-
|
|
147
|
+
"publishedAt": "2022-08-26T12:14:07.875Z"
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -175,19 +175,19 @@ const isAnd = <T>(x: any): x is NestedCheckAnd<T> =>
|
|
|
175
175
|
typeof x === 'object' && 'and' in x;
|
|
176
176
|
const isOr = <T>(x: any): x is NestedCheckOr<T> =>
|
|
177
177
|
typeof x === 'object' && 'or' in x;
|
|
178
|
-
export function nestedCheck<I, O>(
|
|
178
|
+
export function nestedCheck<I extends {}, O>(
|
|
179
179
|
check: string,
|
|
180
180
|
stringCallback: (s: string) => O,
|
|
181
181
|
): O;
|
|
182
|
-
export function nestedCheck<I, O>(
|
|
182
|
+
export function nestedCheck<I extends {}, O>(
|
|
183
183
|
check: boolean,
|
|
184
184
|
stringCallback: (s: string) => O,
|
|
185
185
|
): boolean;
|
|
186
|
-
export function nestedCheck<I, O>(
|
|
186
|
+
export function nestedCheck<I extends {}, O>(
|
|
187
187
|
check: NestedCheck<I>,
|
|
188
188
|
stringCallback: (s: string) => O,
|
|
189
189
|
): Exclude<I, string> | O | MappedNestedCheck<typeof check, I, O>;
|
|
190
|
-
export function nestedCheck<I, O>(
|
|
190
|
+
export function nestedCheck<I extends {}, O>(
|
|
191
191
|
check: NestedCheck<I>,
|
|
192
192
|
stringCallback: (s: string) => O,
|
|
193
193
|
): boolean | Exclude<I, string> | O | MappedNestedCheck<typeof check, I, O> {
|