nightingale-string 11.5.2 → 11.7.2
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/.eslintrc.json +1 -1
- package/CHANGELOG.md +38 -0
- package/dist/index-node12-dev.cjs.js +2 -2
- package/dist/index-node12-dev.mjs +1 -2
- package/dist/index-node12-dev.mjs.map +1 -1
- package/dist/index-node12.cjs.js +2 -2
- package/dist/index-node12.mjs +1 -2
- package/dist/index-node12.mjs.map +1 -1
- package/package.json +14 -23
- package/rollup.config.mjs +3 -0
- package/src/.eslintrc.json +1 -1
- package/git-hooks/post-checkout +0 -5
- package/git-hooks/post-merge +0 -5
- package/git-hooks/pre-commit +0 -45
- package/git-hooks/prepare-commit-msg +0 -11
- package/index.js +0 -6
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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
|
+
## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package nightingale-string
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* update pob-babel to bring back webpack 4 support ([4887431](https://github.com/christophehurpeau/nightingale/commit/4887431b3b272496511f879af022638723b9056e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [11.7.0](https://github.com/christophehurpeau/nightingale/compare/v11.6.0...v11.7.0) (2021-03-29)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package nightingale-string
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [11.6.0](https://github.com/christophehurpeau/nightingale/compare/v11.5.4...v11.6.0) (2021-03-21)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* update dependencies and browserlist config ([81d2340](https://github.com/christophehurpeau/nightingale/commit/81d234069412c746ebc99faed778092790f332ca))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [11.5.2](https://github.com/christophehurpeau/nightingale/compare/v11.5.1...v11.5.2) (2021-02-14)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package nightingale-string
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const formatterRaw = require('nightingale-raw-formatter');
|
|
6
6
|
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e[
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
8
8
|
|
|
9
9
|
const formatterRaw__default = /*#__PURE__*/_interopDefaultLegacy(formatterRaw);
|
|
10
10
|
|
|
@@ -26,5 +26,5 @@ class StringHandler {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
exports.StringHandler = StringHandler;
|
|
29
|
-
exports
|
|
29
|
+
exports["default"] = StringHandler;
|
|
30
30
|
//# sourceMappingURL=index-node12-dev.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-node12-dev.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\n/** @deprecated use named export instead */\nexport default StringHandler;\n"],"names":["StringHandler","constructor","minLevel","_buffer","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAN,CAAuC;AAK5CC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAFrBC,OAEqB,GAFX,EAEW;AAC3B,SAAKD,QAAL,GAAgBA,QAAhB;AACD;;AAES,MAANE,MAAM,GAAW;AACnB,WAAO,KAAKD,OAAZ;AACD;;AAEDE,EAAAA,MAAM,CAAqBC,MAArB,EAAiD;AACrD,SAAKH,OAAL,IAAgBI,YAAY,CAACD,MAAD,CAAZ,GAAuB,IAAvC;AACD;;AAf2C
|
|
1
|
+
{"version":3,"file":"index-node12-dev.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\n/** @deprecated use named export instead */\nexport default StringHandler;\n"],"names":["StringHandler","constructor","minLevel","_buffer","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAN,CAAuC;AAK5CC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAFrBC,OAEqB,GAFX,EAEW;AAC3B,SAAKD,QAAL,GAAgBA,QAAhB;AACD;;AAES,MAANE,MAAM,GAAW;AACnB,WAAO,KAAKD,OAAZ;AACD;;AAEDE,EAAAA,MAAM,CAAqBC,MAArB,EAAiD;AACrD,SAAKH,OAAL,IAAgBI,YAAY,CAACD,MAAD,CAAZ,GAAuB,IAAvC;AACD;;AAf2C;;;;"}
|
package/dist/index-node12.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const formatterRaw = require('nightingale-raw-formatter');
|
|
6
6
|
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e[
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
8
8
|
|
|
9
9
|
const formatterRaw__default = /*#__PURE__*/_interopDefaultLegacy(formatterRaw);
|
|
10
10
|
|
|
@@ -26,5 +26,5 @@ class StringHandler {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
exports.StringHandler = StringHandler;
|
|
29
|
-
exports
|
|
29
|
+
exports["default"] = StringHandler;
|
|
30
30
|
//# sourceMappingURL=index-node12.cjs.js.map
|
package/dist/index-node12.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-node12.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\n/** @deprecated use named export instead */\nexport default StringHandler;\n"],"names":["StringHandler","constructor","minLevel","_buffer","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAN,CAAuC;AAK5CC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAFrBC,OAEqB,GAFX,EAEW;AAC3B,SAAKD,QAAL,GAAgBA,QAAhB;AACD;;AAES,MAANE,MAAM,GAAW;AACnB,WAAO,KAAKD,OAAZ;AACD;;AAEDE,EAAAA,MAAM,CAAqBC,MAArB,EAAiD;AACrD,SAAKH,OAAL,IAAgBI,YAAY,CAACD,MAAD,CAAZ,GAAuB,IAAvC;AACD;;AAf2C
|
|
1
|
+
{"version":3,"file":"index-node12.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\n/** @deprecated use named export instead */\nexport default StringHandler;\n"],"names":["StringHandler","constructor","minLevel","_buffer","string","handle","record","formatterRaw"],"mappings":";;AAAA;AAIO,MAAMA,aAAN,CAAuC;AAK5CC,EAAAA,WAAW,CAACC,QAAD,EAAkB;AAAA,SAFrBC,OAEqB,GAFX,EAEW;AAC3B,SAAKD,QAAL,GAAgBA,QAAhB;AACD;;AAES,MAANE,MAAM,GAAW;AACnB,WAAO,KAAKD,OAAZ;AACD;;AAEDE,EAAAA,MAAM,CAAqBC,MAArB,EAAiD;AACrD,SAAKH,OAAL,IAAgBI,YAAY,CAACD,MAAD,CAAZ,GAAuB,IAAvC;AACD;;AAf2C;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nightingale-string",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.7.2",
|
|
4
4
|
"description": "String handler for nightingale",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nightingale",
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
"directory": "packages/nightingale-string"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/christophehurpeau/nightingale",
|
|
17
|
+
"type": "commonjs",
|
|
17
18
|
"engines": {
|
|
18
|
-
"node": "
|
|
19
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
19
20
|
},
|
|
20
|
-
"main": "./index.js",
|
|
21
|
+
"main": "./dist/index-node12.cjs.js",
|
|
21
22
|
"types": "./dist/index.d.ts",
|
|
22
23
|
"exports": {
|
|
24
|
+
"./package.json": "./package.json",
|
|
23
25
|
".": {
|
|
24
26
|
"node": {
|
|
25
27
|
"development": {
|
|
@@ -39,7 +41,7 @@
|
|
|
39
41
|
"build:definitions": "tsc -p tsconfig.build.json",
|
|
40
42
|
"clean": "rm -Rf docs dist test/node6 coverage",
|
|
41
43
|
"lint": "yarn run lint:eslint",
|
|
42
|
-
"lint:eslint": "
|
|
44
|
+
"lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-string",
|
|
43
45
|
"watch": "pob-watch"
|
|
44
46
|
},
|
|
45
47
|
"prettier": {
|
|
@@ -63,26 +65,15 @@
|
|
|
63
65
|
]
|
|
64
66
|
},
|
|
65
67
|
"dependencies": {
|
|
66
|
-
"nightingale-raw-formatter": "^11.
|
|
67
|
-
"nightingale-types": "^11.
|
|
68
|
+
"nightingale-raw-formatter": "^11.7.2",
|
|
69
|
+
"nightingale-types": "^11.7.2"
|
|
68
70
|
},
|
|
69
71
|
"devDependencies": {
|
|
70
|
-
"@babel/core": "7.
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "4.15.0",
|
|
76
|
-
"@typescript-eslint/parser": "4.15.0",
|
|
77
|
-
"babel-preset-latest-node": "5.4.0",
|
|
78
|
-
"eslint": "7.20.0",
|
|
79
|
-
"eslint-import-resolver-node": "0.3.4",
|
|
80
|
-
"eslint-plugin-import": "2.22.1",
|
|
81
|
-
"eslint-plugin-node": "11.1.0",
|
|
82
|
-
"eslint-plugin-unicorn": "25.0.1",
|
|
83
|
-
"pob-babel": "26.5.0",
|
|
84
|
-
"rollup": "2.39.0",
|
|
85
|
-
"typescript": "4.1.5"
|
|
72
|
+
"@babel/core": "7.16.0",
|
|
73
|
+
"babel-preset-latest-node": "5.5.1",
|
|
74
|
+
"pob-babel": "28.5.0",
|
|
75
|
+
"rollup": "2.60.1",
|
|
76
|
+
"typescript": "4.5.2"
|
|
86
77
|
},
|
|
87
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "00b1ec6c7468b320e268a12eaac70d59a177787b"
|
|
88
79
|
}
|
package/src/.eslintrc.json
CHANGED
package/git-hooks/post-checkout
DELETED
package/git-hooks/post-merge
DELETED
package/git-hooks/pre-commit
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
if git rev-parse --verify HEAD >/dev/null 2>&1
|
|
4
|
-
then
|
|
5
|
-
against=HEAD
|
|
6
|
-
else
|
|
7
|
-
# Initial commit: diff against an empty tree object
|
|
8
|
-
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
|
9
|
-
fi
|
|
10
|
-
|
|
11
|
-
# If you want to allow non-ASCII filenames set this variable to true.
|
|
12
|
-
allownonascii=$(git config --bool hooks.allownonascii)
|
|
13
|
-
|
|
14
|
-
# Redirect output to stderr.
|
|
15
|
-
exec 1>&2
|
|
16
|
-
|
|
17
|
-
# Cross platform projects tend to avoid non-ASCII filenames; prevent
|
|
18
|
-
# them from being added to the repository. We exploit the fact that the
|
|
19
|
-
# printable range starts at the space character and ends with tilde.
|
|
20
|
-
if [ "$allownonascii" != "true" ] &&
|
|
21
|
-
# Note that the use of brackets around a tr range is ok here, (it's
|
|
22
|
-
# even required, for portability to Solaris 10's /usr/bin/tr), since
|
|
23
|
-
# the square bracket bytes happen to fall in the designated range.
|
|
24
|
-
test $(git diff --cached --name-only --diff-filter=A -z $against |
|
|
25
|
-
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
|
|
26
|
-
then
|
|
27
|
-
cat <<\EOF
|
|
28
|
-
Error: Attempt to add a non-ASCII file name.
|
|
29
|
-
|
|
30
|
-
This can cause problems if you want to work with people on other platforms.
|
|
31
|
-
|
|
32
|
-
To be portable it is advisable to rename the file.
|
|
33
|
-
|
|
34
|
-
If you know what you are doing you can disable this check using:
|
|
35
|
-
|
|
36
|
-
git config hooks.allownonascii true
|
|
37
|
-
EOF
|
|
38
|
-
exit 1
|
|
39
|
-
fi
|
|
40
|
-
|
|
41
|
-
# If there are whitespace errors, print the offending file names and fail.
|
|
42
|
-
git diff-index --check --cached $against -- || exit 1
|
|
43
|
-
|
|
44
|
-
echo 'Lint check'
|
|
45
|
-
npm run lint || exit 1
|