filelist-from
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -26,3 +26,3 @@ import { readdirSync, statSync } from 'fs'; | ||
size: stat.size, | ||
webkitRelativePath: currentDir.replace(/\\/g, '/'), | ||
webkitRelativePath: join(currentDir, entry).replace(/\\/g, '/'), | ||
lastModified: Math.round(stat.mtimeMs), | ||
@@ -29,0 +29,0 @@ text: () => { |
@@ -17,3 +17,3 @@ import JSZip from 'jszip'; | ||
name: entry.name.replace(/^.*\//, ''), | ||
webkitRelativePath: entry.name.replace(/\/[^/]*$/, ''), | ||
webkitRelativePath: entry.name, | ||
lastModified: entry.date.getTime(), | ||
@@ -20,0 +20,0 @@ // @ts-expect-error _data is not exposed because missing for folder but it is really there |
@@ -30,3 +30,3 @@ "use strict"; | ||
size: stat.size, | ||
webkitRelativePath: currentDir.replace(/\\/g, '/'), | ||
webkitRelativePath: (0, path_1.join)(currentDir, entry).replace(/\\/g, '/'), | ||
lastModified: Math.round(stat.mtimeMs), | ||
@@ -33,0 +33,0 @@ text: () => { |
@@ -23,3 +23,3 @@ "use strict"; | ||
name: entry.name.replace(/^.*\//, ''), | ||
webkitRelativePath: entry.name.replace(/\/[^/]*$/, ''), | ||
webkitRelativePath: entry.name, | ||
lastModified: entry.date.getTime(), | ||
@@ -26,0 +26,0 @@ // @ts-expect-error _data is not exposed because missing for folder but it is really there |
{ | ||
"name": "filelist-from", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Create a FileList from a path or a zip file", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -31,3 +31,3 @@ import { readdirSync, statSync } from 'fs'; | ||
size: stat.size, | ||
webkitRelativePath: currentDir.replace(/\\/g, '/'), | ||
webkitRelativePath: join(currentDir, entry).replace(/\\/g, '/'), | ||
lastModified: Math.round(stat.mtimeMs), | ||
@@ -34,0 +34,0 @@ text: (): Promise<string> => { |
@@ -20,3 +20,3 @@ import JSZip from 'jszip'; | ||
name: entry.name.replace(/^.*\//, ''), | ||
webkitRelativePath: entry.name.replace(/\/[^/]*$/, ''), | ||
webkitRelativePath: entry.name, | ||
lastModified: entry.date.getTime(), | ||
@@ -23,0 +23,0 @@ // @ts-expect-error _data is not exposed because missing for folder but it is really there |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4
21860
39
309