@nymphjs/nymph 1.0.0-alpha.10 → 1.0.0-alpha.14
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/CHANGELOG.md +20 -0
- package/dist/Nymph.types.d.ts +9 -9
- package/dist/nymphJoiProps.js +2 -4
- package/dist/nymphJoiProps.js.map +1 -1
- package/package.json +2 -2
- package/src/Nymph.types.ts +9 -9
- package/src/nymphJoiProps.ts +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.14](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2021-10-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nymphjs/nymph
|
|
9
|
+
|
|
10
|
+
# [1.0.0-alpha.13](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2021-10-14)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- tilmeld not adding permission checks correctly ([ddeb3d1](https://github.com/sciactive/nymphjs/commit/ddeb3d155af971a89fb1403c34530826448af2b8))
|
|
15
|
+
|
|
16
|
+
# [1.0.0-alpha.12](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2021-10-13)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @nymphjs/nymph
|
|
19
|
+
|
|
20
|
+
# [1.0.0-alpha.11](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2021-10-13)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
- pubsub token extraction didn't wait for promise ([abdc57e](https://github.com/sciactive/nymphjs/commit/abdc57ecef3776c4944fab41195b2ce187a97790))
|
|
25
|
+
|
|
6
26
|
# [1.0.0-alpha.10](https://github.com/sciactive/nymphjs/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2021-10-12)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @nymphjs/nymph
|
package/dist/Nymph.types.d.ts
CHANGED
|
@@ -108,14 +108,14 @@ export declare type Selector = {
|
|
|
108
108
|
};
|
|
109
109
|
export declare type FormattedSelector = {
|
|
110
110
|
type: '&' | '|' | '!&' | '!|';
|
|
111
|
-
guid?: PrimitiveSelector['guid'][];
|
|
112
|
-
'!guid'?: PrimitiveSelector['guid'][];
|
|
113
|
-
tag?: PrimitiveSelector['tag'][];
|
|
114
|
-
'!tag'?: PrimitiveSelector['tag'][];
|
|
115
|
-
defined?: PrimitiveSelector['defined'][];
|
|
116
|
-
'!defined'?: PrimitiveSelector['defined'][];
|
|
117
|
-
truthy?: PrimitiveSelector['truthy'][];
|
|
118
|
-
'!truthy'?: PrimitiveSelector['truthy'][];
|
|
111
|
+
guid?: PrimitiveSelector['guid'][][];
|
|
112
|
+
'!guid'?: PrimitiveSelector['guid'][][];
|
|
113
|
+
tag?: PrimitiveSelector['tag'][][];
|
|
114
|
+
'!tag'?: PrimitiveSelector['tag'][][];
|
|
115
|
+
defined?: PrimitiveSelector['defined'][][];
|
|
116
|
+
'!defined'?: PrimitiveSelector['defined'][][];
|
|
117
|
+
truthy?: PrimitiveSelector['truthy'][][];
|
|
118
|
+
'!truthy'?: PrimitiveSelector['truthy'][][];
|
|
119
119
|
equal?: PrimitiveSelector['equal'][];
|
|
120
120
|
'!equal'?: PrimitiveSelector['equal'][];
|
|
121
121
|
contain?: PrimitiveSelector['contain'][];
|
|
@@ -158,7 +158,7 @@ export interface TilmeldInterface {
|
|
|
158
158
|
gatekeeper(ability?: string): boolean;
|
|
159
159
|
authenticate(): void;
|
|
160
160
|
clearSession(): void;
|
|
161
|
-
extractToken(token: string): any
|
|
161
|
+
extractToken(token: string): Promise<any>;
|
|
162
162
|
fillSession(user: any): void;
|
|
163
163
|
checkClientUIDPermissions(name: string, type?: TilmeldAccessLevels): boolean;
|
|
164
164
|
}
|
package/dist/nymphJoiProps.js
CHANGED
|
@@ -15,12 +15,10 @@ exports.default = {
|
|
|
15
15
|
.try(joi_1.default.any().only().allow(null), joi_1.default.number())
|
|
16
16
|
.required(),
|
|
17
17
|
tags: joi_1.default.array()
|
|
18
|
-
.items(joi_1.default.string()
|
|
19
|
-
.pattern(/[[\x01-\x1F\x7F]]/, {
|
|
18
|
+
.items(joi_1.default.string().pattern(/[[\x01-\x1F\x7F]]/, {
|
|
20
19
|
name: 'control characters',
|
|
21
20
|
invert: true,
|
|
22
|
-
})
|
|
23
|
-
.min(1))
|
|
21
|
+
}))
|
|
24
22
|
.required(),
|
|
25
23
|
};
|
|
26
24
|
//# sourceMappingURL=nymphJoiProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nymphJoiProps.js","sourceRoot":"","sources":["../src/nymphJoiProps.ts"],"names":[],"mappings":";;;;;AAAA,8CAAsB;AAEtB,kBAAe;IACb,IAAI,EAAE,aAAG,CAAC,YAAY,EAAE;SACrB,GAAG,CACF,aAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAC5B,aAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAC1C;SACA,QAAQ,EAAE;IACb,KAAK,EAAE,aAAG,CAAC,YAAY,EAAE;SACtB,GAAG,CAAC,aAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,aAAG,CAAC,MAAM,EAAE,CAAC;SAC/C,QAAQ,EAAE;IACb,KAAK,EAAE,aAAG,CAAC,YAAY,EAAE;SACtB,GAAG,CAAC,aAAG,CAAC,GAAG,EAAE,CAAC,IAA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ph",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.14",
|
|
4
4
|
"description": "NymphJS - Nymph ORM",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"ts-jest": "^27.0.5",
|
|
52
52
|
"typescript": "^4.3.5"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "37b6345f4280c435022eb91ad25aa334dc694e32"
|
|
55
55
|
}
|
package/src/Nymph.types.ts
CHANGED
|
@@ -226,17 +226,17 @@ export type Selector = {
|
|
|
226
226
|
export type FormattedSelector = {
|
|
227
227
|
type: '&' | '|' | '!&' | '!|';
|
|
228
228
|
|
|
229
|
-
guid?: PrimitiveSelector['guid'][];
|
|
230
|
-
'!guid'?: PrimitiveSelector['guid'][];
|
|
229
|
+
guid?: PrimitiveSelector['guid'][][];
|
|
230
|
+
'!guid'?: PrimitiveSelector['guid'][][];
|
|
231
231
|
|
|
232
|
-
tag?: PrimitiveSelector['tag'][];
|
|
233
|
-
'!tag'?: PrimitiveSelector['tag'][];
|
|
232
|
+
tag?: PrimitiveSelector['tag'][][];
|
|
233
|
+
'!tag'?: PrimitiveSelector['tag'][][];
|
|
234
234
|
|
|
235
|
-
defined?: PrimitiveSelector['defined'][];
|
|
236
|
-
'!defined'?: PrimitiveSelector['defined'][];
|
|
235
|
+
defined?: PrimitiveSelector['defined'][][];
|
|
236
|
+
'!defined'?: PrimitiveSelector['defined'][][];
|
|
237
237
|
|
|
238
|
-
truthy?: PrimitiveSelector['truthy'][];
|
|
239
|
-
'!truthy'?: PrimitiveSelector['truthy'][];
|
|
238
|
+
truthy?: PrimitiveSelector['truthy'][][];
|
|
239
|
+
'!truthy'?: PrimitiveSelector['truthy'][][];
|
|
240
240
|
|
|
241
241
|
equal?: PrimitiveSelector['equal'][];
|
|
242
242
|
'!equal'?: PrimitiveSelector['equal'][];
|
|
@@ -295,7 +295,7 @@ export interface TilmeldInterface {
|
|
|
295
295
|
gatekeeper(ability?: string): boolean;
|
|
296
296
|
authenticate(): void;
|
|
297
297
|
clearSession(): void;
|
|
298
|
-
extractToken(token: string): any
|
|
298
|
+
extractToken(token: string): Promise<any>;
|
|
299
299
|
fillSession(user: any): void;
|
|
300
300
|
checkClientUIDPermissions(name: string, type?: TilmeldAccessLevels): boolean;
|
|
301
301
|
}
|
package/src/nymphJoiProps.ts
CHANGED
|
@@ -15,12 +15,10 @@ export default {
|
|
|
15
15
|
.required(),
|
|
16
16
|
tags: Joi.array()
|
|
17
17
|
.items(
|
|
18
|
-
Joi.string()
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})
|
|
23
|
-
.min(1)
|
|
18
|
+
Joi.string().pattern(/[[\x01-\x1F\x7F]]/, {
|
|
19
|
+
name: 'control characters',
|
|
20
|
+
invert: true,
|
|
21
|
+
})
|
|
24
22
|
)
|
|
25
23
|
.required(),
|
|
26
24
|
};
|