copymitter 10.1.0 → 10.2.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/lib/copymitter.js CHANGED
@@ -128,10 +128,11 @@ Copymitter.prototype._cpAll = function() {
128
128
 
129
129
  const copyDir = async (from, to, overrides = {}) => {
130
130
  const {write} = overrides;
131
- const {mode} = await readStat(from);
131
+ const {mode, date} = await readStat(from);
132
132
 
133
133
  await write(to, null, {
134
134
  mode,
135
+ date,
135
136
  });
136
137
  };
137
138
 
@@ -231,6 +232,7 @@ async function superCopy(from, to, [countStream], overrides) {
231
232
  date,
232
233
  mode,
233
234
  } = overrides;
235
+
234
236
  const [, link] = await tryToCatch(readlink, from);
235
237
 
236
238
  if (link) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copymitter",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "type": "module",
5
5
  "description": "copy files with emitter",
6
6
  "main": "lib/copymitter.js",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@iocmd/wait": "^2.1.0",
32
- "c8": "^10.1.3",
32
+ "c8": "^11.0.0",
33
33
  "eslint": "^10.0.0",
34
34
  "eslint-plugin-putout": "^31.0.1",
35
35
  "madrun": "^13.0.0",