@uipath/packager-tool-datafabric 1.206.0-preview.311 → 1.206.0-preview.323
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.
- package/dist/init.js +27 -7
- package/dist/inline.js +26 -6
- package/package.json +2 -2
package/dist/init.js
CHANGED
|
@@ -7669,12 +7669,26 @@ class NodeFileSystem {
|
|
|
7669
7669
|
throw error;
|
|
7670
7670
|
}
|
|
7671
7671
|
}
|
|
7672
|
-
async writeFile(filePath, data) {
|
|
7672
|
+
async writeFile(filePath, data, options) {
|
|
7673
7673
|
const dir = path2.dirname(filePath);
|
|
7674
7674
|
if (dir) {
|
|
7675
7675
|
await fs6.mkdir(dir, { recursive: true });
|
|
7676
7676
|
}
|
|
7677
|
-
|
|
7677
|
+
if (options?.mode === undefined || process.platform === "win32") {
|
|
7678
|
+
if (options?.exclusive) {
|
|
7679
|
+
await fs6.writeFile(filePath, data, { flag: "wx" });
|
|
7680
|
+
} else {
|
|
7681
|
+
await fs6.writeFile(filePath, data);
|
|
7682
|
+
}
|
|
7683
|
+
return;
|
|
7684
|
+
}
|
|
7685
|
+
const handle = await fs6.open(filePath, options.exclusive ? "wx" : "w", options.mode);
|
|
7686
|
+
try {
|
|
7687
|
+
await handle.chmod(options.mode);
|
|
7688
|
+
await handle.writeFile(data);
|
|
7689
|
+
} finally {
|
|
7690
|
+
await handle.close();
|
|
7691
|
+
}
|
|
7678
7692
|
}
|
|
7679
7693
|
async appendFile(filePath, data) {
|
|
7680
7694
|
const dir = path2.dirname(filePath);
|
|
@@ -7709,7 +7723,8 @@ class NodeFileSystem {
|
|
|
7709
7723
|
isDirectory: () => stats.isDirectory(),
|
|
7710
7724
|
size: stats.size,
|
|
7711
7725
|
mtimeMs: stats.mtimeMs,
|
|
7712
|
-
ctimeMs: stats.ctimeMs
|
|
7726
|
+
ctimeMs: stats.ctimeMs,
|
|
7727
|
+
mode: stats.mode
|
|
7713
7728
|
};
|
|
7714
7729
|
} catch (error) {
|
|
7715
7730
|
if (this.isEnoent(error))
|
|
@@ -7720,8 +7735,13 @@ class NodeFileSystem {
|
|
|
7720
7735
|
async exists(filePath) {
|
|
7721
7736
|
return existsSync(filePath);
|
|
7722
7737
|
}
|
|
7723
|
-
async mkdir(dirPath) {
|
|
7724
|
-
await fs6.mkdir(dirPath, { recursive: true });
|
|
7738
|
+
async mkdir(dirPath, options) {
|
|
7739
|
+
await fs6.mkdir(dirPath, { recursive: true, mode: options?.mode });
|
|
7740
|
+
}
|
|
7741
|
+
async chmod(targetPath, mode) {
|
|
7742
|
+
if (process.platform === "win32")
|
|
7743
|
+
return;
|
|
7744
|
+
await fs6.chmod(targetPath, mode);
|
|
7725
7745
|
}
|
|
7726
7746
|
async acquireLock(lockPath) {
|
|
7727
7747
|
const canonicalPath = await this.canonicalizeLockTarget(lockPath);
|
|
@@ -12820,7 +12840,7 @@ var package_default = {
|
|
|
12820
12840
|
name: "@uipath/solution-sdk",
|
|
12821
12841
|
author: "UiPath",
|
|
12822
12842
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
12823
|
-
version: "1.206.0-preview.
|
|
12843
|
+
version: "1.206.0-preview.323",
|
|
12824
12844
|
repository: {
|
|
12825
12845
|
type: "git",
|
|
12826
12846
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -14683,4 +14703,4 @@ export {
|
|
|
14683
14703
|
entityInitAsync
|
|
14684
14704
|
};
|
|
14685
14705
|
|
|
14686
|
-
//# debugId=
|
|
14706
|
+
//# debugId=7B1A3A54502AE7E764756E2164756E21
|
package/dist/inline.js
CHANGED
|
@@ -981,12 +981,26 @@ class NodeFileSystem {
|
|
|
981
981
|
throw error;
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
async writeFile(filePath, data) {
|
|
984
|
+
async writeFile(filePath, data, options) {
|
|
985
985
|
const dir = path2.dirname(filePath);
|
|
986
986
|
if (dir) {
|
|
987
987
|
await fs6.mkdir(dir, { recursive: true });
|
|
988
988
|
}
|
|
989
|
-
|
|
989
|
+
if (options?.mode === undefined || process.platform === "win32") {
|
|
990
|
+
if (options?.exclusive) {
|
|
991
|
+
await fs6.writeFile(filePath, data, { flag: "wx" });
|
|
992
|
+
} else {
|
|
993
|
+
await fs6.writeFile(filePath, data);
|
|
994
|
+
}
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
const handle = await fs6.open(filePath, options.exclusive ? "wx" : "w", options.mode);
|
|
998
|
+
try {
|
|
999
|
+
await handle.chmod(options.mode);
|
|
1000
|
+
await handle.writeFile(data);
|
|
1001
|
+
} finally {
|
|
1002
|
+
await handle.close();
|
|
1003
|
+
}
|
|
990
1004
|
}
|
|
991
1005
|
async appendFile(filePath, data) {
|
|
992
1006
|
const dir = path2.dirname(filePath);
|
|
@@ -1021,7 +1035,8 @@ class NodeFileSystem {
|
|
|
1021
1035
|
isDirectory: () => stats.isDirectory(),
|
|
1022
1036
|
size: stats.size,
|
|
1023
1037
|
mtimeMs: stats.mtimeMs,
|
|
1024
|
-
ctimeMs: stats.ctimeMs
|
|
1038
|
+
ctimeMs: stats.ctimeMs,
|
|
1039
|
+
mode: stats.mode
|
|
1025
1040
|
};
|
|
1026
1041
|
} catch (error) {
|
|
1027
1042
|
if (this.isEnoent(error))
|
|
@@ -1032,8 +1047,13 @@ class NodeFileSystem {
|
|
|
1032
1047
|
async exists(filePath) {
|
|
1033
1048
|
return existsSync(filePath);
|
|
1034
1049
|
}
|
|
1035
|
-
async mkdir(dirPath) {
|
|
1036
|
-
await fs6.mkdir(dirPath, { recursive: true });
|
|
1050
|
+
async mkdir(dirPath, options) {
|
|
1051
|
+
await fs6.mkdir(dirPath, { recursive: true, mode: options?.mode });
|
|
1052
|
+
}
|
|
1053
|
+
async chmod(targetPath, mode) {
|
|
1054
|
+
if (process.platform === "win32")
|
|
1055
|
+
return;
|
|
1056
|
+
await fs6.chmod(targetPath, mode);
|
|
1037
1057
|
}
|
|
1038
1058
|
async acquireLock(lockPath) {
|
|
1039
1059
|
const canonicalPath = await this.canonicalizeLockTarget(lockPath);
|
|
@@ -3913,4 +3933,4 @@ export {
|
|
|
3913
3933
|
solutionRootAsync
|
|
3914
3934
|
};
|
|
3915
3935
|
|
|
3916
|
-
//# debugId=
|
|
3936
|
+
//# debugId=C613A51E3C7997E564756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/packager-tool-datafabric",
|
|
3
|
-
"version": "1.206.0-preview.
|
|
3
|
+
"version": "1.206.0-preview.323",
|
|
4
4
|
"description": "UiPath Data Fabric entity schema, validation and packaging library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@uipath/solutionpackager-tool-core": "1.206.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "a752d8a8d78de138e3be0a19642620fec7893d99"
|
|
29
29
|
}
|