@dnax/core 0.45.6 → 0.45.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/index.ts +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.45.6",
3
+ "version": "0.45.7",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
package/utils/index.ts CHANGED
@@ -405,9 +405,12 @@ const file = {
405
405
  }
406
406
  await fs.copyFile(src, des);
407
407
  let file = await Bun.file(des);
408
+
409
+ // get filename
410
+
408
411
  resolve({
409
- original_name: file.name,
410
- name: file.name,
412
+ original_name: path.basename(des),
413
+ name: path.basename(des),
411
414
  lastModified: moment.unix(file.lastModified).toDate(),
412
415
  size: file.size,
413
416
  type: file.type,