Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled (#2482)
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
This commit is contained in:
parent
cf5b0a9041
commit
a196a714b8
5388 changed files with 2176737 additions and 71701 deletions
68
node_modules/tmp/README.md
generated
vendored
68
node_modules/tmp/README.md
generated
vendored
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
A simple temporary file and directory creator for [node.js.][1]
|
||||
|
||||
[](https://travis-ci.org/raszi/node-tmp)
|
||||
[](https://david-dm.org/raszi/node-tmp)
|
||||
[](https://github.com/raszi/node-tmp/actions/workflows/node.js.yml)
|
||||
[](https://libraries.io/github/raszi/node-tmp)
|
||||
[](https://badge.fury.io/js/tmp)
|
||||
[](https://raszi.github.io/node-tmp/)
|
||||
[](https://snyk.io/test/npm/tmp)
|
||||
|
|
@ -27,10 +27,41 @@ not.
|
|||
If you do not want to store your temporary directories and files in the
|
||||
standard OS temporary directory, then you are free to override that as well.
|
||||
|
||||
## An Important Note on Previously Undocumented Breaking Changes
|
||||
|
||||
All breaking changes that had been introduced, i.e.
|
||||
|
||||
- tmpdir must be located under the system defined tmpdir root.
|
||||
- Spaces being collapsed into single spaces
|
||||
- Removal of all single and double quote characters
|
||||
|
||||
have been reverted in v0.2.2 and tmp should now behave as it did before the
|
||||
introduction of these breaking changes.
|
||||
|
||||
Other breaking changes, i.e.
|
||||
|
||||
- template must be relative to tmpdir
|
||||
- name must be relative to tmpdir
|
||||
- dir option must be relative to tmpdir
|
||||
|
||||
are still in place.
|
||||
|
||||
In order to override the system's tmpdir, you will have to use the newly
|
||||
introduced tmpdir option.
|
||||
|
||||
## An Important Note on Compatibility
|
||||
|
||||
See the [CHANGELOG](./CHANGELOG.md) for more information.
|
||||
|
||||
### Version 0.2.3
|
||||
|
||||
- Node version <= 14.4 has been dropped.
|
||||
- rimraf has been dropped from the dependencies
|
||||
|
||||
### Version 0.2.2
|
||||
|
||||
Since version 0.2.2, all support for node version <= 14 has been dropped.
|
||||
|
||||
### Version 0.1.0
|
||||
|
||||
Since version 0.1.0, all support for node versions < 0.10.0 has been dropped.
|
||||
|
|
@ -60,6 +91,18 @@ npm install tmp
|
|||
|
||||
Please also check [API docs][4].
|
||||
|
||||
## Graceful cleanup
|
||||
|
||||
If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary object removal.
|
||||
|
||||
To enforce this, you can call the `setGracefulCleanup()` method:
|
||||
|
||||
```javascript
|
||||
const tmp = require('tmp');
|
||||
|
||||
tmp.setGracefulCleanup();
|
||||
```
|
||||
|
||||
### Asynchronous file creation
|
||||
|
||||
Simple temporary file creation, the file will be closed and unlinked on process exit.
|
||||
|
|
@ -319,20 +362,6 @@ const tmpname = tmp.tmpNameSync(options);
|
|||
console.log('Created temporary filename: ', tmpname);
|
||||
```
|
||||
|
||||
## Graceful cleanup
|
||||
|
||||
If graceful cleanup is set, tmp will remove all controlled temporary objects on process exit, otherwise the
|
||||
temporary objects will remain in place, waiting to be cleaned up on system restart or otherwise scheduled temporary
|
||||
object removal.
|
||||
|
||||
To enforce this, you can call the `setGracefulCleanup()` method:
|
||||
|
||||
```javascript
|
||||
const tmp = require('tmp');
|
||||
|
||||
tmp.setGracefulCleanup();
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
All options are optional :)
|
||||
|
|
@ -341,11 +370,8 @@ All options are optional :)
|
|||
* `mode`: the file mode to create with, falls back to `0o600` on file creation and `0o700` on directory creation
|
||||
* `prefix`: the optional prefix, defaults to `tmp`
|
||||
* `postfix`: the optional postfix
|
||||
* `template`: [`mkstemp`][3] like filename template, no default, can be either an absolute or a relative path that resolves
|
||||
to a relative path of the system's default temporary directory, must include `XXXXXX` once for random name generation, e.g.
|
||||
'foo/bar/XXXXXX'. Absolute paths are also fine as long as they are relative to os.tmpdir().
|
||||
Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,
|
||||
as tmp will not check the availability of the path, nor will it establish the requested path for you.
|
||||
* `template`: [`mkstemp`][3] like filename template, no default, must include `XXXXXX` once for random name generation, e.g.
|
||||
'foo-bar-XXXXXX'.
|
||||
* `dir`: the optional temporary directory that must be relative to the system's default temporary directory.
|
||||
absolute paths are fine as long as they point to a location under the system's default temporary directory.
|
||||
Any directories along the so specified path must exist, otherwise a ENOENT error will be thrown upon access,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue