@theia/ovsx-client 1.47.1 → 1.48.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.
Files changed (41) hide show
  1. package/README.md +61 -61
  2. package/lib/index.d.ts +6 -6
  3. package/lib/index.js +30 -30
  4. package/lib/ovsx-api-filter.d.ts +30 -30
  5. package/lib/ovsx-api-filter.js +73 -73
  6. package/lib/ovsx-http-client.d.ts +17 -17
  7. package/lib/ovsx-http-client.js +82 -82
  8. package/lib/ovsx-mock-client.d.ts +43 -43
  9. package/lib/ovsx-mock-client.js +168 -168
  10. package/lib/ovsx-router-client.d.ts +68 -68
  11. package/lib/ovsx-router-client.js +169 -169
  12. package/lib/ovsx-router-client.spec-data.d.ts +10 -10
  13. package/lib/ovsx-router-client.spec-data.js +66 -66
  14. package/lib/ovsx-router-client.spec.d.ts +1 -1
  15. package/lib/ovsx-router-client.spec.js +107 -107
  16. package/lib/ovsx-router-filters/abstract-reg-exp-filter.d.ts +5 -5
  17. package/lib/ovsx-router-filters/abstract-reg-exp-filter.js +27 -27
  18. package/lib/ovsx-router-filters/extension-id-matches-filter.d.ts +7 -7
  19. package/lib/ovsx-router-filters/extension-id-matches-filter.js +33 -33
  20. package/lib/ovsx-router-filters/index.d.ts +2 -2
  21. package/lib/ovsx-router-filters/index.js +22 -22
  22. package/lib/ovsx-router-filters/request-contains-filter.d.ts +8 -8
  23. package/lib/ovsx-router-filters/request-contains-filter.js +35 -35
  24. package/lib/ovsx-types.d.ts +212 -212
  25. package/lib/ovsx-types.js +74 -74
  26. package/lib/types.d.ts +1 -1
  27. package/lib/types.js +17 -17
  28. package/package.json +3 -3
  29. package/src/index.ts +22 -22
  30. package/src/ovsx-api-filter.ts +91 -91
  31. package/src/ovsx-http-client.ts +85 -85
  32. package/src/ovsx-mock-client.ts +182 -182
  33. package/src/ovsx-router-client.spec-data.ts +68 -68
  34. package/src/ovsx-router-client.spec.ts +126 -126
  35. package/src/ovsx-router-client.ts +248 -248
  36. package/src/ovsx-router-filters/abstract-reg-exp-filter.ts +26 -26
  37. package/src/ovsx-router-filters/extension-id-matches-filter.ts +32 -32
  38. package/src/ovsx-router-filters/index.ts +18 -18
  39. package/src/ovsx-router-filters/request-contains-filter.ts +35 -35
  40. package/src/ovsx-types.ts +268 -268
  41. package/src/types.ts +17 -17
