2019-06-26 16:07:55 +00:00
|
|
|
diff --git a/node_modules/pkg/lib-es5/packer.js b/node_modules/pkg/lib-es5/packer.js
|
2020-01-24 22:20:39 +00:00
|
|
|
index 607c847..4e3fb55 100644
|
2019-06-26 16:07:55 +00:00
|
|
|
--- a/node_modules/pkg/lib-es5/packer.js
|
|
|
|
+++ b/node_modules/pkg/lib-es5/packer.js
|
|
|
|
@@ -128,6 +128,7 @@ function _default({
|
|
|
|
const newStat = Object.assign({}, value);
|
|
|
|
newStat.isFileValue = value.isFile();
|
|
|
|
newStat.isDirectoryValue = value.isDirectory();
|
|
|
|
+ newStat.isSocketValue = value.isSocket();
|
|
|
|
const buffer = Buffer.from(JSON.stringify(newStat));
|
|
|
|
stripes.push({
|
|
|
|
snap,
|
|
|
|
diff --git a/node_modules/pkg/prelude/bootstrap.js b/node_modules/pkg/prelude/bootstrap.js
|
2020-01-24 22:20:39 +00:00
|
|
|
index 216579e..5cff8a8 100644
|
2019-06-26 16:07:55 +00:00
|
|
|
--- a/node_modules/pkg/prelude/bootstrap.js
|
|
|
|
+++ b/node_modules/pkg/prelude/bootstrap.js
|
|
|
|
@@ -866,8 +866,10 @@ function payloadFileSync (pointer) {
|
|
|
|
|
|
|
|
var isFileValue = s.isFileValue;
|
|
|
|
var isDirectoryValue = s.isDirectoryValue;
|
|
|
|
+ var isSocketValue = s.isSocketValue;
|
|
|
|
delete s.isFileValue;
|
|
|
|
delete s.isDirectoryValue;
|
|
|
|
+ delete s.isSocketValue;
|
|
|
|
|
|
|
|
s.isFile = function () {
|
|
|
|
return isFileValue;
|
|
|
|
@@ -875,6 +877,9 @@ function payloadFileSync (pointer) {
|
|
|
|
s.isDirectory = function () {
|
|
|
|
return isDirectoryValue;
|
|
|
|
};
|
|
|
|
+ s.isSocket = function () {
|
|
|
|
+ return isSocketValue;
|
|
|
|
+ };
|
|
|
|
s.isSymbolicLink = function () {
|
|
|
|
return false;
|
|
|
|
};
|