This commit is contained in:
2019-02-17 18:07:28 +01:00
parent c69ffb9752
commit 95cff6f702
2301 changed files with 307810 additions and 5 deletions

66
Client/node_modules/gulp-chmod/index.js generated vendored Executable file
View File

@@ -0,0 +1,66 @@
'use strict';
const through = require('through2');
const deepAssign = require('deep-assign');
const Mode = require('stat-mode');
const defaultMode = 0o777 & (~process.umask());
function normalize(mode) {
let called = false;
const newMode = {
owner: {},
group: {},
others: {}
};
['read', 'write', 'execute'].forEach(key => {
if (typeof mode[key] === 'boolean') {
newMode.owner[key] = mode[key];
newMode.group[key] = mode[key];
newMode.others[key] = mode[key];
called = true;
}
});
return called ? newMode : mode;
}
module.exports = (mode, dirMode) => {
if (mode !== null && mode !== undefined && typeof mode !== 'number' && typeof mode !== 'object') {
throw new TypeError('Expected mode to be null/undefined/number/Object');
}
if (dirMode === true) {
dirMode = mode;
}
if (dirMode !== null && dirMode !== undefined && typeof dirMode !== 'number' && typeof dirMode !== 'object') {
throw new TypeError('Expected dirMode to be null/undefined/true/number/Object');
}
return through.obj((file, enc, cb) => {
let curMode = mode;
if (file.isNull() && file.stat && file.stat.isDirectory()) {
curMode = dirMode;
}
if (curMode === undefined || curMode === null) {
cb(null, file);
return;
}
file.stat = file.stat || {};
file.stat.mode = file.stat.mode || defaultMode;
if (typeof curMode === 'object') {
const statMode = new Mode(file.stat);
deepAssign(statMode, normalize(curMode));
file.stat.mode = statMode.stat.mode;
} else {
file.stat.mode = curMode;
}
cb(null, file);
});
};

21
Client/node_modules/gulp-chmod/license generated vendored Executable file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

75
Client/node_modules/gulp-chmod/package.json generated vendored Executable file
View File

@@ -0,0 +1,75 @@
{
"_from": "gulp-chmod@^2.0.0",
"_id": "gulp-chmod@2.0.0",
"_inBundle": false,
"_integrity": "sha1-AMOQuSigeZslGsz2MaoJ4BzGKZw=",
"_location": "/gulp-chmod",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "gulp-chmod@^2.0.0",
"name": "gulp-chmod",
"escapedName": "gulp-chmod",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/vscode"
],
"_resolved": "https://registry.npmjs.org/gulp-chmod/-/gulp-chmod-2.0.0.tgz",
"_shasum": "00c390b928a0799b251accf631aa09e01cc6299c",
"_spec": "gulp-chmod@^2.0.0",
"_where": "/home/nathan/Projects/Upsilon/UpsilonVsCodeLanguageServer/Client/node_modules/vscode",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/gulp-chmod/issues"
},
"bundleDependencies": false,
"dependencies": {
"deep-assign": "^1.0.0",
"stat-mode": "^0.2.0",
"through2": "^2.0.0"
},
"deprecated": false,
"description": "Change permissions of Vinyl files",
"devDependencies": {
"gulp-util": "^3.0.0",
"mocha": "*",
"xo": "*"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/gulp-chmod#readme",
"keywords": [
"gulpplugin",
"chmod",
"stat",
"file",
"vinyl",
"stream",
"permissions"
],
"license": "MIT",
"name": "gulp-chmod",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/gulp-chmod.git"
},
"scripts": {
"test": "xo && mocha"
},
"version": "2.0.0",
"xo": {
"esnext": true
}
}

132
Client/node_modules/gulp-chmod/readme.md generated vendored Executable file
View File

@@ -0,0 +1,132 @@
# gulp-chmod [![Build Status](https://travis-ci.org/sindresorhus/gulp-chmod.svg?branch=master)](https://travis-ci.org/sindresorhus/gulp-chmod)
> [Change permissions](https://en.wikipedia.org/wiki/Chmod) of [Vinyl](https://github.com/gulpjs/vinyl) files
## Install
```
$ npm install --save-dev gulp-chmod
```
## Usage
```js
const gulp = require('gulp');
const chmod = require('gulp-chmod');
gulp.task('default', () =>
gulp.src('src/app.js')
.pipe(chmod(0o755))
.pipe(gulp.dest('dist'))
);
```
or
```js
const gulp = require('gulp');
const chmod = require('gulp-chmod');
gulp.task('default', () =>
gulp.src('src/app.js')
.pipe(chmod({
owner: {
read: true,
write: true,
execute: true
},
group: {
execute: true
},
others: {
execute: true
}
}))
.pipe(gulp.dest('dist'))
);
```
## API
### chmod(mode, [dirMode])
#### mode
Type: `number` `Object`
Can either be a [chmod](http://ss64.com/bash/chmod.html) octal number or an object with the individual permissions specified.
Values depends on the current file, but these are the possible keys:
```js
{
owner: {
read: true,
write: true,
execute: true
},
group: {
read: true,
write: true,
execute: true
},
others: {
read: true,
write: true,
execute: true
}
}
```
When `read`, `write`, and `execute` are same, you can simplify the object:
```js
{
read: true
}
```
Pass `null` to not set permissions on files. Useful if you only want to set permissions on directories.
#### dirMode
Type: `true` `number` `Object`
Same as `mode`, but applies to directories. Specify `true` to use the same value as `mode`.
## Tip
Combine it with [gulp-filter](https://github.com/sindresorhus/gulp-filter) to only change permissions on a subset of the files.
```js
const gulp = require('gulp');
const gFilter = require('gulp-filter');
const chmod = require('gulp-chmod');
const filter = gFilter('src/cli.js', {restore: true});
gulp.task('default', () =>
gulp.src('src/*.js')
// filter a subset of the files
.pipe(filter)
// make them executable
.pipe(chmod(0o755))
// bring back the previously filtered out files
.pipe(filter.restore)
.pipe(gulp.dest('dist'))
);
```
## Related
- [gulp-chown](https://github.com/sindresorhus/gulp-chown) - Change owner of Vinyl files
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)