@@ -1,213 +1,213 @@
1
- import { MaybePromise } from './types';
2
- export interface ExtensionLike {
3
- name: string;
4
- namespace: string;
5
- version?: string;
6
- }
7
- export declare namespace ExtensionLike {
8
- function id<T extends ExtensionLike>(extension: T): `${string}.${string}`;
9
- function idWithVersion<T extends ExtensionLike>(extension: T): `${string}.${string}@${string}`;
10
- function fromId(id: string): ExtensionLike;
11
- }
12
- export interface OVSXClient {
13
- /**
14
- * GET https://openvsx.org/api/-/search
15
- */
16
- search(searchOptions?: VSXSearchOptions): Promise<VSXSearchResult>;
17
- /**
18
- * GET https://openvsx.org/api/-/query
19
- *
20
- * Fetch one or all versions of an extension.
21
- */
22
- query(queryOptions?: VSXQueryOptions): Promise<VSXQueryResult>;
23
- }
24
- /** @deprecated since 1.31.0 use {@link VSXSearchOptions} instead */
25
- export declare type VSXSearchParam = VSXSearchOptions;
26
- /**
27
- * The possible options when performing a search.
28
- *
29
- * For available options, and default values consult the `swagger`: https://open-vsx.org/swagger-ui/index.html.
30
- *
31
- * Should be aligned with https://github.com/eclipse/openvsx/blob/b5694a712e07d266801394916bac30609e16d77b/server/src/main/java/org/eclipse/openvsx/RegistryAPI.java#L246-L266
32
- */
33
- export interface VSXSearchOptions {
34
- /**
35
- * The query text for searching.
36
- */
37
- query?: string;
38
- /**
39
- * The extension category.
40
- */
41
- category?: string;
42
- /**
43
- * The maximum number of entries to return.
44
- */
45
- size?: number;
46
- /**
47
- * The number of entries to skip (usually a multiple of the page size).
48
- */
49
- offset?: number;
50
- /**
51
- * The sort order.
52
- */
53
- sortOrder?: 'asc' | 'desc';
54
- /**
55
- * The sort key.
56
- */
57
- sortBy?: 'averageRating' | 'downloadCount' | 'relevance' | 'timestamp';
58
- /**
59
- * By default an OpenVSX registry will return the last known version of
60
- * extensions. Setting this field to `true` will have the registry specify
61
- * the {@link VSXExtensionRaw.allVersions} field which references all known
62
- * versions for each returned extension.
63
- *
64
- * @default false
65
- */
66
- includeAllVersions?: boolean;
67
- }
68
- /**
69
- * Should be aligned with https://github.com/eclipse/openvsx/blob/e8f64fe145fc05d2de1469735d50a7a90e400bc4/server/src/main/java/org/eclipse/openvsx/json/SearchResultJson.java
70
- */
71
- export interface VSXSearchResult {
72
- error?: string;
73
- offset: number;
74
- extensions: VSXSearchEntry[];
75
- }
76
- /** @deprecated since 1.31.0 use {@link VSXQueryOptions} instead */
77
- export declare type VSXQueryParam = VSXQueryOptions;
78
- /**
79
- * The possible options when performing a search.
80
- *
81
- * For available options, and default values consult the `swagger`: https://open-vsx.org/swagger-ui/index.html.
82
- *
83
- * Should be aligned with https://github.com/eclipse/openvsx/blob/b5694a712e07d266801394916bac30609e16d77b/server/src/main/java/org/eclipse/openvsx/json/QueryParamJson.java#L18-L46
84
- */
85
- export interface VSXQueryOptions {
86
- namespaceName?: string;
87
- extensionName?: string;
88
- extensionVersion?: string;
89
- extensionId?: string;
90
- extensionUuid?: string;
91
- namespaceUuid?: string;
92
- includeAllVersions?: boolean;
93
- }
94
- export interface VSXQueryResult {
95
- extensions: VSXExtensionRaw[];
96
- }
97
- /**
98
- * This type describes the data as found in {@link VSXSearchEntry.allVersions}.
99
- *
100
- * Note that this type only represents one version of a given plugin, despite the name.
101
- */
102
- export interface VSXAllVersions {
103
- url: string;
104
- version: string;
105
- engines?: {
106
- [version: string]: string;
107
- };
108
- }
109
- /**
110
- * Should be aligned with https://github.com/eclipse/openvsx/blob/master/server/src/main/java/org/eclipse/openvsx/json/SearchEntryJson.java
111
- */
112
- export interface VSXSearchEntry {
113
- url: string;
114
- files: {
115
- download: string;
116
- manifest?: string;
117
- readme?: string;
118
- license?: string;
119
- icon?: string;
120
- };
121
- name: string;
122
- namespace: string;
123
- version: string;
124
- timestamp: string;
125
- averageRating?: number;
126
- downloadCount: number;
127
- displayName?: string;
128
- description?: string;
129
- /**
130
- * May be undefined when {@link VSXSearchOptions.includeAllVersions} is
131
- * `false` or `undefined`.
132
- */
133
- allVersions?: VSXAllVersions[];
134
- }
135
- export declare type VSXExtensionNamespaceAccess = 'public' | 'restricted';
136
- /**
137
- * Should be aligned with https://github.com/eclipse/openvsx/blob/master/server/src/main/java/org/eclipse/openvsx/json/UserJson.java
138
- */
139
- export interface VSXUser {
140
- loginName: string;
141
- homepage?: string;
142
- }
143
- export interface VSXExtensionRawFiles {
144
- download: string;
145
- readme?: string;
146
- license?: string;
147
- icon?: string;
148
- }
149
- /**
150
- * Should be aligned with https://github.com/eclipse/openvsx/blob/master/server/src/main/java/org/eclipse/openvsx/json/ExtensionJson.java
151
- */
152
- export interface VSXExtensionRaw {
153
- error?: string;
154
- namespaceUrl: string;
155
- reviewsUrl: string;
156
- name: string;
157
- namespace: string;
158
- publishedBy: VSXUser;
159
- namespaceAccess: VSXExtensionNamespaceAccess;
160
- files: VSXExtensionRawFiles;
161
- allVersions: {
162
- [version: string]: string;
163
- };
164
- averageRating?: number;
165
- downloadCount: number;
166
- reviewCount: number;
167
- version: string;
168
- timestamp: string;
169
- preview?: boolean;
170
- verified?: boolean;
171
- displayName?: string;
172
- description?: string;
173
- categories?: string[];
174
- tags?: string[];
175
- license?: string;
176
- homepage?: string;
177
- repository?: string;
178
- bugs?: string;
179
- markdown?: string;
180
- galleryColor?: string;
181
- galleryTheme?: string;
182
- qna?: string;
183
- engines?: {
184
- [engine: string]: string;
185
- };
186
- }
187
- export interface VSXResponseError extends Error {
188
- statusCode: number;
189
- }
190
- export declare namespace VSXResponseError {
191
- function is(error: unknown): error is VSXResponseError;
192
- }
193
- /**
194
- * Builtin namespaces maintained by the framework.
195
- */
196
- export declare namespace VSXBuiltinNamespaces {
197
- /**
198
- * Namespace for individual vscode builtin extensions.
199
- */
200
- const VSCODE = "vscode";
201
- /**
202
- * Namespace for vscode builtin extension packs.
203
- * - corresponds to: https://github.com/eclipse-theia/vscode-builtin-extensions/blob/af9cfeb2ea23e1668a8340c1c2fb5afd56be07d7/src/create-extension-pack.js#L45
204
- */
205
- const THEIA = "eclipse-theia";
206
- /**
207
- * Determines if the extension namespace is a builtin maintained by the framework.
208
- * @param namespace the extension namespace to verify.
209
- */
210
- function is(namespace: string): boolean;
211
- }
212
- export declare type OVSXClientProvider = (uri: string) => MaybePromise<OVSXClient>;
1
+ import { MaybePromise } from './types';
2
+ export interface ExtensionLike {
3
+ name: string;
4
+ namespace: string;
5
+ version?: string;
6
+ }
7
+ export declare namespace ExtensionLike {
8
+ function id<T extends ExtensionLike>(extension: T): `${string}.${string}`;
9
+ function idWithVersion<T extends ExtensionLike>(extension: T): `${string}.${string}@${string}`;
10
+ function fromId(id: string): ExtensionLike;
11
+ }
12
+ export interface OVSXClient {
13
+ /**
14
+ * GET https://openvsx.org/api/-/search
15
+ */
16
+ search(searchOptions?: VSXSearchOptions): Promise<VSXSearchResult>;
17
+ /**
18
+ * GET https://openvsx.org/api/-/query
19
+ *
20
+ * Fetch one or all versions of an extension.
21
+ */
22
+ query(queryOptions?: VSXQueryOptions): Promise<VSXQueryResult>;
23
+ }
24
+ /** @deprecated since 1.31.0 use {@link VSXSearchOptions} instead */
25
+ export declare type VSXSearchParam = VSXSearchOptions;
26
+ /**
27
+ * The possible options when performing a search.
28
+ *
29
+ * For available options, and default values consult the `swagger`: https://open-vsx.org/swagger-ui/index.html.
30
+ *
31
+ * Should be aligned with https://github.com/eclipse/openvsx/blob/b5694a712e07d266801394916bac30609e16d77b/server/src/main/java/org/eclipse/openvsx/RegistryAPI.java#L246-L266
32
+ */
33
+ export interface VSXSearchOptions {
34
+ /**
35
+ * The query text for searching.
36
+ */
37
+ query?: string;
38
+ /**
39
+ * The extension category.
40
+ */
41
+ category?: string;
42
+ /**
43
+ * The maximum number of entries to return.
44
+ */
45
+ size?: number;
46
+ /**
47
+ * The number of entries to skip (usually a multiple of the page size).
48
+ */
49
+ offset?: number;
50
+ /**
51
+ * The sort order.
52
+ */
53
+ sortOrder?: 'asc' | 'desc';
54
+ /**
55
+ * The sort key.
56
+ */
57
+ sortBy?: 'averageRating' | 'downloadCount' | 'relevance' | 'timestamp';
58
+ /**
59
+ * By default an OpenVSX registry will return the last known version of
60
+ * extensions. Setting this field to `true` will have the registry specify
61
+ * the {@link VSXExtensionRaw.allVersions} field which references all known
62
+ * versions for each returned extension.
63
+ *
64
+ * @default false
65
+ */
66
+ includeAllVersions?: boolean;
67
+ }
68
+ /**
69
+ * Should be aligned with https://github.com/eclipse/openvsx/blob/e8f64fe145fc05d2de1469735d50a7a90e400bc4/server/src/main/java/org/eclipse/openvsx/json/SearchResultJson.java
70
+ */
71
+ export interface VSXSearchResult {
72
+ error?: string;
73
+ offset: number;
74
+ extensions: VSXSearchEntry[];
75
+ }
76
+ /** @deprecated since 1.31.0 use {@link VSXQueryOptions} instead */
77
+ export declare type VSXQueryParam = VSXQueryOptions;
78
+ /**
79
+ * The possible options when performing a search.
80
+ *
81
+ * For available options, and default values consult the `swagger`: https://open-vsx.org/swagger-ui/index.html.
82
+ *
83
+ * Should be aligned with https://github.com/eclipse/openvsx/blob/b5694a712e07d266801394916bac30609e16d77b/server/src/main/java/org/eclipse/openvsx/json/QueryParamJson.java#L18-L46
84
+ */
85
+ export interface VSXQueryOptions {
86
+ namespaceName?: string;
87
+ extensionName?: string;
88
+ extensionVersion?: string;
89
+ extensionId?: string;
90
+ extensionUuid?: string;
91
+ namespaceUuid?: string;
92
+ includeAllVersions?: boolean;
93
+ }
94
+ export interface VSXQueryResult {
95
+ extensions: VSXExtensionRaw[];
96
+ }
97
+ /**
98
+ * This type describes the data as found in {@link VSXSearchEntry.allVersions}.
99
+ *
100
+ * Note that this type only represents one version of a given plugin, despite the name.
101
+ */
102
+ export interface VSXAllVersions {
103
+ url: string;
104
+ version: string;
105
+ engines?: {
106
+ [version: string]: string;
107
+ };
108
+ }
109
+ /**
110
+ * Should be aligned with https://github.com/eclipse/openvsx/blob/master/server/src/main/java/org/eclipse/openvsx/json/SearchEntryJson.java
111
+ */
112
+ export interface VSXSearchEntry {
113
+ url: string;
114
+ files: {
115
+ download: string;
116
+ manifest?: string;
117
+ readme?: string;
118
+ license?: string;
119
+ icon?: string;
120
+ };
121
+ name: string;
122
+ namespace: string;
123
+ version: string;
124
+ timestamp: string;
125
+ averageRating?: number;
126
+ downloadCount: number;
127
+ displayName?: string;
128
+ description?: string;
129
+ /**
130
+ * May be undefined when {@link VSXSearchOptions.includeAllVersions} is
131
+ * `false` or `undefined`.
132
+ */
133
+ allVersions?: VSXAllVersions[];
134
+ }
135
+ export declare type VSXExtensionNamespaceAccess = 'public' | 'restricted';
136
+ /**
137
+ * Should be aligned with https://github.com/eclipse/openvsx/blob/master/server/src/main/java/org/eclipse/openvsx/json/UserJson.java
138
+ */
139
+ export interface VSXUser {
140
+ loginName: string;
141
+ homepage?: string;
142
+ }
143
+ export interface VSXExtensionRawFiles {
144
+ download: string;
145
+ readme?: string;
146
+ license?: string;
147
+ icon?: string;
148
+ }
149
+ /**
150
+ * Should be aligned with https://github.com/eclipse/openvsx/blob/master/server/src/main/java/org/eclipse/openvsx/json/ExtensionJson.java
151
+ */
152
+ export interface VSXExtensionRaw {
153
+ error?: string;
154
+ namespaceUrl: string;
155
+ reviewsUrl: string;
156
+ name: string;
157
+ namespace: string;
158
+ publishedBy: VSXUser;
159
+ namespaceAccess: VSXExtensionNamespaceAccess;
160
+ files: VSXExtensionRawFiles;
161
+ allVersions: {
162
+ [version: string]: string;
163
+ };
164
+ averageRating?: number;
165
+ downloadCount: number;
166
+ reviewCount: number;
167
+ version: string;
168
+ timestamp: string;
169
+ preview?: boolean;
170
+ verified?: boolean;
171
+ displayName?: string;
172
+ description?: string;
173
+ categories?: string[];
174
+ tags?: string[];
175
+ license?: string;
176
+ homepage?: string;
177
+ repository?: string;
178
+ bugs?: string;
179
+ markdown?: string;
180
+ galleryColor?: string;
181
+ galleryTheme?: string;
182
+ qna?: string;
183
+ engines?: {
184
+ [engine: string]: string;
185
+ };
186
+ }
187
+ export interface VSXResponseError extends Error {
188
+ statusCode: number;
189
+ }
190
+ export declare namespace VSXResponseError {
191
+ function is(error: unknown): error is VSXResponseError;
192
+ }
193
+ /**
194
+ * Builtin namespaces maintained by the framework.
195
+ */
196
+ export declare namespace VSXBuiltinNamespaces {
197
+ /**
198
+ * Namespace for individual vscode builtin extensions.
199
+ */
200
+ const VSCODE = "vscode";
201
+ /**
202
+ * Namespace for vscode builtin extension packs.
203
+ * - corresponds to: https://github.com/eclipse-theia/vscode-builtin-extensions/blob/af9cfeb2ea23e1668a8340c1c2fb5afd56be07d7/src/create-extension-pack.js#L45
204
+ */
205
+ const THEIA = "eclipse-theia";
206
+ /**
207
+ * Determines if the extension namespace is a builtin maintained by the framework.
208
+ * @param namespace the extension namespace to verify.
209
+ */
210
+ function is(namespace: string): boolean;
211
+ }
212
+ export declare type OVSXClientProvider = (uri: string) => MaybePromise<OVSXClient>;
213
213
  //# sourceMappingURL=ovsx-types.d.ts.map
