@ui5/logger 2.0.0 → 3.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.reuse/dep5 ADDED
@@ -0,0 +1,29 @@
1
+ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
+ Upstream-Name: ui5-logger
3
+ Upstream-Contact: SAP OpenUI5 <openui5@sap.com>
4
+ Source: https://github.com/SAP/ui5-logger
5
+ Disclaimer: The code in this project may include calls to APIs (“API Calls”) of
6
+ SAP or third-party products or services developed outside of this project
7
+ (“External Products”).
8
+ “APIs” means application programming interfaces, as well as their respective
9
+ specifications and implementing code that allows software to communicate with
10
+ other software.
11
+ API Calls to External Products are not licensed under the open source license
12
+ that governs this project. The use of such API Calls and related External
13
+ Products are subject to applicable additional agreements with the relevant
14
+ provider of the External Products. In no event shall the open source license
15
+ that governs this project grant any rights in or to any External Products,or
16
+ alter, expand or supersede any terms of the applicable additional agreements.
17
+ If you have a valid license agreement with SAP for the use of a particular SAP
18
+ External Product, then you may make use of any API Calls included in this
19
+ project’s code for that SAP External Product, subject to the terms of such
20
+ license agreement. If you do not have a valid license agreement for the use of
21
+ a particular SAP External Product, then you may only make use of any API Calls
22
+ in this project for that SAP External Product for your internal, non-productive
23
+ and non-commercial test and evaluation of such API Calls. Nothing herein grants
24
+ you any rights to use or access any SAP External Product, or provide any third
25
+ parties the right to use of access any SAP External Product, through API Calls.
26
+
27
+ Files: *
28
+ Copyright: 2018-2020 SAP SE or an SAP affiliate company and UI5 Tooling contributors
29
+ License: Apache-2.0
package/CHANGELOG.md CHANGED
@@ -2,10 +2,25 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
 
