@jhqn/utils-core 0.0.2-beta.5 → 0.0.2-beta.6
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +9 -3
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const detectBrowser = require('detect-browser');
|
|
4
4
|
const dayjs = require('dayjs');
|
|
5
5
|
const localeData = require('dayjs/plugin/localeData');
|
|
6
6
|
const duration = require('dayjs/plugin/duration');
|
|
@@ -473,7 +473,7 @@ const attachFmt = (data) => {
|
|
|
473
473
|
return attachList.map(recoverFile);
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
exports.detect =
|
|
476
|
+
exports.detect = detectBrowser.detect;
|
|
477
477
|
exports.dayjs = dayjs__default;
|
|
478
478
|
exports.attachFmt = attachFmt;
|
|
479
479
|
exports.camel2Kebab = camel2Kebab;
|
package/dist/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/// <reference types="dayjs/plugin/objectSupport" />
|
|
6
6
|
import { ConfigType } from 'dayjs';
|
|
7
7
|
export { Dayjs, default as dayjs } from 'dayjs';
|
|
8
|
-
export { detect } from 'detect-browser
|
|
8
|
+
export { detect } from 'detect-browser';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* snake2Kebab
|
|
@@ -183,7 +183,10 @@ declare const jGroupC: (...args: any[]) => void;
|
|
|
183
183
|
/**
|
|
184
184
|
* jade console.groupEnd
|
|
185
185
|
*/
|
|
186
|
-
declare const jGroupE:
|
|
186
|
+
declare const jGroupE: {
|
|
187
|
+
(): void;
|
|
188
|
+
(): void;
|
|
189
|
+
};
|
|
187
190
|
/**
|
|
188
191
|
* jade console.time
|
|
189
192
|
* @param str
|
|
@@ -197,7 +200,10 @@ declare const jTimeEnd: (str: string) => void;
|
|
|
197
200
|
/**
|
|
198
201
|
* jade console.clear
|
|
199
202
|
*/
|
|
200
|
-
declare const jClear:
|
|
203
|
+
declare const jClear: {
|
|
204
|
+
(): void;
|
|
205
|
+
(): void;
|
|
206
|
+
};
|
|
201
207
|
|
|
202
208
|
/**
|
|
203
209
|
* 不连续打印相同的值
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/// <reference types="dayjs/plugin/objectSupport" />
|
|
6
6
|
import { ConfigType } from 'dayjs';
|
|
7
7
|
export { Dayjs, default as dayjs } from 'dayjs';
|
|
8
|
-
export { detect } from 'detect-browser
|
|
8
|
+
export { detect } from 'detect-browser';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* snake2Kebab
|
|
@@ -183,7 +183,10 @@ declare const jGroupC: (...args: any[]) => void;
|
|
|
183
183
|
/**
|
|
184
184
|
* jade console.groupEnd
|
|
185
185
|
*/
|
|
186
|
-
declare const jGroupE:
|
|
186
|
+
declare const jGroupE: {
|
|
187
|
+
(): void;
|
|
188
|
+
(): void;
|
|
189
|
+
};
|
|
187
190
|
/**
|
|
188
191
|
* jade console.time
|
|
189
192
|
* @param str
|
|
@@ -197,7 +200,10 @@ declare const jTimeEnd: (str: string) => void;
|
|
|
197
200
|
/**
|
|
198
201
|
* jade console.clear
|
|
199
202
|
*/
|
|
200
|
-
declare const jClear:
|
|
203
|
+
declare const jClear: {
|
|
204
|
+
(): void;
|
|
205
|
+
(): void;
|
|
206
|
+
};
|
|
201
207
|
|
|
202
208
|
/**
|
|
203
209
|
* 不连续打印相同的值
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/// <reference types="dayjs/plugin/objectSupport" />
|
|
6
6
|
import { ConfigType } from 'dayjs';
|
|
7
7
|
export { Dayjs, default as dayjs } from 'dayjs';
|
|
8
|
-
export { detect } from 'detect-browser
|
|
8
|
+
export { detect } from 'detect-browser';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* snake2Kebab
|
|
@@ -183,7 +183,10 @@ declare const jGroupC: (...args: any[]) => void;
|
|
|
183
183
|
/**
|
|
184
184
|
* jade console.groupEnd
|
|
185
185
|
*/
|
|
186
|
-
declare const jGroupE:
|
|
186
|
+
declare const jGroupE: {
|
|
187
|
+
(): void;
|
|
188
|
+
(): void;
|
|
189
|
+
};
|
|
187
190
|
/**
|
|
188
191
|
* jade console.time
|
|
189
192
|
* @param str
|
|
@@ -197,7 +200,10 @@ declare const jTimeEnd: (str: string) => void;
|
|
|
197
200
|
/**
|
|
198
201
|
* jade console.clear
|
|
199
202
|
*/
|
|
200
|
-
declare const jClear:
|
|
203
|
+
declare const jClear: {
|
|
204
|
+
(): void;
|
|
205
|
+
(): void;
|
|
206
|
+
};
|
|
201
207
|
|
|
202
208
|
/**
|
|
203
209
|
* 不连续打印相同的值
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhqn/utils-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.2-beta.
|
|
4
|
+
"version": "0.0.2-beta.6",
|
|
5
5
|
"author": "jade-gjz <jiangang.zhang@jaderd.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/jaderd-jh/utils/tree/main/packages/core#readme",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"dayjs": "^1.11.10",
|
|
41
|
-
"detect-browser
|
|
41
|
+
"detect-browser": "^5.3.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"test": "vitest",
|