trm-core 6.1.3 → 6.1.5
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.
|
@@ -19,7 +19,7 @@ exports.checkTransports = {
|
|
|
19
19
|
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
20
|
logger_1.Logger.log('Check transports step', true);
|
|
21
21
|
logger_1.Logger.loading(`Checking package transports...`);
|
|
22
|
-
const aTransports = yield context.runtime.remotePackageData.artifact.getTransportBinaries();
|
|
22
|
+
const aTransports = yield context.runtime.remotePackageData.artifact.getTransportBinaries(context.rawInput.contextData.r3transOptions);
|
|
23
23
|
logger_1.Logger.log(`Package content: ${aTransports.map(o => {
|
|
24
24
|
return {
|
|
25
25
|
trkorr: o.trkorr,
|
|
@@ -144,6 +144,7 @@ exports.setManifestValues = {
|
|
|
144
144
|
throw new Error(validateVisibility);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
+
logger_1.Logger.info(`Package visibility: ${context.runtime.trmPackage.manifest.private ? 'private' : 'public'}`);
|
|
147
148
|
if (context.runtime.packageData.namespace) {
|
|
148
149
|
context.runtime.trmPackage.manifest.namespace = {
|
|
149
150
|
replicense: context.runtime.packageData.namespace.trnspacet.replicense,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Manifest } from "../manifest";
|
|
2
2
|
import { Transport } from "../transport";
|
|
3
|
+
import { R3transOptions } from "node-r3trans";
|
|
3
4
|
import { TransportBinary } from "./TransportBinary";
|
|
4
5
|
export declare class TrmArtifact {
|
|
5
6
|
binary: Buffer;
|
|
@@ -10,6 +11,6 @@ export declare class TrmArtifact {
|
|
|
10
11
|
getManifest(): Manifest | null;
|
|
11
12
|
replaceManifest(oManifest: Manifest): void;
|
|
12
13
|
getDistFolder(): string | null;
|
|
13
|
-
getTransportBinaries(
|
|
14
|
+
getTransportBinaries(r3transOption?: R3transOptions): Promise<TransportBinary[]>;
|
|
14
15
|
static create(transports: Transport[], manifest: Manifest, distFolder?: string): Promise<TrmArtifact>;
|
|
15
16
|
}
|
|
@@ -79,7 +79,7 @@ class TrmArtifact {
|
|
|
79
79
|
}
|
|
80
80
|
return this._distFolder;
|
|
81
81
|
}
|
|
82
|
-
getTransportBinaries(
|
|
82
|
+
getTransportBinaries(r3transOption) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
var _a, _b;
|
|
85
85
|
const distFolder = this.getDistFolder();
|
|
@@ -89,9 +89,7 @@ class TrmArtifact {
|
|
|
89
89
|
const zipEntries = this._zip.getEntries();
|
|
90
90
|
const aTransportEntries = zipEntries.filter(o => (new RegExp(`^${distFolder}(/|\\\\)`)).test(o.entryName.trim().toLowerCase()));
|
|
91
91
|
var aResult = [];
|
|
92
|
-
const r3trans = new node_r3trans_1.R3trans(
|
|
93
|
-
tempDirPath: tmpFolder
|
|
94
|
-
});
|
|
92
|
+
const r3trans = new node_r3trans_1.R3trans(r3transOption);
|
|
95
93
|
for (const entry of aTransportEntries) {
|
|
96
94
|
try {
|
|
97
95
|
const type = entry.comment;
|