5
- A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v2.0.0...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.0...HEAD).
6
+
7
+ <a name="v3.0.1-alpha.0"></a>
8
+ ## [v3.0.1-alpha.0] - 0001-01-01
9
+
10
+ <a name="v3.0.0-alpha.0"></a>
11
+ ## [v3.0.0-alpha.0] - 2021-12-14
12
+
13
+ <a name="v3.0.0-next.0"></a>
14
+ ## [v3.0.0-next.0] - 2021-11-29
15
+
16
+ <a name="v2.0.1"></a>
17
+ ## [v2.0.1] - 2020-10-22
18
+ ### Bug Fixes
19
+ - Typos in error messages [`1d25902`](https://github.com/SAP/ui5-logger/commit/1d2590223c4332f5ea6f1326b23ecf584fea5934)
20
+
6
21
 
7
22
  <a name="v2.0.0"></a>
8
- ## [v2.0.0] - 2020-03-29
23
+ ## [v2.0.0] - 2020-03-31
9
24
  ### Breaking Changes
10
25
  - Require Node.js >= 10 [`1825d10`](https://github.com/SAP/ui5-logger/commit/1825d1013a88f164cbbfbf579c3e8e02df2b5082)
11
26
 
@@ -45,6 +60,10 @@ Only Node.js v10 or higher is supported.
45
60
  <a name="v0.0.1"></a>
46
61
  ## v0.0.1 - 2018-06-06
47
62
 
63
+ [v3.0.1-alpha.0]: https://github.com/SAP/ui5-logger/compare/v3.0.0-alpha.0...v3.0.1-alpha.0
64
+ [v3.0.0-alpha.0]: https://github.com/SAP/ui5-logger/compare/v3.0.0-next.0...v3.0.0-alpha.0
65
+ [v3.0.0-next.0]: https://github.com/SAP/ui5-logger/compare/v2.0.1...v3.0.0-next.0
66
+ [v2.0.1]: https://github.com/SAP/ui5-logger/compare/v2.0.0...v2.0.1
48
67
  [v2.0.0]: https://github.com/SAP/ui5-logger/compare/v1.0.2...v2.0.0
49
68
  [v1.0.2]: https://github.com/SAP/ui5-logger/compare/v1.0.1...v1.0.2
50
69
  [v1.0.1]: https://github.com/SAP/ui5-logger/compare/v1.0.0...v1.0.1
package/LICENSE.txt CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  Apache License
3
2
  Version 2.0, January 2004
4
3
  http://www.apache.org/licenses/
@@ -187,7 +186,7 @@
187
186
  same "printed page" as the copyright notice for easier
188
187
  identification within third-party archives.
189
188
 
190
- Copyright [yyyy] [name of copyright owner]
189
+ Copyright 2018-2021 SAP SE or an SAP affiliate company and UI5 Tooling contributors
191
190
 
192
191
  Licensed under the Apache License, Version 2.0 (the "License");
193
192
  you may not use this file except in compliance with the License.
@@ -200,36 +199,3 @@
200
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
200
  See the License for the specific language governing permissions and
202
201
  limitations under the License.
203
-
204
- ------------------------------------------------------------------------------
205
- APIs
206
-
207
- This project may include APIs to SAP or third party products or services. The use of these APIs, products and services may be subject to additional agreements. In no event shall the application of the Apache Software License, v.2 to this project grant any rights in or to these APIs, products or services that would alter, expand, be inconsistent with, or supersede any terms of these additional agreements. “API” means application programming interfaces, as well as their respective specifications and implementing code that allows other software products to communicate with or call on SAP or third party products or services (for example, SAP Enterprise Services, BAPIs, Idocs, RFCs and ABAP calls or other user exits) and may be made available through SAP or third party products, SDKs, documentation or other media.
208
-
209
- ------------------------------------------------------------------------------
210
- SUBCOMPONENTS
211
-
212
- This project includes the following subcomponents that are subject to separate license terms.
213
- Your use of these subcomponents is subject to the separate license terms applicable to
214
- each subcomponent.
215
-
216
- Component: deploy.sh
217
- Licensor: Domenic Denicola
218
- Website: https://gist.github.com/domenic/ec8b0fc8ab45f39403dd/e445116166c79d7ac35eb38a5d348d546f3d1620
219
- License: MIT License
220
- <year> = 2018
221
- <copyright holders> = Domenic Denicola
222
-
223
- ------------------------------------------------------------------------------
224
-
225
- The MIT License (MIT)
226
-
227
- Copyright <YEAR> <COPYRIGHT HOLDER>
228
-
229
- 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:
230
-
231
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
232
-
233
- 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.
234
-
235
- ------------------------------------------------------------------------------
@@ -0,0 +1,208 @@
1
+ Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION,
6
+ AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+
11
+
12
+ "License" shall mean the terms and conditions for use, reproduction, and distribution
13
+ as defined by Sections 1 through 9 of this document.
14
+
15
+
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
18
+ owner that is granting the License.
19
+
20
+
21
+
22
+ "Legal Entity" shall mean the union of the acting entity and all other entities
23
+ that control, are controlled by, or are under common control with that entity.
24
+ For the purposes of this definition, "control" means (i) the power, direct
25
+ or indirect, to cause the direction or management of such entity, whether
26
+ by contract or otherwise, or (ii) ownership of fifty percent (50%) or more
27
+ of the outstanding shares, or (iii) beneficial ownership of such entity.
28
+
29
+
30
+
31
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions
32
+ granted by this License.
33
+
34
+
35
+
36
+ "Source" form shall mean the preferred form for making modifications, including
37
+ but not limited to software source code, documentation source, and configuration
38
+ files.
39
+
40
+
41
+
42
+ "Object" form shall mean any form resulting from mechanical transformation
43
+ or translation of a Source form, including but not limited to compiled object
44
+ code, generated documentation, and conversions to other media types.
45
+
46
+
47
+
48
+ "Work" shall mean the work of authorship, whether in Source or Object form,
49
+ made available under the License, as indicated by a copyright notice that
50
+ is included in or attached to the work (an example is provided in the Appendix
51
+ below).
52
+
53
+
54
+
55
+ "Derivative Works" shall mean any work, whether in Source or Object form,
56
+ that is based on (or derived from) the Work and for which the editorial revisions,
57
+ annotations, elaborations, or other modifications represent, as a whole, an
58
+ original work of authorship. For the purposes of this License, Derivative
59
+ Works shall not include works that remain separable from, or merely link (or
60
+ bind by name) to the interfaces of, the Work and Derivative Works thereof.
61
+
62
+
63
+
64
+ "Contribution" shall mean any work of authorship, including the original version
65
+ of the Work and any modifications or additions to that Work or Derivative
66
+ Works thereof, that is intentionally submitted to Licensor for inclusion in
67
+ the Work by the copyright owner or by an individual or Legal Entity authorized
68
+ to submit on behalf of the copyright owner. For the purposes of this definition,
69
+ "submitted" means any form of electronic, verbal, or written communication
70
+ sent to the Licensor or its representatives, including but not limited to
71
+ communication on electronic mailing lists, source code control systems, and
72
+ issue tracking systems that are managed by, or on behalf of, the Licensor
73
+ for the purpose of discussing and improving the Work, but excluding communication
74
+ that is conspicuously marked or otherwise designated in writing by the copyright
75
+ owner as "Not a Contribution."
76
+
77
+
78
+
79
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
80
+ of whom a Contribution has been received by Licensor and subsequently incorporated
81
+ within the Work.
82
+
83
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
84
+ License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
85
+ no-charge, royalty-free, irrevocable copyright license to reproduce, prepare
86
+ Derivative Works of, publicly display, publicly perform, sublicense, and distribute
87
+ the Work and such Derivative Works in Source or Object form.
88
+
89
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
90
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
91
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
92
+ license to make, have made, use, offer to sell, sell, import, and otherwise
93
+ transfer the Work, where such license applies only to those patent claims
94
+ licensable by such Contributor that are necessarily infringed by their Contribution(s)
95
+ alone or by combination of their Contribution(s) with the Work to which such
96
+ Contribution(s) was submitted. If You institute patent litigation against
97
+ any entity (including a cross-claim or counterclaim in a lawsuit) alleging
98
+ that the Work or a Contribution incorporated within the Work constitutes direct
99
+ or contributory patent infringement, then any patent licenses granted to You
100
+ under this License for that Work shall terminate as of the date such litigation
101
+ is filed.
102
+
103
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
104
+ Derivative Works thereof in any medium, with or without modifications, and
105
+ in Source or Object form, provided that You meet the following conditions:
106
+
107
+ (a) You must give any other recipients of the Work or Derivative Works a copy
108
+ of this License; and
109
+
110
+ (b) You must cause any modified files to carry prominent notices stating that
111
+ You changed the files; and
112
+
113
+ (c) You must retain, in the Source form of any Derivative Works that You distribute,
114
+ all copyright, patent, trademark, and attribution notices from the Source
115
+ form of the Work, excluding those notices that do not pertain to any part
116
+ of the Derivative Works; and
117
+
118
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
119
+ then any Derivative Works that You distribute must include a readable copy
120
+ of the attribution notices contained within such NOTICE file, excluding those
121
+ notices that do not pertain to any part of the Derivative Works, in at least
122
+ one of the following places: within a NOTICE text file distributed as part
123
+ of the Derivative Works; within the Source form or documentation, if provided
124
+ along with the Derivative Works; or, within a display generated by the Derivative
125
+ Works, if and wherever such third-party notices normally appear. The contents
126
+ of the NOTICE file are for informational purposes only and do not modify the
127
+ License. You may add Your own attribution notices within Derivative Works
128
+ that You distribute, alongside or as an addendum to the NOTICE text from the
129
+ Work, provided that such additional attribution notices cannot be construed
130
+ as modifying the License.
131
+
132
+ You may add Your own copyright statement to Your modifications and may provide
133
+ additional or different license terms and conditions for use, reproduction,
134
+ or distribution of Your modifications, or for any such Derivative Works as
135
+ a whole, provided Your use, reproduction, and distribution of the Work otherwise
136
+ complies with the conditions stated in this License.
137
+
138
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
139
+ Contribution intentionally submitted for inclusion in the Work by You to the
140
+ Licensor shall be under the terms and conditions of this License, without
141
+ any additional terms or conditions. Notwithstanding the above, nothing herein
142
+ shall supersede or modify the terms of any separate license agreement you
143
+ may have executed with Licensor regarding such Contributions.
144
+
145
+ 6. Trademarks. This License does not grant permission to use the trade names,
146
+ trademarks, service marks, or product names of the Licensor, except as required
147
+ for reasonable and customary use in describing the origin of the Work and
148
+ reproducing the content of the NOTICE file.
149
+
150
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to
151
+ in writing, Licensor provides the Work (and each Contributor provides its
152
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
153
+ KIND, either express or implied, including, without limitation, any warranties
154
+ or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR
155
+ A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness
156
+ of using or redistributing the Work and assume any risks associated with Your
157
+ exercise of permissions under this License.
158
+
159
+ 8. Limitation of Liability. In no event and under no legal theory, whether
160
+ in tort (including negligence), contract, or otherwise, unless required by
161
+ applicable law (such as deliberate and grossly negligent acts) or agreed to
162
+ in writing, shall any Contributor be liable to You for damages, including
163
+ any direct, indirect, special, incidental, or consequential damages of any
164
+ character arising as a result of this License or out of the use or inability
165
+ to use the Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all other commercial
167
+ damages or losses), even if such Contributor has been advised of the possibility
168
+ of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work
171
+ or Derivative Works thereof, You may choose to offer, and charge a fee for,
172
+ acceptance of support, warranty, indemnity, or other liability obligations
173
+ and/or rights consistent with this License. However, in accepting such obligations,
174
+ You may act only on Your own behalf and on Your sole responsibility, not on
175
+ behalf of any other Contributor, and only if You agree to indemnify, defend,
176
+ and hold each Contributor harmless for any liability incurred by, or claims
177
+ asserted against, such Contributor by reason of your accepting any such warranty
178
+ or additional liability. END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following boilerplate
183
+ notice, with the fields enclosed by brackets "[]" replaced with your own identifying
184
+ information. (Don't include the brackets!) The text should be enclosed in
185
+ the appropriate comment syntax for the file format. We also recommend that
186
+ a file or class name and description of purpose be included on the same "printed
187
+ page" as the copyright notice for easier identification within third-party
188
+ archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+
194
+ you may not use this file except in compliance with the License.
195
+
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+
204
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
+
206
+ See the License for the specific language governing permissions and
207
+
208
+ limitations under the License.
package/README.md CHANGED
@@ -4,10 +4,9 @@
4
4
  > Internal logging module
5
5
  > Part of the [UI5 Tooling](https://github.com/SAP/ui5-tooling)
6
6
 
7
+ [![REUSE status](https://api.reuse.software/badge/github.com/SAP/ui5-logger)](https://api.reuse.software/info/github.com/SAP/ui5-logger)
7
8
  [![Build Status](https://dev.azure.com/sap/opensource/_apis/build/status/SAP.ui5-logger?branchName=master)](https://dev.azure.com/sap/opensource/_build/latest?definitionId=37&branchName=master)
8
9
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Flogger.svg)](https://www.npmjs.com/package/@ui5/logger)
9
- [![Dependency Status](https://david-dm.org/SAP/ui5-logger/master.svg)](https://david-dm.org/SAP/ui5-logger/master)
10
- [![devDependency Status](https://david-dm.org/SAP/ui5-logger/master/dev-status.svg)](https://david-dm.org/SAP/ui5-logger/master#info=devDependencies)
11
10
 
12
11
  ## Documentation
13
12
  General documentation can of the UI5 Tooling can be found here: [sap.github.io/ui5-tooling](https://sap.github.io/ui5-tooling/)
@@ -21,8 +20,7 @@ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/bl
21
20
  ## Support
22
21
  Please follow our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/master/CONTRIBUTING.md#report-an-issue) on how to report an issue.
23
22
 
23
+ Please report issues in the main [UI5 Tooling](https://github.com/SAP/ui5-tooling) repository.
24
+
24
25
  ## Release History
25
26
  See [CHANGELOG.md](CHANGELOG.md).
26
-
27
- ## License
28
- This project is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](/LICENSE.txt) file.
package/lib/logger.js CHANGED
@@ -4,7 +4,7 @@ const levels = ["silly", "verbose", "info", "warn", "error", "silent"];
4
4
  if (process.env.UI5_LOG_LVL) {
5
5
  const logLvl = process.env.UI5_LOG_LVL;
6
6
  if (!levels.includes(logLvl)) {
7
- throw new Error(`UI5 Logger: Environment variable UI5_LOG_LVL is set to an unkown log level "${logLvl}". ` +
7
+ throw new Error(`UI5 Logger: Environment variable UI5_LOG_LVL is set to an unknown log level "${logLvl}". ` +
8
8
  `Valid levels are ${levels.join(", ")}`);
9
9
  }
10
10
  npmlog.level = logLvl;
@@ -22,10 +22,10 @@ function isLevelEnabled(levelName) {
22
22
  const currIdx = levels.indexOf(npmlog.level);
23
23
  const reqIdx = levels.indexOf(levelName);
24
24
  if (currIdx === -1) {
25
- throw new Error(`Failed to find current log level "${npmlog.level}"" in list of expected log levels`);
25
+ throw new Error(`Failed to find current log level "${npmlog.level}" in list of expected log levels`);
26
26
  }
27
27
  if (reqIdx === -1) {
28
- throw new Error(`Unkown log level "${levelName}"`);
28
+ throw new Error(`Unknown log level "${levelName}"`);
29
29
  }
30
30
  if (reqIdx >= currIdx) {
31
31
  return true;
@@ -41,7 +41,7 @@ class Logger {
41
41
  }
42
42
 
43
43
  isLevelEnabled(levelName) {
44
- return isLevelEnabled(levelName);
44
+ return logger.isLevelEnabled(levelName);
45
45
  }
46
46
 
47
47
  silly(...messages) {
@@ -123,7 +123,7 @@ class TaskLogger extends Logger {
123
123
  }
124
124
  }
125
125
 
126
- module.exports = {
126
+ const logger = {
127
127
  getLogger: function(moduleName) {
128
128
  return new Logger(moduleName);
129
129
  },
@@ -134,7 +134,7 @@ module.exports = {
134
134
 
135
135
  setLevel(level) {
136
136
  if (!levels.includes(level)) {
137
- throw new Error(`Unkown log level "${level}"`);
137
+ throw new Error(`Unknown log level "${level}"`);
138
138
  }
139
139
  return npmlog.level = level;
140
140
  },
@@ -147,5 +147,14 @@ module.exports = {
147
147
  } else {
148
148
  npmlog.disableProgress();
149
149
  }
150
- }
150
+ },
151
151
  };
152
+
153
+ // Export internal classes for testing only
154
+ if (process.env.NODE_ENV === "test") {
155
+ logger.__test__ = {
156
+ Logger, GroupLogger, TaskLogger
157
+ };
158
+ }
159
+
160
+ module.exports = logger;
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@ui5/logger",
3
- "version": "2.0.0",
3
+ "version": "3.0.1-alpha.0",
4
4
  "description": "UI5 Tooling - Internal Logger",
5
- "author": "SAP SE (https://www.sap.com)",
5
+ "author": {
6
+ "name": "SAP SE",
7
+ "email": "openui5@sap.com",
8
+ "url": "https://www.sap.com"
9
+ },
6
10
  "license": "Apache-2.0",
7
11
  "keywords": [
8
12
  "openui5",
@@ -18,15 +22,15 @@
18
22
  "npm": ">= 5"
19
23
  },
20
24
  "scripts": {
21
- "test": "npm run lint && npm run jsdoc-generate",
22
- "test-azure": "npm run lint && npm run jsdoc-generate",
25
+ "test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck",
26
+ "test-azure": "npm run coverage-xunit",
23
27
  "lint": "eslint ./",
24
28
  "unit": "rimraf test/tmp && ava",
25
29
  "unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",
26
30
  "unit-watch": "rimraf test/tmp && ava --watch",
27
- "unit-nyan": "npm run unit -- --tap | tnyan",
31
+ "unit-nyan": "rimraf test/tmp && ava --tap | tnyan",
28
32
  "unit-xunit": "rimraf test/tmp && ava --tap | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
29
- "unit-inspect": "cross-env UI5_LOG_LVL=verbose node --inspect-brk node_modules/ava/profile.js",
33
+ "unit-inspect": "cross-env UI5_LOG_LVL=verbose ava debug --break",
30
34
  "coverage": "nyc npm run unit",
31
35
  "coverage-xunit": "nyc --reporter=text --reporter=text-summary --reporter=cobertura npm run unit-xunit",
32
36
  "jsdoc": "npm run jsdoc-generate && open-cli jsdocs/index.html",
@@ -36,21 +40,19 @@
36
40
  "version": "git-chglog --next-tag v$npm_package_version -o CHANGELOG.md && git add CHANGELOG.md",
37
41
  "postversion": "git push --follow-tags",
38
42
  "release-note": "git-chglog -c .chglog/release-config.yml v$npm_package_version",
39
- "report-coveralls": "nyc report --reporter=text-lcov | COVERALLS_PARALLEL=true coveralls"
43
+ "depcheck": "depcheck --ignores docdash"
40
44
  },
41
45
  "files": [
42
46
  "index.js",
43
47
  "CONTRIBUTING.md",
44
48
  "jsdoc.json",
45
- "lib/**"
49
+ "lib/**",
50
+ "LICENSES/**",
51
+ ".reuse/**"
46
52
  ],
47
53
  "ava": {
48
54
  "files": [
49
55
  "test/lib/**/*.js"
50
- ],
51
- "sources": [
52
- "lib/**/*.js",
53
- "test/lib/**/*.js"
54
56
  ]
55
57
  },
56
58
  "nyc": {
@@ -64,7 +66,8 @@
64
66
  "jsdocs/**",
65
67
  "coverage/**",
66
68
  "test/**",
67
- ".eslintrc.js"
69
+ ".eslintrc.js",
70
+ "jsdoc-plugin.js"
68
71
  ],
69
72
  "check-coverage": true,
70
73
  "statements": 90,
@@ -97,20 +100,24 @@
97
100
  "url": "git@github.com:SAP/ui5-logger.git"
98
101
  },
99
102
  "dependencies": {
100
- "npmlog": "^4.1.2"
103
+ "npmlog": "^5.0.1"
101
104
  },
102
105
  "devDependencies": {
103
- "ava": "^2.4.0",
104
- "chokidar-cli": "^2.1.0",
105
- "cross-env": "^7.0.2",
106
+ "ava": "^3.15.0",
107
+ "chokidar-cli": "^3.0.0",
108
+ "cross-env": "^7.0.3",
109
+ "depcheck": "^1.4.2",
106
110
  "docdash": "^1.2.0",
107
- "eslint": "^5.16.0",
111
+ "eslint": "^7.32.0",
108
112
  "eslint-config-google": "^0.14.0",
109
- "eslint-plugin-jsdoc": "^4.8.4",
110
- "jsdoc": "^3.6.3",
111
- "nyc": "^15.0.0",
113
+ "eslint-plugin-ava": "^13.1.0",
114
+ "eslint-plugin-jsdoc": "^37.2.0",
115
+ "jsdoc": "^3.6.7",
116
+ "mock-require": "^3.0.3",
117
+ "nyc": "^15.1.0",
112
118
  "open-cli": "^6.0.1",
113
119
  "rimraf": "^3.0.2",
120
+ "sinon": "^11.1.2",
114
121
  "tap-nyan": "^1.1.0",
115
122
  "tap-xunit": "^2.4.1"
116
123
  }
package/NOTICE.txt DELETED
@@ -1 +0,0 @@
1
- Copyright (c) 2018-2019 SAP SE or an SAP affiliate company. All rights reserved.