Huge News!Announcing our $40M Series B led by Abstract Ventures.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.0 to 0.2.1

5

lib-esm/fileListFromPath.d.ts

@@ -1,2 +0,4 @@

declare type PartialFileList = Omit<File, 'stream' | 'slice' | 'type'>[];
/** subset for File */
export declare type PartialFile = Omit<File, 'stream' | 'slice' | 'type'>;
export declare type PartialFileList = PartialFile[];
/**

@@ -8,3 +10,2 @@ * Generate a FileList from a directory path

export declare function fileListFromPath(path: string): PartialFileList;
export {};
//# sourceMappingURL=fileListFromPath.d.ts.map

@@ -1,2 +0,4 @@

declare type PartialFileList = Omit<File, 'stream' | 'slice' | 'type'>[];
/** subset for File */
export declare type PartialFile = Omit<File, 'stream' | 'slice' | 'type'>;
export declare type PartialFileList = PartialFile[];
/**

@@ -8,3 +10,2 @@ * Generate a FileList from a directory path

export declare function fileListFromPath(path: string): PartialFileList;
export {};
//# sourceMappingURL=fileListFromPath.d.ts.map

6

lib/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

{
"name": "filelist-from",
"version": "0.2.0",
"version": "0.2.1",
"description": "Create a FileList from a path or a zip file",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -16,3 +16,3 @@ # filelist-from

`$ npm i filelist-from`
`npm i filelist-from`

@@ -19,0 +19,0 @@ ## Usage

@@ -5,3 +5,5 @@ import { readdirSync, statSync } from 'fs';

type PartialFileList = Omit<File, 'stream' | 'slice' | 'type'>[];
/** subset for File */
export type PartialFile = Omit<File, 'stream' | 'slice' | 'type'>;
export type PartialFileList = PartialFile[];

@@ -8,0 +10,0 @@ /**

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

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