package/lib/ovsx-types.js CHANGED
@@ -1,75 +1,75 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2020 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.VSXBuiltinNamespaces = exports.VSXResponseError = exports.ExtensionLike = void 0;
19
- var ExtensionLike;
20
- (function (ExtensionLike) {
21
- function id(extension) {
22
- return `${extension.namespace}.${extension.name}`;
23
- }
24
- ExtensionLike.id = id;
25
- function idWithVersion(extension) {
26
- if (!extension.version) {
27
- throw new Error(`no valid "version" value provided for "${id(extension)}"`);
28
- }
29
- return `${id(extension)}@${extension.version}`;
30
- }
31
- ExtensionLike.idWithVersion = idWithVersion;
32
- // eslint-disable-next-line @typescript-eslint/no-shadow
33
- function fromId(id) {
34
- const [left, version] = id.split('@', 2);
35
- const [namespace, name] = left.split('.', 2);
36
- return {
37
- name,
38
- namespace,
39
- version
40
- };
41
- }
42
- ExtensionLike.fromId = fromId;
43
- })(ExtensionLike = exports.ExtensionLike || (exports.ExtensionLike = {}));
44
- var VSXResponseError;
45
- (function (VSXResponseError) {
46
- function is(error) {
47
- return !!error && typeof error === 'object' && typeof error.statusCode === 'number';
48
- }
49
- VSXResponseError.is = is;
50
- })(VSXResponseError = exports.VSXResponseError || (exports.VSXResponseError = {}));
51
- /**
52
- * Builtin namespaces maintained by the framework.
53
- */
54
- var VSXBuiltinNamespaces;
55
- (function (VSXBuiltinNamespaces) {
56
- /**
57
- * Namespace for individual vscode builtin extensions.
58
- */
59
- VSXBuiltinNamespaces.VSCODE = 'vscode';
60
- /**
61
- * Namespace for vscode builtin extension packs.
62
- * - corresponds to: https://github.com/eclipse-theia/vscode-builtin-extensions/blob/af9cfeb2ea23e1668a8340c1c2fb5afd56be07d7/src/create-extension-pack.js#L45
63
- */
64
- VSXBuiltinNamespaces.THEIA = 'eclipse-theia';
65
- /**
66
- * Determines if the extension namespace is a builtin maintained by the framework.
67
- * @param namespace the extension namespace to verify.
68
- */
69
- function is(namespace) {
70
- return namespace === VSXBuiltinNamespaces.VSCODE
71
- || namespace === VSXBuiltinNamespaces.THEIA;
72
- }
73
- VSXBuiltinNamespaces.is = is;
74
- })(VSXBuiltinNamespaces = exports.VSXBuiltinNamespaces || (exports.VSXBuiltinNamespaces = {}));
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.VSXBuiltinNamespaces = exports.VSXResponseError = exports.ExtensionLike = void 0;
19
+ var ExtensionLike;
20
+ (function (ExtensionLike) {
21
+ function id(extension) {
22
+ return `${extension.namespace}.${extension.name}`;
23
+ }
24
+ ExtensionLike.id = id;
25
+ function idWithVersion(extension) {
26
+ if (!extension.version) {
27
+ throw new Error(`no valid "version" value provided for "${id(extension)}"`);
28
+ }
29
+ return `${id(extension)}@${extension.version}`;
30
+ }
31
+ ExtensionLike.idWithVersion = idWithVersion;
32
+ // eslint-disable-next-line @typescript-eslint/no-shadow
33
+ function fromId(id) {
34
+ const [left, version] = id.split('@', 2);
35
+ const [namespace, name] = left.split('.', 2);
36
+ return {
37
+ name,
38
+ namespace,
39
+ version
40
+ };
41
+ }
42
+ ExtensionLike.fromId = fromId;
43
+ })(ExtensionLike = exports.ExtensionLike || (exports.ExtensionLike = {}));
44
+ var VSXResponseError;
45
+ (function (VSXResponseError) {
46
+ function is(error) {
47
+ return !!error && typeof error === 'object' && typeof error.statusCode === 'number';
48
+ }
49
+ VSXResponseError.is = is;
50
+ })(VSXResponseError = exports.VSXResponseError || (exports.VSXResponseError = {}));
51
+ /**
52
+ * Builtin namespaces maintained by the framework.
53
+ */
54
+ var VSXBuiltinNamespaces;
55
+ (function (VSXBuiltinNamespaces) {
56
+ /**
57
+ * Namespace for individual vscode builtin extensions.
58
+ */
59
+ VSXBuiltinNamespaces.VSCODE = 'vscode';
60
+ /**
61
+ * Namespace for vscode builtin extension packs.
62
+ * - corresponds to: https://github.com/eclipse-theia/vscode-builtin-extensions/blob/af9cfeb2ea23e1668a8340c1c2fb5afd56be07d7/src/create-extension-pack.js#L45
63
+ */
64
+ VSXBuiltinNamespaces.THEIA = 'eclipse-theia';
65
+ /**
66
+ * Determines if the extension namespace is a builtin maintained by the framework.
67
+ * @param namespace the extension namespace to verify.
68
+ */
69
+ function is(namespace) {
70
+ return namespace === VSXBuiltinNamespaces.VSCODE
71
+ || namespace === VSXBuiltinNamespaces.THEIA;
72
+ }
73
+ VSXBuiltinNamespaces.is = is;
74
+ })(VSXBuiltinNamespaces = exports.VSXBuiltinNamespaces || (exports.VSXBuiltinNamespaces = {}));
75
75
  //# sourceMappingURL=ovsx-types.js.map
package/lib/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare type MaybePromise<T> = T | PromiseLike<T>;
1
+ export declare type MaybePromise<T> = T | PromiseLike<T>;
2
2
  //# sourceMappingURL=types.d.ts.map
package/lib/types.js CHANGED
@@ -1,18 +1,18 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2023 Ericsson and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2023 Ericsson and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/ovsx-client",
3
- "version": "1.47.1",
3
+ "version": "1.48.1",
4
4
  "description": "Theia Open-VSX Client",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -29,9 +29,9 @@
29
29
  "watch": "theiaext watch"
30
30
  },
31
31
  "dependencies": {
32
- "@theia/request": "1.47.1",
32
+ "@theia/request": "1.48.1",
33
33
  "semver": "^7.5.4",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
- "gitHead": "ddc29054061700e54fe819f147a7ec335a6d8037"
36
+ "gitHead": "04c631933dfd14f58d1df5b9b28dd5596c84ec04"
37
37
  }