Comparing version 0.3.0 to 1.0.0
{ | ||
"name": "isolated", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "isolated provides one-time folders for unit tests.", | ||
@@ -9,15 +9,21 @@ "contributors": [ | ||
"email": "golo.roden@thenativeweb.io" | ||
}, | ||
{ | ||
"name": "Jan-Hendrik Grundhöfer", | ||
"email": "jan-hendrik.grundhoefer@thenativeweb.io" | ||
}, | ||
{ | ||
"name": "Matthias Wagler", | ||
"email": "matthias.wagler@thenativeweb.io" | ||
} | ||
], | ||
"main": "lib/isolated.js", | ||
"main": "dist/isolated.js", | ||
"dependencies": { | ||
"async": "1.4.0", | ||
"fs-extra": "0.22.1", | ||
"lodash": "3.10.0", | ||
"fs-extra": "7.0.0", | ||
"recursive-readdir": "2.2.2", | ||
"temp": "0.8.3" | ||
}, | ||
"devDependencies": { | ||
"assertthat": "0.6.0", | ||
"grunt": "0.4.5", | ||
"tourism": "0.20.2" | ||
"assertthat": "1.0.0", | ||
"roboter": "1.0.6" | ||
}, | ||
@@ -24,0 +30,0 @@ "repository": { |
@@ -7,3 +7,5 @@ # isolated | ||
$ npm install isolated | ||
```shell | ||
$ npm install isolated | ||
``` | ||
@@ -15,3 +17,3 @@ ## Quick Start | ||
```javascript | ||
var isolated = require('isolated'); | ||
const isolated = require('isolated'); | ||
``` | ||
@@ -22,6 +24,4 @@ | ||
```javascript | ||
test('...', function (done) { | ||
isolated(function (err, directory) { | ||
// ... | ||
}); | ||
test('...', async () => { | ||
const directory = await isolated(); | ||
}); | ||
@@ -33,7 +33,5 @@ ``` | ||
```javascript | ||
test('...', function (done) { | ||
isolated({ | ||
test('...', async () => { | ||
const directory = await isolated({ | ||
files: 'foo.txt' | ||
}, function (err, directory) { | ||
// ... | ||
}); | ||
@@ -46,7 +44,5 @@ }); | ||
```javascript | ||
test('...', function (done) { | ||
isolated({ | ||
test('...', async () => { | ||
const directory = await isolated({ | ||
files: [ 'foo.txt', 'bar.txt' ] | ||
}, function (err, directory) { | ||
// ... | ||
}); | ||
@@ -56,11 +52,9 @@ }); | ||
Sometimes you may want isolate to preserve the sources` timestamps. For that additionally provide the `preserveTimestamps` option and set it to `true`. | ||
Sometimes you may want isolate to preserve the sources' timestamps. For that additionally provide the `preserveTimestamps` option and set it to `true`. | ||
```javascript | ||
test('...', function (done) { | ||
isolated({ | ||
test('...', async () => { | ||
const directory = await isolated({ | ||
files: [ 'foo.txt', 'bar.txt' ], | ||
preserveTimestamps: true | ||
}, function (err, directory) { | ||
// ... | ||
}); | ||
@@ -72,5 +66,7 @@ }); | ||
This module can be built using [Grunt](http://gruntjs.com/). Besides running the tests, this also analyses the code. To run Grunt, go to the folder where you have installed isolated and run `grunt`. You need to have [grunt-cli](https://github.com/gruntjs/grunt-cli) installed. | ||
To build this module use [roboter](https://www.npmjs.com/package/roboter). | ||
$ grunt | ||
```shell | ||
$ npx roboter | ||
``` | ||
@@ -80,3 +76,3 @@ ## License | ||
The MIT License (MIT) | ||
Copyright (c) 2013-2015 the native web. | ||
Copyright (c) 2013-2018 the native web. | ||
@@ -83,0 +79,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11577
3
2
214
1
8
76
3
2
+ Addedrecursive-readdir@2.2.2
+ Addedfs-extra@7.0.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedminimatch@3.0.4(transitive)
+ Addedrecursive-readdir@2.2.2(transitive)
+ Addeduniversalify@0.1.2(transitive)
- Removedasync@1.4.0
- Removedlodash@3.10.0
- Removedasync@1.4.0(transitive)
- Removedfs-extra@0.22.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedlodash@3.10.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedfs-extra@7.0.0