builder-util
Advanced tools
Comparing version 3.1.2 to 3.2.0
@@ -7,2 +7,3 @@ import { DebugLogger } from "./DebugLogger"; | ||
getTempFile(suffix: string): Promise<string>; | ||
getResource(custom: string | null | undefined, ...names: Array<string>): Promise<string | null>; | ||
} |
@@ -8,2 +8,3 @@ import { PackageBuilder } from "./api"; | ||
}[]; | ||
export declare function getNotLocalizedLicenseFiles(custom: string | null | undefined, packager: PackageBuilder): Promise<string | null>; | ||
export declare function getLicenseFiles(packager: PackageBuilder): Promise<Array<LicenseFile>>; | ||
@@ -10,0 +11,0 @@ export interface LicenseFile { |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.getLicenseFiles = undefined; | ||
exports.getLicenseFiles = exports.getNotLocalizedLicenseFiles = undefined; | ||
@@ -15,4 +15,23 @@ var _bluebirdLst; | ||
let getNotLocalizedLicenseFiles = exports.getNotLocalizedLicenseFiles = (() => { | ||
var _ref = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (custom, packager) { | ||
const possibleFiles = []; | ||
for (const name of ["license", "eula"]) { | ||
for (const ext of ["rtf", "txt", "html"]) { | ||
possibleFiles.push(`${name}.${ext}`); | ||
possibleFiles.push(`${name.toUpperCase()}.${ext}`); | ||
possibleFiles.push(`${name}.${ext.toUpperCase()}`); | ||
possibleFiles.push(`${name.toUpperCase()}.${ext.toUpperCase()}`); | ||
} | ||
} | ||
return yield packager.getResource(custom, ...possibleFiles); | ||
}); | ||
return function getNotLocalizedLicenseFiles(_x, _x2) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
})(); | ||
let getLicenseFiles = exports.getLicenseFiles = (() => { | ||
var _ref = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (packager) { | ||
var _ref2 = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (packager) { | ||
return getLicenseAssets((yield packager.resourceList).filter(function (it) { | ||
@@ -24,4 +43,4 @@ const name = it.toLowerCase(); | ||
return function getLicenseFiles(_x) { | ||
return _ref.apply(this, arguments); | ||
return function getLicenseFiles(_x3) { | ||
return _ref2.apply(this, arguments); | ||
}; | ||
@@ -28,0 +47,0 @@ })(); |
{ | ||
"name": "builder-util", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"main": "out/util.js", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
192642
2418