nightingale-string 12.1.4 → 13.0.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/CHANGELOG.md +22 -0
- package/README.md +3 -0
- package/dist/{index.d.ts → definitions/index.d.ts} +0 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/{index-node14.mjs → index-node16.mjs} +1 -5
- package/dist/{index-node14.cjs.map → index-node16.mjs.map} +1 -1
- package/package.json +19 -28
- package/dist/index-node14.cjs +0 -30
- package/dist/index-node14.mjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/rollup.config.mjs +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [13.0.0](https://github.com/christophehurpeau/nightingale/compare/v12.1.4...v13.0.0) (2022-11-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* drop node 14 and cjs ([9a8ca06](https://github.com/christophehurpeau/nightingale/commit/9a8ca064449ddc0d69e26543e21c2d522536c50a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* build for node 16 ([30ae3e9](https://github.com/christophehurpeau/nightingale/commit/30ae3e9c455dbad793c2f704b9d860069dc80c32))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### BREAKING CHANGES
|
|
20
|
+
|
|
21
|
+
* dropped node 14 and cjs
|
|
22
|
+
* drop node 14
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05)
|
|
7
29
|
|
|
8
30
|
|
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://npmjs.org/package/nightingale-string"><img src="https://img.shields.io/npm/v/nightingale-string.svg?style=flat-square"></a>
|
|
11
|
+
<a href="https://npmjs.org/package/nightingale-string"><img src="https://img.shields.io/npm/dw/nightingale-string.svg?style=flat-square"></a>
|
|
12
|
+
<a href="https://npmjs.org/package/nightingale-string"><img src="https://img.shields.io/node/v/nightingale-string.svg?style=flat-square"></a>
|
|
13
|
+
<a href="https://npmjs.org/package/nightingale-string"><img src="https://img.shields.io/npm/types/nightingale-string.svg?style=flat-square"></a>
|
|
11
14
|
</p>
|
|
12
15
|
|
|
13
16
|
## Install
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7E,qBAAa,aAAc,YAAW,OAAO;IAC3C,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC;IAEzB,OAAO,CAAC,OAAO,CAAM;gBAET,QAAQ,EAAE,KAAK;IAI3B,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,MAAM,CAAC,CAAC,SAAS,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI;CAGvD"}
|
|
@@ -3,20 +3,16 @@ import formatterRaw from 'nightingale-raw-formatter';
|
|
|
3
3
|
/* eslint-disable prefer-template */
|
|
4
4
|
class StringHandler {
|
|
5
5
|
_buffer = '';
|
|
6
|
-
|
|
7
6
|
constructor(minLevel) {
|
|
8
7
|
this.minLevel = minLevel;
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
get string() {
|
|
12
10
|
return this._buffer;
|
|
13
11
|
}
|
|
14
|
-
|
|
15
12
|
handle(record) {
|
|
16
13
|
this._buffer += formatterRaw(record) + '\n';
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
export { StringHandler };
|
|
22
|
-
//# sourceMappingURL=index-
|
|
18
|
+
//# sourceMappingURL=index-node16.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-node16.mjs","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable prefer-template */\nimport formatterRaw from 'nightingale-raw-formatter';\nimport type { Handler, Level, LogRecord, Metadata } from 'nightingale-types';\n\nexport class StringHandler implements Handler {\n readonly minLevel: Level;\n\n private _buffer = '';\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n }\n\n get string(): string {\n return this._buffer;\n }\n\n handle<T extends Metadata>(record: LogRecord<T>): void {\n this._buffer += formatterRaw(record) + '\\n';\n }\n}\n"],"names":["StringHandler","_buffer","constructor","minLevel","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAa,CAAoB;AAGpCC,EAAAA,OAAO,GAAG,EAAE,CAAA;EAEpBC,WAAW,CAACC,QAAe,EAAE;IAC3B,IAAI,CAACA,QAAQ,GAAGA,QAAQ,CAAA;AAC1B,GAAA;AAEA,EAAA,IAAIC,MAAM,GAAW;IACnB,OAAO,IAAI,CAACH,OAAO,CAAA;AACrB,GAAA;EAEAI,MAAM,CAAqBC,MAAoB,EAAQ;IACrD,IAAI,CAACL,OAAO,IAAIM,YAAY,CAACD,MAAM,CAAC,GAAG,IAAI,CAAA;AAC7C,GAAA;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nightingale-string",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "String handler for nightingale",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nightingale",
|
|
@@ -16,43 +16,34 @@
|
|
|
16
16
|
"homepage": "https://github.com/christophehurpeau/nightingale",
|
|
17
17
|
"type": "module",
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": "
|
|
19
|
+
"node": ">=16.0.0"
|
|
20
20
|
},
|
|
21
|
-
"main": "./dist/index-
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
21
|
+
"main": "./dist/index-node16.mjs",
|
|
22
|
+
"types": "./dist/definitions/index.d.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
"./package.json": "./package.json",
|
|
25
25
|
".": {
|
|
26
26
|
"node": {
|
|
27
|
-
"import": "./dist/index-
|
|
28
|
-
"require": "./dist/index-node14.cjs"
|
|
27
|
+
"import": "./dist/index-node16.mjs"
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
},
|
|
32
|
-
"module:node": "./dist/index-node14.mjs",
|
|
33
31
|
"sideEffects": false,
|
|
34
32
|
"scripts": {
|
|
35
|
-
"build": "
|
|
36
|
-
"build:definitions": "tsc -p
|
|
37
|
-
"clean": "
|
|
33
|
+
"build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
|
|
34
|
+
"build:definitions": "tsc -p",
|
|
35
|
+
"clean": "yarn clean:build",
|
|
36
|
+
"clean:build": "pob-babel-clean-out dist",
|
|
38
37
|
"lint": "yarn run lint:eslint",
|
|
39
|
-
"lint:eslint": "
|
|
40
|
-
"watch": "
|
|
41
|
-
},
|
|
42
|
-
"prettier": {
|
|
43
|
-
"trailingComma": "all",
|
|
44
|
-
"singleQuote": true,
|
|
45
|
-
"arrowParens": "always"
|
|
38
|
+
"lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-string",
|
|
39
|
+
"watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
|
|
46
40
|
},
|
|
41
|
+
"prettier": "@pob/root/prettier-config",
|
|
47
42
|
"pob": {
|
|
48
43
|
"babelEnvs": [
|
|
49
44
|
{
|
|
50
45
|
"target": "node",
|
|
51
|
-
"version": "
|
|
52
|
-
"formats": [
|
|
53
|
-
"cjs",
|
|
54
|
-
"es"
|
|
55
|
-
]
|
|
46
|
+
"version": "16"
|
|
56
47
|
}
|
|
57
48
|
],
|
|
58
49
|
"entries": [
|
|
@@ -60,13 +51,13 @@
|
|
|
60
51
|
]
|
|
61
52
|
},
|
|
62
53
|
"dependencies": {
|
|
63
|
-
"nightingale-raw-formatter": "
|
|
64
|
-
"nightingale-types": "
|
|
54
|
+
"nightingale-raw-formatter": "13.0.0",
|
|
55
|
+
"nightingale-types": "13.0.0"
|
|
65
56
|
},
|
|
66
57
|
"devDependencies": {
|
|
67
|
-
"@babel/core": "7.
|
|
68
|
-
"pob-babel": "
|
|
69
|
-
"typescript": "4.
|
|
58
|
+
"@babel/core": "7.20.2",
|
|
59
|
+
"pob-babel": "35.3.0",
|
|
60
|
+
"typescript": "4.9.3"
|
|
70
61
|
},
|
|
71
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "52cf7e3c8762a07891da9dde497ec03298c15654"
|
|
72
63
|
}
|
package/dist/index-node14.cjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const formatterRaw = require('nightingale-raw-formatter');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
8
|
-
|
|
9
|
-
const formatterRaw__default = /*#__PURE__*/_interopDefaultLegacy(formatterRaw);
|
|
10
|
-
|
|
11
|
-
/* eslint-disable prefer-template */
|
|
12
|
-
class StringHandler {
|
|
13
|
-
_buffer = '';
|
|
14
|
-
|
|
15
|
-
constructor(minLevel) {
|
|
16
|
-
this.minLevel = minLevel;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
get string() {
|
|
20
|
-
return this._buffer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
handle(record) {
|
|
24
|
-
this._buffer += formatterRaw__default(record) + '\n';
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
exports.StringHandler = StringHandler;
|
|
30
|
-
//# sourceMappingURL=index-node14.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-node14.mjs","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable prefer-template */\nimport formatterRaw from 'nightingale-raw-formatter';\nimport type { Handler, Level, LogRecord, Metadata } from 'nightingale-types';\n\nexport class StringHandler implements Handler {\n readonly minLevel: Level;\n\n private _buffer = '';\n\n constructor(minLevel: Level) {\n this.minLevel = minLevel;\n }\n\n get string(): string {\n return this._buffer;\n }\n\n handle<T extends Metadata>(record: LogRecord<T>): void {\n this._buffer += formatterRaw(record) + '\\n';\n }\n}\n"],"names":["StringHandler","_buffer","constructor","minLevel","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAN,CAAuC;AAGpCC,EAAAA,OAAO,GAAG,EAAH;;AAEfC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAC3B,SAAKA,QAAL,GAAgBA,QAAhB;AACD;;AAES,MAANC,MAAM,GAAW;AACnB,WAAO,KAAKH,OAAZ;AACD;;AAEDI,EAAAA,MAAM,CAAqBC,MAArB,EAAiD;AACrD,SAAKL,OAAL,IAAgBM,YAAY,CAACD,MAAD,CAAZ,GAAuB,IAAvC;AACD;;AAf2C;;;;"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7E,qBAAa,aAAc,YAAW,OAAO;IAC3C,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC;IAEzB,OAAO,CAAC,OAAO,CAAM;gBAET,QAAQ,EAAE,KAAK;IAI3B,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,MAAM,CAAC,CAAC,SAAS,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI;CAGvD"}
|
package/rollup.config.mjs
DELETED