Skip to content

Commit 0d581f2

Browse files
committed
Preserving bluebird license
1 parent c6491ae commit 0d581f2

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
"test": "jest --coverage",
4949
"pretest": "npm run build-js",
5050
"copyTypes": "cp src/types/* dist",
51-
"zip": "bestzip dist/release.zip dist/WebApiClient.min.js dist/WebApiClient.d.ts",
51+
"zip": "bestzip dist/release.zip dist/WebApiClient.min.js dist/WebApiClient.d.ts dist/WebApiClient.LICENSE.txt",
5252
"build": "npm run test && npm run copyTypes && npm run zip",
5353
"doc": "jsdoc -c ./jsdoc.json -R README.md -d ./docs"
5454
}
55-
}
55+
}

src/js/WebApiClient.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
11
// Get WebApiClient core
22
var WebApiClient = require("./WebApiClient.Core.js");
33

4+
/* @preserve
5+
* The Bluebird license is included below as Terser keeps removing it (https://github.com/terser/terser/issues/575)
6+
*/
7+
8+
/* @preserve
9+
* The MIT License (MIT)
10+
*
11+
* Copyright (c) 2013-2018 Petka Antonov
12+
*
13+
* Permission is hereby granted, free of charge, to any person obtaining a copy
14+
* of this software and associated documentation files (the "Software"), to deal
15+
* in the Software without restriction, including without limitation the rights
16+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17+
* copies of the Software, and to permit persons to whom the Software is
18+
* furnished to do so, subject to the following conditions:
19+
*
20+
* The above copyright notice and this permission notice shall be included in
21+
* all copies or substantial portions of the Software.
22+
*
23+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29+
* THE SOFTWARE.
30+
*
31+
*/
432
/**
533
* This is the bundled version of bluebird for usage as polyfill in browsers that don't support promises natively
634
* @class

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
},
2020
extractComments: {
2121
condition: /^\**!|@preserve|@license|@cc_on/i,
22-
filename: "extracted-comments.js",
22+
filename: "WebApiClient.LICENSE.txt",
2323
banner: (licenseFile) => {
2424
return `License information can be found in ${licenseFile}`;
2525
}

0 commit comments

Comments
 (0)