Socket
Socket
Sign inDemoInstall

builder-util

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builder-util - npm Package Compare versions

Comparing version 3.1.2 to 3.2.0

1

out/api.d.ts

@@ -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 @@ })();

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc