Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

file-set

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-set - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

lib/file-set.js

@@ -10,3 +10,3 @@ 'use strict'

* ```js
* var fileSet = require('file-set')
* const FileSet = require('file-set')
* ```

@@ -13,0 +13,0 @@ * @typicalname FileSet

{
"name": "file-set",
"version": "1.0.1",
"version": "1.0.2",
"description": "Expands file patterns, returning the matched and unmatched files and directories.",

@@ -9,3 +9,3 @@ "main": "lib/file-set.js",

"scripts": {
"test": "tape test/*.js",
"test": "test-runner test/*.js",
"docs": "jsdoc2md -t jsdoc2md/README.hbs lib/file-set.js > README.md; echo "

@@ -15,4 +15,5 @@ },

"devDependencies": {
"jsdoc-to-markdown": "^1.3.6",
"tape": "^4.6.0"
"core-assert": "^0.2.0",
"jsdoc-to-markdown": "^2.0.0-alpha.11",
"test-runner": "^0.1.13"
},

@@ -19,0 +20,0 @@ "dependencies": {

@@ -12,3 +12,3 @@ [![view on npm](http://img.shields.io/npm/v/file-set.svg)](https://www.npmjs.org/package/file-set)

```js
var fileSet = require('file-set')
const FileSet = require('file-set')
```

@@ -24,5 +24,5 @@

```js
> var fileSet = require('file-set');
> const FileSet = require('file-set');
> fileSet([ '*', 'not/existing/*' ])
> new FileSet([ '*', 'not/existing/*' ])
FileSet {

@@ -39,3 +39,3 @@ files: [ 'LICENSE', 'package.json', 'README.md' ],

```js
var fileSet = require('file-set')
const FileSet = require('file-set')
```

@@ -42,0 +42,0 @@

'use strict'
var test = require('tape')
var test = require('test-runner')
var FileSet = require('../')
var a = require('core-assert')
test('fileSet.notExisting', function (t) {
test('fileSet.notExisting', function () {
var fileSet = new FileSet([ 'test/fixture/*', 'clive', 'test/fixture/folder2/**' ])
t.deepEqual(fileSet.notExisting, [ 'clive' ])
t.end()
a.deepEqual(fileSet.notExisting, [ 'clive' ])
})
test('fileSet.files', function (t) {
test('fileSet.files', function () {
var fileSet = new FileSet([ 'test/fixture/*', 'clive', 'test/fixture/folder2/**' ])
t.deepEqual(fileSet.files, [
a.deepEqual(fileSet.files, [
'test/fixture/file1',

@@ -20,8 +20,7 @@ 'test/fixture/folder2/file3',

])
t.end()
})
test('fileSet.dirs', function (t) {
test('fileSet.dirs', function () {
var fileSet = new FileSet([ 'test/fixture/*', 'clive', 'test/fixture/folder2/**' ])
t.deepEqual(fileSet.dirs, [
a.deepEqual(fileSet.dirs, [
'test/fixture/folder1/',

@@ -31,3 +30,2 @@ 'test/fixture/folder2/',

])
t.end()
})

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