nightingale-types 11.6.0 → 11.7.4

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/root", "@pob/eslint-config-node"],
3
+ "extends": ["@pob/eslint-config/root-commonjs"],
4
4
  "ignorePatterns": ["*.d.ts", "/dist"]
5
5
  }
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.4](https://github.com/christophehurpeau/nightingale/compare/v11.7.3...v11.7.4) (2021-11-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * build all packages ([dbb4785](https://github.com/christophehurpeau/nightingale/commit/dbb4785cbb8c75942935c4a5935df32fd2e93690))
12
+
13
+
14
+
15
+
16
+
17
+ ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
18
+
19
+ **Note:** Version bump only for package nightingale-types
20
+
21
+
22
+
23
+
24
+
25
+ ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * update pob-babel to bring back webpack 4 support ([4887431](https://github.com/christophehurpeau/nightingale/commit/4887431b3b272496511f879af022638723b9056e))
31
+
32
+
33
+
34
+
35
+
36
+ # [11.7.0](https://github.com/christophehurpeau/nightingale/compare/v11.6.0...v11.7.0) (2021-03-29)
37
+
38
+ **Note:** Version bump only for package nightingale-types
39
+
40
+
41
+
42
+
43
+
6
44
  # [11.6.0](https://github.com/christophehurpeau/nightingale/compare/v11.5.4...v11.6.0) (2021-03-21)
7
45
 
8
46
 
@@ -1,3 +1,10 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var nightingaleLevels = require('nightingale-levels');
6
+
7
+
8
+
9
+ exports.Level = nightingaleLevels.Level;
3
10
  //# sourceMappingURL=index-browser-dev.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser-dev.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index-browser-dev.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +1,2 @@
1
-
1
+ export { Level } from 'nightingale-levels';
2
2
  //# sourceMappingURL=index-browser-dev.es.js.map
@@ -1,3 +1,10 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var nightingaleLevels = require('nightingale-levels');
6
+
7
+
8
+
9
+ exports.Level = nightingaleLevels.Level;
3
10
  //# sourceMappingURL=index-browser.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index-browser.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +1,2 @@
1
-
1
+ export { Level } from 'nightingale-levels';
2
2
  //# sourceMappingURL=index-browser.es.js.map
@@ -1,2 +1,2 @@
1
-
1
+ export { Level } from 'nightingale-levels';
2
2
  //# sourceMappingURL=index-browsermodern-dev.es.js.map
@@ -1,2 +1,2 @@
1
-
1
+ export { Level } from 'nightingale-levels';
2
2
  //# sourceMappingURL=index-browsermodern.es.js.map
@@ -1,3 +1,10 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const nightingaleLevels = require('nightingale-levels');
6
+
7
+
8
+
9
+ exports.Level = nightingaleLevels.Level;
3
10
  //# sourceMappingURL=index-node12-dev.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node12-dev.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index-node12-dev.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +1,2 @@
1
-
1
+ export { Level } from 'nightingale-levels';
2
2
  //# sourceMappingURL=index-node12-dev.mjs.map
@@ -1,3 +1,10 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const nightingaleLevels = require('nightingale-levels');
6
+
7
+
8
+
9
+ exports.Level = nightingaleLevels.Level;
3
10
  //# sourceMappingURL=index-node12.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node12.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index-node12.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +1,2 @@
1
-
1
+ export { Level } from 'nightingale-levels';
2
2
  //# sourceMappingURL=index-node12.mjs.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type Level from 'nightingale-levels';
2
- export type { Level };
1
+ import type { Level } from 'nightingale-levels';
2
+ export { Level } from 'nightingale-levels';
3
3
  export declare type Styles = string[] | undefined;
4
4
  export interface Metadata {
5
5
  context?: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAE5C,YAAY,EAAE,KAAK,EAAE,CAAC;AAEtB,oBAAY,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAE1C,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B;AAED,oBAAY,cAAc,CAAC,CAAC,SAAS,QAAQ,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAA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GAAG,CAAC,CAAC,SAAS,QAAQ,EACzC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-types",
3
- "version": "11.6.0",
3
+ "version": "11.7.4",
4
4
  "description": "Nightingale types for typescript",
5
5
  "keywords": [
6
6
  "logger"
@@ -13,26 +13,23 @@
13
13
  "directory": "packages/nightingale-types"
14
14
  },
15
15
  "homepage": "https://github.com/christophehurpeau/nightingale",
16
+ "type": "commonjs",
16
17
  "engines": {
17
- "node": ">=12.10.0"
18
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
18
19
  },
19
20
  "browserslist": [
21
+ "defaults",
20
22
  "> 0.2%",
21
- "Firefox ESR",
22
- "last 2 Chrome versions",
23
- "last 2 iOS versions",
24
- "last 2 Edge versions",
25
- "last 2 Safari versions",
26
23
  "not ie < 12",
27
- "not ios_saf < 10",
28
- "not dead",
29
- "not op_mini all"
24
+ "not safari < 10",
25
+ "not ios_saf < 10"
30
26
  ],
31
- "main": "./index.js",
27
+ "main": "./dist/index-node12.cjs.js",
32
28
  "types": "./dist/index.d.ts",
33
29
  "module": "./dist/index-browser.es.js",
34
30
  "browser": "./dist/index-browser.es.js",
35
31
  "exports": {
32
+ "./package.json": "./package.json",
36
33
  ".": {
37
34
  "node": {
38
35
  "development": {
@@ -69,7 +66,7 @@
69
66
  "build": "pob-build && yarn run build:definitions",
70
67
  "build:definitions": "tsc -p tsconfig.build.json",
71
68
  "lint": "yarn run lint:eslint",
72
- "lint:eslint": "yarn --cwd ../.. run eslint --ext .js,.mjs,.ts --report-unused-disable-directives --quiet packages/nightingale-types",
69
+ "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-types",
73
70
  "watch": "pob-watch"
74
71
  },
75
72
  "prettier": {
@@ -107,26 +104,16 @@
107
104
  ]
108
105
  },
109
106
  "dependencies": {
110
- "nightingale-levels": "^11.6.0"
107
+ "nightingale-levels": "^11.7.2"
111
108
  },
112
109
  "devDependencies": {
113
- "@babel/core": "7.13.10",
114
- "@babel/preset-env": "7.13.10",
115
- "@pob/eslint-config": "43.0.0",
116
- "@pob/eslint-config-node": "43.1.0",
117
- "@pob/eslint-config-typescript": "43.0.0",
118
- "@typescript-eslint/eslint-plugin": "4.18.0",
119
- "@typescript-eslint/parser": "4.18.0",
110
+ "@babel/core": "7.16.0",
111
+ "@babel/preset-env": "7.16.4",
120
112
  "babel-preset-latest-node": "5.5.1",
121
113
  "babel-preset-modern-browsers": "15.0.2",
122
- "eslint": "7.22.0",
123
- "eslint-import-resolver-node": "0.3.4",
124
- "eslint-plugin-import": "2.22.1",
125
- "eslint-plugin-node": "11.1.0",
126
- "eslint-plugin-unicorn": "25.0.1",
127
- "pob-babel": "26.8.0",
128
- "rollup": "2.42.1",
129
- "typescript": "4.2.3"
114
+ "pob-babel": "28.5.0",
115
+ "rollup": "2.60.1",
116
+ "typescript": "4.5.2"
130
117
  },
131
- "gitHead": "56849d6762e917f29c20f932569973046a24f602"
118
+ "gitHead": "70f6b4ba634ff778fc94bef7e2455e8b6a7db06a"
132
119
  }
@@ -0,0 +1,3 @@
1
+ import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
+
3
+ export default createRollupConfig({});
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type Level from 'nightingale-levels';
1
+ import type { Level } from 'nightingale-levels';
2
2
 
3
- export type { Level };
3
+ export { Level } from 'nightingale-levels';
4
4
 
5
5
  export type Styles = string[] | undefined;
6
6
 
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=index-node10-dev.cjs.map
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=index-node10-dev.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node10-dev.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node10-dev.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index-node10-dev.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node10-dev.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=index-node10.cjs.map
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=index-node10.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node10.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node10.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=index-node10.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node10.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- /* eslint-disable import/no-dynamic-require */
2
-
3
- 'use strict';
4
-
5
- const production = process.env.NODE_ENV === 'production';
6
- module.exports = require(`./dist/index-node12${production ? '' : '-dev'}.cjs`);