ovsx 0.5.0 → 0.5.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.
- package/CHANGELOG.md +63 -63
- package/README.md +48 -48
- package/lib/check-license.d.ts +12 -12
- package/lib/check-license.js +91 -110
- package/lib/check-license.js.map +1 -1
- package/lib/create-namespace.d.ts +20 -20
- package/lib/create-namespace.js +32 -43
- package/lib/create-namespace.js.map +1 -1
- package/lib/get.d.ts +36 -36
- package/lib/get.js +107 -122
- package/lib/get.js.map +1 -1
- package/lib/index.d.ts +15 -15
- package/lib/index.js +23 -23
- package/lib/main.d.ts +10 -10
- package/lib/main.js +105 -93
- package/lib/main.js.map +1 -1
- package/lib/ovsx +10 -10
- package/lib/publish.d.ts +39 -39
- package/lib/publish.d.ts.map +1 -1
- package/lib/publish.js +79 -94
- package/lib/publish.js.map +1 -1
- package/lib/registry.d.ts +130 -130
- package/lib/registry.js +201 -201
- package/lib/util.d.ts +35 -35
- package/lib/util.d.ts.map +1 -1
- package/lib/util.js +172 -183
- package/lib/util.js.map +1 -1
- package/package.json +67 -67
- package/src/main.ts +16 -4
- package/src/ovsx +10 -10
- package/src/publish.ts +13 -12
- package/src/util.ts +5 -2
package/lib/get.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 TypeFox and others
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
********************************************************************************/
|
|
10
|
-
import { RegistryOptions } from "./registry";
|
|
11
|
-
/**
|
|
12
|
-
* Downloads an extension or its metadata.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getExtension(options: GetOptions): Promise<void>;
|
|
15
|
-
export interface GetOptions extends RegistryOptions {
|
|
16
|
-
/**
|
|
17
|
-
* Identifier in the form `namespace.extension` or `namespace/extension`.
|
|
18
|
-
*/
|
|
19
|
-
extensionId: string;
|
|
20
|
-
/**
|
|
21
|
-
* Target platform.
|
|
22
|
-
*/
|
|
23
|
-
target?: string;
|
|
24
|
-
/**
|
|
25
|
-
* An exact version or version range.
|
|
26
|
-
*/
|
|
27
|
-
version?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Save the output in the specified file or directory.
|
|
30
|
-
*/
|
|
31
|
-
output?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Print the extension's metadata instead of downloading it.
|
|
34
|
-
*/
|
|
35
|
-
metadata?: boolean;
|
|
36
|
-
}
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019 TypeFox and others
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
********************************************************************************/
|
|
10
|
+
import { RegistryOptions } from "./registry";
|
|
11
|
+
/**
|
|
12
|
+
* Downloads an extension or its metadata.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getExtension(options: GetOptions): Promise<void>;
|
|
15
|
+
export interface GetOptions extends RegistryOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Identifier in the form `namespace.extension` or `namespace/extension`.
|
|
18
|
+
*/
|
|
19
|
+
extensionId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Target platform.
|
|
22
|
+
*/
|
|
23
|
+
target?: string;
|
|
24
|
+
/**
|
|
25
|
+
* An exact version or version range.
|
|
26
|
+
*/
|
|
27
|
+
version?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Save the output in the specified file or directory.
|
|
30
|
+
*/
|
|
31
|
+
output?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Print the extension's metadata instead of downloading it.
|
|
34
|
+
*/
|
|
35
|
+
metadata?: boolean;
|
|
36
|
+
}
|
|
37
37
|
//# sourceMappingURL=get.d.ts.map
|
package/lib/get.js
CHANGED
|
@@ -1,123 +1,108 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2019 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
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
-
********************************************************************************/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
filePath = path.resolve(process.cwd(), output, fileName);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
filePath = path.resolve(process.cwd(), output);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
filePath = path.resolve(process.cwd(), fileName);
|
|
116
|
-
}
|
|
117
|
-
yield util_1.makeDirs(path.dirname(filePath));
|
|
118
|
-
const target = extension.targetPlatform !== 'universal' ? '@' + extension.targetPlatform : '';
|
|
119
|
-
console.log(`Downloading ${extension.namespace}.${extension.name}-${extension.version}${target} to ${filePath}`);
|
|
120
|
-
yield registry.download(filePath, new URL(downloadUrl));
|
|
121
|
-
});
|
|
122
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2019 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
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
********************************************************************************/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const fs = require("fs");
|
|
13
|
+
const path = require("path");
|
|
14
|
+
const semver = require("semver");
|
|
15
|
+
const registry_1 = require("./registry");
|
|
16
|
+
const util_1 = require("./util");
|
|
17
|
+
/**
|
|
18
|
+
* Downloads an extension or its metadata.
|
|
19
|
+
*/
|
|
20
|
+
async function getExtension(options) {
|
|
21
|
+
util_1.addEnvOptions(options);
|
|
22
|
+
if (!options.target) {
|
|
23
|
+
options.target = 'universal';
|
|
24
|
+
}
|
|
25
|
+
const registry = new registry_1.Registry(options);
|
|
26
|
+
const match = util_1.matchExtensionId(options.extensionId);
|
|
27
|
+
if (!match) {
|
|
28
|
+
throw new Error('The extension identifier must have the form `namespace.extension`.');
|
|
29
|
+
}
|
|
30
|
+
const extension = await registry.getMetadata(match[1], match[2], options.target);
|
|
31
|
+
if (extension.error) {
|
|
32
|
+
throw new Error(extension.error);
|
|
33
|
+
}
|
|
34
|
+
const matchingVersion = await findMatchingVersion(registry, extension, options.version);
|
|
35
|
+
if (matchingVersion.error) {
|
|
36
|
+
throw new Error(matchingVersion.error);
|
|
37
|
+
}
|
|
38
|
+
if (options.metadata) {
|
|
39
|
+
await printMetadata(registry, matchingVersion, options.output);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
await download(registry, matchingVersion, options.output);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.getExtension = getExtension;
|
|
46
|
+
function findMatchingVersion(registry, extension, constraint) {
|
|
47
|
+
if (!constraint || semver.satisfies(extension.version, constraint)) {
|
|
48
|
+
return Promise.resolve(extension);
|
|
49
|
+
}
|
|
50
|
+
for (const version of Object.keys(extension.allVersions)) {
|
|
51
|
+
if (!isAlias(extension, version) && semver.satisfies(version, constraint)) {
|
|
52
|
+
try {
|
|
53
|
+
return registry.getJson(new URL(extension.allVersions[version]));
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
return Promise.reject(err);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return Promise.reject(`Extension ${extension.namespace}.${extension.name} has no published version matching '${constraint}'`);
|
|
61
|
+
}
|
|
62
|
+
function isAlias(extension, version) {
|
|
63
|
+
return extension.versionAlias.includes(version);
|
|
64
|
+
}
|
|
65
|
+
async function printMetadata(registry, extension, output) {
|
|
66
|
+
const metadata = JSON.stringify(extension, null, 4);
|
|
67
|
+
if (!output) {
|
|
68
|
+
console.log(metadata);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
let filePath;
|
|
72
|
+
const stats = await util_1.optionalStat(output);
|
|
73
|
+
if (stats && stats.isDirectory() || !stats && output.endsWith(path.sep)) {
|
|
74
|
+
const fileName = `${extension.namespace}.${extension.name}-${extension.version}.json`;
|
|
75
|
+
filePath = path.resolve(process.cwd(), output, fileName);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
filePath = path.resolve(process.cwd(), output);
|
|
79
|
+
}
|
|
80
|
+
await util_1.makeDirs(path.dirname(filePath));
|
|
81
|
+
await util_1.promisify(fs.writeFile)(filePath, metadata);
|
|
82
|
+
}
|
|
83
|
+
async function download(registry, extension, output) {
|
|
84
|
+
const downloadUrl = extension.files.download;
|
|
85
|
+
if (!downloadUrl) {
|
|
86
|
+
throw new Error(`Extension ${extension.namespace}.${extension.name} does not provide a download URL.`);
|
|
87
|
+
}
|
|
88
|
+
const fileNameIndex = downloadUrl.lastIndexOf('/');
|
|
89
|
+
const fileName = decodeURIComponent(downloadUrl.substring(fileNameIndex + 1));
|
|
90
|
+
let filePath;
|
|
91
|
+
if (output) {
|
|
92
|
+
const stats = await util_1.optionalStat(output);
|
|
93
|
+
if (stats && stats.isDirectory() || !stats && output.endsWith(path.sep)) {
|
|
94
|
+
filePath = path.resolve(process.cwd(), output, fileName);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
filePath = path.resolve(process.cwd(), output);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
filePath = path.resolve(process.cwd(), fileName);
|
|
102
|
+
}
|
|
103
|
+
await util_1.makeDirs(path.dirname(filePath));
|
|
104
|
+
const target = extension.targetPlatform !== 'universal' ? '@' + extension.targetPlatform : '';
|
|
105
|
+
console.log(`Downloading ${extension.namespace}.${extension.name}-${extension.version}${target} to ${filePath}`);
|
|
106
|
+
await registry.download(filePath, new URL(downloadUrl));
|
|
107
|
+
}
|
|
123
108
|
//# sourceMappingURL=get.js.map
|
package/lib/get.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../src/get.ts"],"names":[],"mappings":";AAAA;;;;;;;;kFAQkF
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../src/get.ts"],"names":[],"mappings":";AAAA;;;;;;;;kFAQkF;;AAElF,yBAAyB;AACzB,6BAA6B;AAC7B,iCAAiC;AACjC,yCAAkE;AAClE,iCAA4F;AAE5F;;GAEG;AACI,KAAK,UAAU,YAAY,CAAC,OAAmB;IAClD,oBAAa,CAAC,OAAO,CAAC,CAAC;IACvB,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACjB,OAAO,CAAC,MAAM,GAAG,WAAW,CAAC;KAChC;IAED,MAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,OAAO,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,uBAAgB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACpD,IAAI,CAAC,KAAK,EAAE;QACR,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;KACzF;IAED,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACjF,IAAI,SAAS,CAAC,KAAK,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;KACpC;IAED,MAAM,eAAe,GAAG,MAAM,mBAAmB,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;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-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020 TypeFox and others
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
********************************************************************************/
|
|
10
|
-
export * from './create-namespace';
|
|
11
|
-
export * from './get';
|
|
12
|
-
export * from './publish';
|
|
13
|
-
export * from './registry';
|
|
14
|
-
export { isLicenseOk } from './check-license';
|
|
15
|
-
export { validateManifest, readManifest } from './util';
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2020 TypeFox and others
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
********************************************************************************/
|
|
10
|
+
export * from './create-namespace';
|
|
11
|
+
export * from './get';
|
|
12
|
+
export * from './publish';
|
|
13
|
+
export * from './registry';
|
|
14
|
+
export { isLicenseOk } from './check-license';
|
|
15
|
+
export { validateManifest, readManifest } from './util';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
-
********************************************************************************/
|
|
11
|
-
function __export(m) {
|
|
12
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
__export(require("./create-namespace"));
|
|
16
|
-
__export(require("./get"));
|
|
17
|
-
__export(require("./publish"));
|
|
18
|
-
__export(require("./registry"));
|
|
19
|
-
var check_license_1 = require("./check-license");
|
|
20
|
-
exports.isLicenseOk = check_license_1.isLicenseOk;
|
|
21
|
-
var util_1 = require("./util");
|
|
22
|
-
exports.validateManifest = util_1.validateManifest;
|
|
23
|
-
exports.readManifest = util_1.readManifest;
|
|
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
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
********************************************************************************/
|
|
11
|
+
function __export(m) {
|
|
12
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
__export(require("./create-namespace"));
|
|
16
|
+
__export(require("./get"));
|
|
17
|
+
__export(require("./publish"));
|
|
18
|
+
__export(require("./registry"));
|
|
19
|
+
var check_license_1 = require("./check-license");
|
|
20
|
+
exports.isLicenseOk = check_license_1.isLicenseOk;
|
|
21
|
+
var util_1 = require("./util");
|
|
22
|
+
exports.validateManifest = util_1.validateManifest;
|
|
23
|
+
exports.readManifest = util_1.readManifest;
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/lib/main.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 TypeFox and others
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made available under the
|
|
5
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
********************************************************************************/
|
|
10
|
-
export {};
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019 TypeFox and others
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
********************************************************************************/
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=main.d.ts.map
|