Skip to content

Commit d7f8af7

Browse files
committed
Improved license
1 parent ef0310a commit d7f8af7

17 files changed

+105
-68
lines changed

LICENSE

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
1-
MIT License
1+
BSD 3-Clause License
22

3-
Copyright (c) Uses MIT licensed code from Connect and Roots.
4-
Copyright (c) 2012 Tapio Vierros
5-
Copyright (c) 2021 Yannick Deubel (https://github.com/yandeu); Project Url: https://github.com/yandeu/five-server
3+
Copyright (c) 2012 Tapio Vierros (https://github.com/tapio)
4+
Copyright (c) 2021 Yannick Deubel (https://github.com/yandeu)
5+
All rights reserved.
66

7-
Permission is hereby granted, free of charge, to any person obtaining a copy
8-
of this software and associated documentation files (the "Software"), to deal
9-
in the Software without restriction, including without limitation the rights
10-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11-
copies of the Software, and to permit persons to whom the Software is
12-
furnished to do so, subject to the following conditions:
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
139

14-
The above copyright notice and this permission notice shall be included in all
15-
copies or substantial portions of the Software.
10+
1. Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
1612

17-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23-
SOFTWARE.
13+
2. Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
3. Neither the name of the copyright holder nor the names of its
18+
contributors may be used to endorse or promote products derived from
19+
this software without specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ Download it from [marketplace.visualstudio.com](https://marketplace.visualstudio
165165

166166
## License
167167

168-
[MIT](https://github.com/yandeu/five-server/blob/main/LICENSE)
168+
See [LICENSE](https://github.com/yandeu/five-server/blob/main/LICENSE)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"url": "git+https://github.com/yandeu/five-server.git"
4848
},
4949
"author": "Yannick Deubel (https://github.com/yandeu)",
50-
"license": "MIT",
50+
"license": "BSD-3-Clause",
5151
"bugs": {
5252
"url": "https://github.com/yandeu/five-server/issues"
5353
},

src/bin.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
#!/usr/bin/env node
2+
3+
/**
4+
* @copyright Copyright (c) 2012 Tapio Vierros (https://github.com/tapio)
5+
* @copyright Copyright (c) 2021 Yannick Deubel (https://github.com/yandeu)
6+
* @license {@link https://github.com/yandeu/five-server/blob/main/LICENSE.md|LICENSE}
7+
*/
8+
29
import { NAME, VERSION } from './const'
310
import { error, getConfigFile, removeLeadingSlash } from './misc'
411
import LiveServer from './index'

src/colors.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @copyright Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
3+
* @license {@link https://github.com/Marak/colors.js/blob/master/lib/styles.js|MIT}
4+
* @description modified version of https://github.com/Marak/colors.js/blob/master/lib/styles.js
5+
*/
6+
17
// usage '\u001b[Xm' // where X is the number
28

39
export const colors = (str: string, clr: Colors) => {

src/dependencies/batch.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* eslint-disable no-var */
2-
/*!
3-
* batch
4-
* Copyright(c) 2013-2015 TJ Holowaychuk
5-
* MIT Licensed
6-
*/
72

8-
// modified version of [email protected] (https://github.com/visionmedia/batch/edit/master/index.js)
3+
/**
4+
* @package batch (https://www.npmjs.com/package/batch)
5+
* @copyright Copyright (c) 2013-2015 TJ Holowaychuk <[email protected]>
6+
* @license {@link https://github.com/visionmedia/batch/blob/master/LICENSE|MIT}
7+
* @description modified version of [email protected] (https://github.com/visionmedia/batch/edit/master/index.js)
8+
*/
99

1010
const EventEmitter = require('events').EventEmitter
1111

src/dependencies/proxy-middleware.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/*!
2-
* proxy-middleware
3-
* Copyright (c) 2014 Andrew Kelley
4-
* MIT Licensed
1+
/**
2+
* @package proxy-middleware (https://www.npmjs.com/package/proxy-middleware)
3+
* @copyright Copyright (c) 2014 Andrew Kelley
4+
* @license {@link https://github.com/gonzalocasas/node-proxy-middleware/blob/master/LICENSE|MIT}
5+
* @description modified version of [email protected] (https://github.com/gonzalocasas/node-proxy-middleware/blob/master/index.js)
56
*/
67

7-
// modified version of [email protected] (https://github.com/gonzalocasas/node-proxy-middleware/blob/master/index.js)
8-
98
const os = require('os')
109
const http = require('http')
1110
const https = require('https')

src/dependencies/send.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
/* eslint-disable prefer-template */
22
/* eslint-disable prefer-spread */
33

4-
/*!
5-
* send
6-
* Copyright(c) 2012 TJ Holowaychuk
7-
* Copyright(c) 2014-2016 Douglas Christopher Wilson
8-
* MIT Licensed
4+
/**
5+
* @package send (https://www.npmjs.com/package/send)
6+
* @copyright Copyright(c) 2012 TJ Holowaychuk
7+
* @copyright Copyright(c) 2014-2016 Douglas Christopher Wilson
8+
* @license {@link https://github.com/pillarjs/send/blob/master/LICENSE|MIT}
9+
* @description modified version of [email protected] (https://github.com/pillarjs/send/blob/master/index.js)
910
*/
1011

11-
// modified version of [email protected] (https://github.com/pillarjs/send/blob/master/index.js)
12-
13-
import { charsets } from '../misc'
12+
import { charsets } from '../utils/charset'
1413
import { createError } from '../misc' // const createError = require('http-errors')
1514
const debug = require('debug')('send')
1615
const destroy = require('destroy')

src/dependencies/serve-index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/* eslint-disable prefer-template */
22
/* eslint-disable prefer-spread */
33

4-
/*!
5-
* serve-index
6-
* Copyright(c) 2011 Sencha Inc.
7-
* Copyright(c) 2011 TJ Holowaychuk
8-
* Copyright(c) 2014-2015 Douglas Christopher Wilson
9-
* MIT Licensed
4+
/**
5+
* @package serve-index (https://www.npmjs.com/package/serve-index)
6+
* @copyright Copyright (c) 2010 Sencha Inc.
7+
* @copyright Copyright (c) 2011 LearnBoost
8+
* @copyright Copyright (c) 2011 TJ Holowaychuk
9+
* @copyright Copyright (c) 2014-2015 Douglas Christopher Wilson
10+
* @license {@link https://github.com/expressjs/serve-index/blob/master/LICENSE|MIT}
11+
* @description modified version of [email protected] (https://github.com/expressjs/serve-index/blob/master/index.js)
1012
*/
1113

12-
// modified version of [email protected] (https://github.com/expressjs/serve-index/blob/master/index.js)
13-
1414
const accepts = require('accepts')
1515
import { createError } from '../misc' // const createError = require('http-errors')
1616
const debug = require('debug')('serve-index')

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/* eslint-disable sort-imports */
22

3+
/**
4+
* @copyright Copyright (c) 2012 Tapio Vierros (https://github.com/tapio)
5+
* @copyright Copyright (c) 2021 Yannick Deubel (https://github.com/yandeu)
6+
* @license {@link https://github.com/yandeu/five-server/blob/main/LICENSE.md|LICENSE}
7+
*/
8+
39
import chokidar from 'chokidar'
410
import { error, getConfigFile, removeLeadingSlash } from './misc'
511
import fs from 'fs'

0 commit comments

Comments
 (0)