@e-mc/types 0.11.1 → 0.11.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/README.md +6 -6
- package/constant.d.ts +2 -1
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/lib/settings.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.2/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogArguments } from "./lib/logger";
|
|
@@ -47,7 +47,7 @@ function convertTime(value: number | string): number;
|
|
|
47
47
|
function convertTime(value: HighResolutionTime, format: true): string;
|
|
48
48
|
function convertTime(value: HighResolutionTime, format?: boolean): number;
|
|
49
49
|
function hasGlob(value: string): boolean;
|
|
50
|
-
function escapePattern(value: unknown,
|
|
50
|
+
function escapePattern(value: unknown, symbols?: boolean): string;
|
|
51
51
|
function renameExt(value: string, ext: string, when?: string): string;
|
|
52
52
|
function formatSize(value: string): number;
|
|
53
53
|
function formatSize(value: number, options?: BytesOptions): string;
|
|
@@ -198,10 +198,10 @@ const IMPORT_MAP: Record<string, string | undefined>;
|
|
|
198
198
|
|
|
199
199
|
## References
|
|
200
200
|
|
|
201
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
202
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
203
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
204
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
201
|
+
- https://www.unpkg.com/@e-mc/types@0.11.2/index.d.ts
|
|
202
|
+
- https://www.unpkg.com/@e-mc/types@0.11.2/lib/logger.d.ts
|
|
203
|
+
- https://www.unpkg.com/@e-mc/types@0.11.2/lib/module.d.ts
|
|
204
|
+
- https://www.unpkg.com/@e-mc/types@0.11.2/lib/node.d.ts
|
|
205
205
|
|
|
206
206
|
* https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
207
207
|
* https://www.npmjs.com/package/@types/bytes
|
package/constant.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const enum INTERNAL {
|
|
2
|
-
VERSION = '0.11.
|
|
2
|
+
VERSION = '0.11.2',
|
|
3
3
|
TEMP_DIR = 'tmp',
|
|
4
4
|
CJS = '__cjs__'
|
|
5
5
|
}
|
|
@@ -309,6 +309,7 @@ export const enum SETTINGS_KEY_NAME {
|
|
|
309
309
|
NODE_REQUIRE_EXT = "node.require.ext",
|
|
310
310
|
NODE_REQUIRE_NPM = "node.require.npm",
|
|
311
311
|
NODE_REQUIRE_INLINE = "node.require.inline",
|
|
312
|
+
NODE_POSIX_STRICT = "node.posix.strict",
|
|
312
313
|
NODE_PACKAGE_MANAGER = "node.settings.package_manager",
|
|
313
314
|
TEMP_DIR = "temp.dir",
|
|
314
315
|
TEMP_WRITE = "temp.write",
|
package/index.d.ts
CHANGED
|
@@ -252,12 +252,14 @@ declare namespace types {
|
|
|
252
252
|
FILEMANAGER_INTERVAL: number;
|
|
253
253
|
WATCH_INTERVAL: number;
|
|
254
254
|
WATCH_CHANGE: number;
|
|
255
|
+
LOGGER_METER_INCREMENT: number;
|
|
255
256
|
}
|
|
256
257
|
|
|
257
258
|
const THRESHOLD: {
|
|
258
259
|
FILEMANAGER_INTERVAL: number;
|
|
259
260
|
WATCH_INTERVAL: number;
|
|
260
261
|
WATCH_CHANGE: number;
|
|
262
|
+
LOGGER_METER_INCREMENT: number;
|
|
261
263
|
};
|
|
262
264
|
|
|
263
265
|
const IMPORT_MAP: StringMap;
|
package/index.js
CHANGED
|
@@ -477,6 +477,7 @@ var THRESHOLD;
|
|
|
477
477
|
THRESHOLD[THRESHOLD["FILEMANAGER_INTERVAL"] = 100] = "FILEMANAGER_INTERVAL";
|
|
478
478
|
THRESHOLD[THRESHOLD["WATCH_INTERVAL"] = 500] = "WATCH_INTERVAL";
|
|
479
479
|
THRESHOLD[THRESHOLD["WATCH_CHANGE"] = 100] = "WATCH_CHANGE";
|
|
480
|
+
THRESHOLD[THRESHOLD["LOGGER_METER_INCREMENT"] = 250] = "LOGGER_METER_INCREMENT";
|
|
480
481
|
})(THRESHOLD || (exports.THRESHOLD = THRESHOLD = {}));
|
|
481
482
|
exports.IMPORT_MAP = {
|
|
482
483
|
"atlas": "@pi-r/atlas",
|
package/lib/settings.d.ts
CHANGED