New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

filelist-from

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filelist-from - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

lib-esm/fileListFromPath.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc