Skip to content

Commit a7c5245

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 046cab9 commit a7c5245

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

src/spec/_protocol.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface _SpecProtocol {
4747
supportsMetadataProperties: boolean
4848
supportsExternalReferenceHashes: boolean
4949
supportsLicenseAcknowledgement: boolean
50+
supportsServices:boolean
5051
}
5152

5253
/**
@@ -75,6 +76,7 @@ export class _Spec implements _SpecProtocol {
7576
readonly #supportsMetadataProperties: boolean
7677
readonly #supportsExternalReferenceHashes: boolean
7778
readonly #supportsLicenseAcknowledgement: boolean
79+
readonly #supportsServices: boolean
7880

7981
constructor (
8082
version: Version,
@@ -94,7 +96,8 @@ export class _Spec implements _SpecProtocol {
9496
supportsMetadataLicenses: boolean,
9597
supportsMetadataProperties: boolean,
9698
supportsExternalReferenceHashes: boolean,
97-
supportsLicenseAcknowledgement: boolean
99+
supportsLicenseAcknowledgement: boolean,
100+
supportsServices:boolean
98101
) {
99102
this.#version = version
100103
this.#formats = new Set(formats)
@@ -114,6 +117,7 @@ export class _Spec implements _SpecProtocol {
114117
this.#supportsMetadataProperties = supportsMetadataProperties
115118
this.#supportsExternalReferenceHashes = supportsExternalReferenceHashes
116119
this.#supportsLicenseAcknowledgement = supportsLicenseAcknowledgement
120+
this.#supportsServices = supportsServices
117121
}
118122

119123
get version (): Version {
@@ -194,4 +198,8 @@ export class _Spec implements _SpecProtocol {
194198
get supportsLicenseAcknowledgement (): boolean {
195199
return this.#supportsLicenseAcknowledgement
196200
}
201+
202+
get supportsServices (): boolean {
203+
return this.#supportsServices
204+
}
197205
}

src/spec/consts.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export const Spec1dot2: Readonly<_SpecProtocol> = Object.freeze(new _Spec(
8585
false,
8686
false,
8787
false,
88-
false
88+
false,
89+
true
8990
))
9091

9192
/** Specification v1.3 */
@@ -148,7 +149,8 @@ export const Spec1dot3: Readonly<_SpecProtocol> = Object.freeze(new _Spec(
148149
true,
149150
true,
150151
true,
151-
false
152+
false,
153+
true
152154
))
153155

154156
/** Specification v1.4 */
@@ -218,7 +220,8 @@ export const Spec1dot4: Readonly<_SpecProtocol> = Object.freeze(new _Spec(
218220
true,
219221
true,
220222
true,
221-
false
223+
false,
224+
true
222225
))
223226

224227
/** Specification v1.5 */
@@ -317,7 +320,8 @@ export const Spec1dot5: Readonly<_SpecProtocol> = Object.freeze(new _Spec(
317320
true,
318321
true,
319322
true,
320-
false
323+
false,
324+
true
321325
))
322326

323327
/** Specification v1.6 */
@@ -421,6 +425,7 @@ export const Spec1dot6: Readonly<_SpecProtocol> = Object.freeze(new _Spec(
421425
true,
422426
true,
423427
true,
428+
true,
424429
true
425430
))
426431

0 commit comments

Comments
 (0)