uti 6.8.1 → 6.8.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -4
  3. package/src/uti.mjs +5 -12
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  [![npm](https://img.shields.io/npm/v/uti.svg)](https://www.npmjs.com/package/uti)
2
2
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
3
- [![minified size](https://badgen.net/bundlephobia/min/uti)](https://bundlephobia.com/result?p=uti)
3
+ [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=uti)
4
4
  [![downloads](http://img.shields.io/npm/dm/uti.svg?style=flat-square)](https://npmjs.org/package/uti)
5
5
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/uti.svg?style=flat-square)](https://github.com/arlac77/uti/issues)
6
6
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Futi%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/arlac77/uti/goto)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uti",
3
- "version": "6.8.1",
3
+ "version": "6.8.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,10 +30,10 @@
30
30
  "lint:docs": "documentation lint ./src/**/*.mjs"
31
31
  },
32
32
  "devDependencies": {
33
- "ava": "^4.3.0",
34
- "c8": "^7.11.3",
33
+ "ava": "^4.3.1",
34
+ "c8": "^7.12.0",
35
35
  "documentation": "^13.2.5",
36
- "semantic-release": "^19.0.2"
36
+ "semantic-release": "^19.0.3"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=14.18.3"
package/src/uti.mjs CHANGED
@@ -68,19 +68,12 @@ class UTI {
68
68
  * @property {Map<string,UTI>} utiByFileNameExtension
69
69
  */
70
70
  export class UTIController {
71
- constructor() {
72
- Object.defineProperties(this, {
73
- registry: {
74
- value: new Map()
75
- },
76
- utiByMimeType: {
77
- value: new Map()
78
- },
79
- utiByFileNameExtension: {
80
- value: new Map()
81
- }
82
- });
71
+ registry = new Map();
72
+ utiByMimeType = new Map();
73
+ utiByFileNameExtension = new Map();
83
74
 
75
+ constructor()
76
+ {
84
77
  this.register(types);
85
78
  }
86
79