Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

builder-util

Package Overview
Dependencies
Maintainers
1
Versions
258
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 4.2.2 to 4.2.3

1

out/fs.d.ts

@@ -45,2 +45,3 @@ /// <reference types="node" />

export declare function copyDir(src: string, destination: string, options?: CopyDirOptions): Promise<any>;
export declare function copyDirUsingHardLinks(source: string, destination: string): Promise<string>;
export declare const DO_NOT_USE_HARD_LINKS: (file: string) => boolean;

@@ -47,0 +48,0 @@ export declare const USE_HARD_LINKS: (file: string) => boolean;

@@ -124,2 +124,3 @@ "use strict";

exports.copyDir = copyDir;
exports.copyDirUsingHardLinks = copyDirUsingHardLinks;

@@ -152,2 +153,8 @@ var _fsExtraP;

var _util;
function _load_util() {
return _util = require("./util");
}
var _promise;

@@ -313,4 +320,18 @@

}
// https://unix.stackexchange.com/questions/202430/how-to-copy-a-directory-recursively-using-hardlinks-for-each-file
function copyDirUsingHardLinks(source, destination) {
if (process.platform !== "darwin") {
const args = ["-d", "--recursive", "--preserve=mode"];
args.push("--link");
args.push(source + "/", destination + "/");
return (0, (_fsExtraP || _load_fsExtraP()).ensureDir)(_path.dirname(destination)).then(() => (0, (_util || _load_util()).exec)("cp", args));
}
// pax requires created dir
const promise = (0, (_fsExtraP || _load_fsExtraP()).ensureDir)(destination);
return promise.then(() => (0, (_util || _load_util()).exec)("pax", ["-rwl", "-p", "amp" /* Do not preserve file access times, Do not preserve file modification times, Preserve the file mode bits */, ".", destination], {
cwd: source
}));
}
const DO_NOT_USE_HARD_LINKS = exports.DO_NOT_USE_HARD_LINKS = file => false;
const USE_HARD_LINKS = exports.USE_HARD_LINKS = file => true;
//# sourceMappingURL=fs.js.map

2

out/util.js

@@ -474,3 +474,3 @@ "use strict";

function replaceDefault(inList, defaultList) {
if (inList == null) {
if (inList == null || inList.length === 1 && inList[0] === "default") {
return defaultList;

@@ -477,0 +477,0 @@ }

{
"name": "builder-util",
"version": "4.2.2",
"version": "4.2.3",
"main": "out/util.js",

@@ -23,3 +23,3 @@ "author": "Vladimir Krivosheev",

"source-map-support": "^0.5.3",
"7zip-bin": "^2.4.1",
"7zip-bin": "~3.0.0",
"ini": "^1.3.5",

@@ -26,0 +26,0 @@ "tunnel-agent": "^0.6.0",

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