edge-functions 3.1.0-stage.4 → 3.1.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [3.1.0](https://github.com/aziontech/vulcan/compare/v3.0.0...v3.1.0) (2024-08-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* added all origins parameters to the manifest ([#367](https://github.com/aziontech/vulcan/issues/367)) ([b0ee08b](https://github.com/aziontech/vulcan/commit/b0ee08bd0c931fe6185b1ccce13b4e08a70d0928))
|
|
7
|
+
* added purge parameters to the manifest ([#368](https://github.com/aziontech/vulcan/issues/368)) ([a006b50](https://github.com/aziontech/vulcan/commit/a006b5021f9d9f5116bfbdaf7c247949e2b58024))
|
|
8
|
+
* adding support for domains in manifest generation. ([#366](https://github.com/aziontech/vulcan/issues/366)) ([7223c84](https://github.com/aziontech/vulcan/commit/7223c84c0121dd90026919874d3d520537b5325d))
|
|
9
|
+
* enable writeFile, rename and realpath from Node FS ([#369](https://github.com/aziontech/vulcan/issues/369)) ([a219a57](https://github.com/aziontech/vulcan/commit/a219a57ec84ad4c5efaaacef8c9ffb7d3a78f3c0))
|
|
10
|
+
* support azion.config with TypeScript ([#362](https://github.com/aziontech/vulcan/issues/362)) ([67ba4fe](https://github.com/aziontech/vulcan/commit/67ba4fe2352edd21cd2653cc3f6b63fd9739dd8f))
|
|
11
|
+
|
|
12
|
+
## [3.1.0-stage.5](https://github.com/aziontech/vulcan/compare/v3.1.0-stage.4...v3.1.0-stage.5) (2024-08-09)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* enable writeFile, rename and realpath from Node FS ([#369](https://github.com/aziontech/vulcan/issues/369)) ([a219a57](https://github.com/aziontech/vulcan/commit/a219a57ec84ad4c5efaaacef8c9ffb7d3a78f3c0))
|
|
18
|
+
|
|
1
19
|
## [3.1.0-stage.4](https://github.com/aziontech/vulcan/compare/v3.1.0-stage.3...v3.1.0-stage.4) (2024-08-09)
|
|
2
20
|
|
|
3
21
|
|
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ Table:
|
|
|
43
43
|
| Simple Js Esm | ✅ |
|
|
44
44
|
| Simple Ts Esm | ✅ |
|
|
45
45
|
|
|
46
|
-
Last test run date:
|
|
46
|
+
Last test run date: 08/01/24 03:39:54 AM
|
|
47
47
|
## Quick Installation
|
|
48
48
|
|
|
49
49
|
For those who just want to use Vulcan in their project without contributing to the development, you can install it directly from npm.
|
|
@@ -21,6 +21,9 @@ export const {
|
|
|
21
21
|
rmdir,
|
|
22
22
|
copyFile,
|
|
23
23
|
cp,
|
|
24
|
+
writeFile,
|
|
25
|
+
rename,
|
|
26
|
+
realpath,
|
|
24
27
|
Dir,
|
|
25
28
|
Dirent,
|
|
26
29
|
Stats,
|
|
@@ -64,6 +67,9 @@ localFs.mkdir = mkdir;
|
|
|
64
67
|
localFs.rmdir = rmdir;
|
|
65
68
|
localFs.copyFile = copyFile;
|
|
66
69
|
localFs.cp = cp;
|
|
70
|
+
localFs.writeFile = writeFile;
|
|
71
|
+
localFs.rename = rename;
|
|
72
|
+
localFs.realpath = realpath;
|
|
67
73
|
localFs.Dir = Dir;
|
|
68
74
|
localFs.Dirent = Dirent;
|
|
69
75
|
localFs.Stats = Stats;
|
|
@@ -86,6 +86,22 @@ function cp(src, dest, ...args) {
|
|
|
86
86
|
return FS_CONTEXT.cp(src, dest, ...args);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
async function writeFile(path, data, ...args) {
|
|
90
|
+
path = `${BUILD_PATH_PREFIX}/${path}`;
|
|
91
|
+
return FS_CONTEXT.writeFile(path, data, ...args);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
async function rename(src, dest, ...args) {
|
|
95
|
+
src = `${BUILD_PATH_PREFIX}/${src}`;
|
|
96
|
+
dest = `${BUILD_PATH_PREFIX}/${dest}`;
|
|
97
|
+
return FS_CONTEXT.rename(src, dest, ...args);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
async function realpath(src, ...args) {
|
|
101
|
+
src = `${BUILD_PATH_PREFIX}/${src}`;
|
|
102
|
+
return FS_CONTEXT.realpath(src, ...args);
|
|
103
|
+
}
|
|
104
|
+
|
|
89
105
|
const constants = {
|
|
90
106
|
COPYFILE_EXCL: 1,
|
|
91
107
|
COPYFILE_FICLONE: 2,
|
|
@@ -158,6 +174,9 @@ export {
|
|
|
158
174
|
rmdir,
|
|
159
175
|
copyFile,
|
|
160
176
|
cp,
|
|
177
|
+
writeFile,
|
|
178
|
+
rename,
|
|
179
|
+
realpath,
|
|
161
180
|
constants,
|
|
162
181
|
F_OK,
|
|
163
182
|
O_APPEND,
|
|
@@ -197,6 +216,9 @@ localFs.mkdir = mkdir;
|
|
|
197
216
|
localFs.rmdir = rmdir;
|
|
198
217
|
localFs.copyFile = copyFile;
|
|
199
218
|
localFs.cp = cp;
|
|
219
|
+
localFs.writeFile = writeFile;
|
|
220
|
+
localFs.rename = rename;
|
|
221
|
+
localFs.realpath = realpath;
|
|
200
222
|
localFs.constants = constants;
|
|
201
223
|
localFs.F_OK = F_OK;
|
|
202
224
|
localFs.O_APPEND = O_APPEND;
|
|
@@ -52,6 +52,22 @@ async function cp(src, dest, ...args) {
|
|
|
52
52
|
return FS_CONTEXT.promises.cp(src, dest, ...args);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
async function writeFile(path, data, ...args) {
|
|
56
|
+
path = `${BUILD_PATH_PREFIX}/${path}`;
|
|
57
|
+
return FS_CONTEXT.promises.writeFile(path, data, ...args);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function rename(src, dest) {
|
|
61
|
+
src = `${BUILD_PATH_PREFIX}/${src}`;
|
|
62
|
+
dest = `${BUILD_PATH_PREFIX}/${dest}`;
|
|
63
|
+
return FS_CONTEXT.promises.rename(src, dest);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async function realpath(src, ...args) {
|
|
67
|
+
src = `${BUILD_PATH_PREFIX}/${src}`;
|
|
68
|
+
return FS_CONTEXT.promises.realpath(src, ...args);
|
|
69
|
+
}
|
|
70
|
+
|
|
55
71
|
const constants = {
|
|
56
72
|
COPYFILE_EXCL: 1,
|
|
57
73
|
COPYFILE_FICLONE: 2,
|
|
@@ -99,6 +115,9 @@ export {
|
|
|
99
115
|
copyFile,
|
|
100
116
|
cp,
|
|
101
117
|
constants,
|
|
118
|
+
writeFile,
|
|
119
|
+
rename,
|
|
120
|
+
realpath,
|
|
102
121
|
};
|
|
103
122
|
|
|
104
123
|
localFsPromises.open = open;
|
|
@@ -111,5 +130,8 @@ localFsPromises.rmdir = rmdir;
|
|
|
111
130
|
localFsPromises.copyFile = copyFile;
|
|
112
131
|
localFsPromises.cp = cp;
|
|
113
132
|
localFsPromises.constants = constants;
|
|
133
|
+
localFsPromises.writeFile = writeFile;
|
|
134
|
+
localFsPromises.rename = rename;
|
|
135
|
+
localFsPromises.realpath = realpath;
|
|
114
136
|
|
|
115
137
|
export default localFsPromises;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-functions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"description": "Tool to launch and build JavaScript/Frameworks. This tool automates polyfills for Edge Computing and assists in creating Workers, notably for the Azion platform.",
|
|
6
6
|
"main": "lib/main.js",
|
|
7
7
|
"bin": {
|