@unicom-cloud/utils 0.1.0 → 0.1.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/case-name/index.js +7 -7
- package/class-name/index.js +2 -2
- package/clipboard-copy/index.js +1 -1
- package/file/fileToURL.js +1 -1
- package/is/index.js +41 -41
- package/mock/MockWebSocket.js +2 -2
- package/mock/MockXMLHttpRequest.js +2 -2
- package/package.json +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/web.js +1 -1
package/case-name/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import C from "lodash/camelCase
|
|
2
|
-
import f from "lodash/capitalize
|
|
3
|
-
import n from "lodash/kebabCase
|
|
4
|
-
import N from "lodash/lowerFirst
|
|
5
|
-
import l from "lodash/snakeCase
|
|
6
|
-
import u from "lodash/startCase
|
|
7
|
-
import a from "lodash/upperFirst
|
|
1
|
+
import C from "lodash/camelCase";
|
|
2
|
+
import f from "lodash/capitalize";
|
|
3
|
+
import n from "lodash/kebabCase";
|
|
4
|
+
import N from "lodash/lowerFirst";
|
|
5
|
+
import l from "lodash/snakeCase";
|
|
6
|
+
import u from "lodash/startCase";
|
|
7
|
+
import a from "lodash/upperFirst";
|
|
8
8
|
function g(e) {
|
|
9
9
|
const s = n(e), o = l(e), t = C(e), r = f(e), m = u(e), i = N(e), p = a(e), c = a(t);
|
|
10
10
|
return {
|
package/class-name/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import r from "lodash/isPlainObject
|
|
2
|
-
import a from "lodash/uniq
|
|
1
|
+
import r from "lodash/isPlainObject";
|
|
2
|
+
import a from "lodash/uniq";
|
|
3
3
|
function m(...n) {
|
|
4
4
|
const i = " ", e = n.map((t, f, l) => r(t) ? Object.keys(t).filter((o) => t[o]) : t).flat(1 / 0).filter(Boolean).join(i).split(i).filter(Boolean);
|
|
5
5
|
return a(e).join(i);
|
package/clipboard-copy/index.js
CHANGED
package/file/fileToURL.js
CHANGED
package/is/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { default as $ } from "lodash/isArguments
|
|
2
|
-
import i from "lodash/isArray
|
|
3
|
-
import { default as L } from "lodash/isArray
|
|
4
|
-
import { default as W } from "lodash/isArrayBuffer
|
|
5
|
-
import { default as P } from "lodash/isArrayLike
|
|
6
|
-
import { default as v } from "lodash/isArrayLikeObject
|
|
7
|
-
import { default as V } from "lodash/isBoolean
|
|
8
|
-
import { default as T } from "lodash/isBuffer
|
|
9
|
-
import { default as z } from "lodash/isDate
|
|
10
|
-
import { default as H } from "lodash/isElement
|
|
11
|
-
import o from "lodash/isEmpty
|
|
12
|
-
import { default as Q } from "lodash/isEmpty
|
|
13
|
-
import { default as Y } from "lodash/isEqual
|
|
14
|
-
import { default as _ } from "lodash/isEqualWith
|
|
15
|
-
import { default as et } from "lodash/isError
|
|
16
|
-
import { default as ot } from "lodash/isFinite
|
|
17
|
-
import { default as st } from "lodash/isFunction
|
|
18
|
-
import { default as it } from "lodash/isInteger
|
|
19
|
-
import { default as ut } from "lodash/isLength
|
|
20
|
-
import { default as dt } from "lodash/isMap
|
|
21
|
-
import { default as pt } from "lodash/isMatch
|
|
22
|
-
import { default as xt } from "lodash/isMatchWith
|
|
23
|
-
import { default as yt } from "lodash/isNaN
|
|
24
|
-
import { default as gt } from "lodash/isNative
|
|
25
|
-
import l from "lodash/isNil
|
|
26
|
-
import { default as ht } from "lodash/isNil
|
|
27
|
-
import { default as Ot } from "lodash/isNull
|
|
28
|
-
import { default as At } from "lodash/isNumber
|
|
29
|
-
import u from "lodash/isObject
|
|
30
|
-
import { default as Bt } from "lodash/isObject
|
|
31
|
-
import { default as kt } from "lodash/isObjectLike
|
|
32
|
-
import { default as $t } from "lodash/isPlainObject
|
|
33
|
-
import { default as Lt } from "lodash/isRegExp
|
|
34
|
-
import { default as Wt } from "lodash/isSafeInteger
|
|
35
|
-
import { default as Pt } from "lodash/isSet
|
|
36
|
-
import { default as vt } from "lodash/isString
|
|
37
|
-
import { default as Vt } from "lodash/isSymbol
|
|
38
|
-
import { default as Tt } from "lodash/isTypedArray
|
|
39
|
-
import { default as zt } from "lodash/isUndefined
|
|
40
|
-
import { default as Ht } from "lodash/isWeakMap
|
|
41
|
-
import { default as Qt } from "lodash/isWeakSet
|
|
1
|
+
import { default as $ } from "lodash/isArguments";
|
|
2
|
+
import i from "lodash/isArray";
|
|
3
|
+
import { default as L } from "lodash/isArray";
|
|
4
|
+
import { default as W } from "lodash/isArrayBuffer";
|
|
5
|
+
import { default as P } from "lodash/isArrayLike";
|
|
6
|
+
import { default as v } from "lodash/isArrayLikeObject";
|
|
7
|
+
import { default as V } from "lodash/isBoolean";
|
|
8
|
+
import { default as T } from "lodash/isBuffer";
|
|
9
|
+
import { default as z } from "lodash/isDate";
|
|
10
|
+
import { default as H } from "lodash/isElement";
|
|
11
|
+
import o from "lodash/isEmpty";
|
|
12
|
+
import { default as Q } from "lodash/isEmpty";
|
|
13
|
+
import { default as Y } from "lodash/isEqual";
|
|
14
|
+
import { default as _ } from "lodash/isEqualWith";
|
|
15
|
+
import { default as et } from "lodash/isError";
|
|
16
|
+
import { default as ot } from "lodash/isFinite";
|
|
17
|
+
import { default as st } from "lodash/isFunction";
|
|
18
|
+
import { default as it } from "lodash/isInteger";
|
|
19
|
+
import { default as ut } from "lodash/isLength";
|
|
20
|
+
import { default as dt } from "lodash/isMap";
|
|
21
|
+
import { default as pt } from "lodash/isMatch";
|
|
22
|
+
import { default as xt } from "lodash/isMatchWith";
|
|
23
|
+
import { default as yt } from "lodash/isNaN";
|
|
24
|
+
import { default as gt } from "lodash/isNative";
|
|
25
|
+
import l from "lodash/isNil";
|
|
26
|
+
import { default as ht } from "lodash/isNil";
|
|
27
|
+
import { default as Ot } from "lodash/isNull";
|
|
28
|
+
import { default as At } from "lodash/isNumber";
|
|
29
|
+
import u from "lodash/isObject";
|
|
30
|
+
import { default as Bt } from "lodash/isObject";
|
|
31
|
+
import { default as kt } from "lodash/isObjectLike";
|
|
32
|
+
import { default as $t } from "lodash/isPlainObject";
|
|
33
|
+
import { default as Lt } from "lodash/isRegExp";
|
|
34
|
+
import { default as Wt } from "lodash/isSafeInteger";
|
|
35
|
+
import { default as Pt } from "lodash/isSet";
|
|
36
|
+
import { default as vt } from "lodash/isString";
|
|
37
|
+
import { default as Vt } from "lodash/isSymbol";
|
|
38
|
+
import { default as Tt } from "lodash/isTypedArray";
|
|
39
|
+
import { default as zt } from "lodash/isUndefined";
|
|
40
|
+
import { default as Ht } from "lodash/isWeakMap";
|
|
41
|
+
import { default as Qt } from "lodash/isWeakSet";
|
|
42
42
|
function b(t) {
|
|
43
43
|
return t instanceof Promise;
|
|
44
44
|
}
|
package/mock/MockWebSocket.js
CHANGED
|
@@ -12,8 +12,8 @@ var O = (i, n, t, h) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import "../is/index.js";
|
|
15
|
-
import b from "lodash/isRegExp
|
|
16
|
-
import U from "lodash/isString
|
|
15
|
+
import b from "lodash/isRegExp";
|
|
16
|
+
import U from "lodash/isString";
|
|
17
17
|
const E = window.WebSocket, C = {};
|
|
18
18
|
function x(i = {}) {
|
|
19
19
|
var n;
|
|
@@ -4,8 +4,8 @@ var q = (e) => {
|
|
|
4
4
|
var T = (e, n, t) => n.has(e) || q("Cannot " + t);
|
|
5
5
|
var i = (e, n, t) => (T(e, n, "read from private field"), t ? t.call(e) : n.get(e)), a = (e, n, t) => n.has(e) ? q("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, t), h = (e, n, t, s) => (T(e, n, "write to private field"), s ? s.call(e, t) : n.set(e, t), t), y = (e, n, t) => (T(e, n, "access private method"), t);
|
|
6
6
|
import "../is/index.js";
|
|
7
|
-
import D from "lodash/isRegExp
|
|
8
|
-
import L from "lodash/isString
|
|
7
|
+
import D from "lodash/isRegExp";
|
|
8
|
+
import L from "lodash/isString";
|
|
9
9
|
const E = window.XMLHttpRequest, R = {};
|
|
10
10
|
function M(e = {}) {
|
|
11
11
|
var t, s, r, c, m;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/utils","version":"0.1.
|
|
1
|
+
{"name":"@unicom-cloud/utils","version":"0.1.2","dependencies":{},"peerDependencies":{"lodash":"^4.17.21"},"main":"./index.js","type":"module","types":"types/*","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
package/random/address.js
CHANGED
package/random/constellation.js
CHANGED
package/random/index.js
CHANGED
package/random/licensePlate.js
CHANGED
package/random/name.js
CHANGED
package/random/number.js
CHANGED
package/random/text.js
CHANGED
package/random/web.js
CHANGED