@powerlines/plugin-eslint 0.8.174 → 0.8.176
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.mjs +2 -2
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.mjs +14 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.cjs +20 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.mjs +20 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.cjs +16 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs +16 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-null.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-null.mjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.cjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.mjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-plain-object.cjs +63 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-plain-object.mjs +63 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.cjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set.cjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set.mjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-undefined.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-undefined.mjs +7 -0
- package/package.json +5 -5
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/get-object-tag.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/get-object-tag.mjs +0 -5
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-date.cjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-date.mjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-empty.cjs +0 -27
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-empty.mjs +0 -27
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-function.cjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-function.mjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-non-null-object.cjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-null.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-null.mjs +0 -11
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-number.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-number.mjs +0 -11
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-object.cjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-object.mjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-plain-object.cjs +0 -14
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-plain-object.mjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.cjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.mjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set.cjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set.mjs +0 -13
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-symbol.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-symbol.mjs +0 -11
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-undefined.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-undefined.mjs +0 -5
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_is_set_object = require('./node_modules/.pnpm/@stryke_type-checks@0.5.
|
|
2
|
+
const require_is_set_object = require('./node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.cjs');
|
|
3
3
|
const require_helpers_format_message = require('./helpers/format-message.cjs');
|
|
4
4
|
require('./helpers/index.cjs');
|
|
5
5
|
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
@@ -47,7 +47,7 @@ function plugin(options = {}) {
|
|
|
47
47
|
}) } };
|
|
48
48
|
},
|
|
49
49
|
async configResolved() {
|
|
50
|
-
if (!require_is_set_object.
|
|
50
|
+
if (!require_is_set_object.isSetObject(this.packageJson.eslintConfig) && (!this.config.lint.eslint.configFile || !(0, __stryke_fs_exists.existsSync)(this.config.lint.eslint.configFile))) throw new Error("No ESLint configuration file could be found");
|
|
51
51
|
else if (this.config.lint.eslint.configFile && (0, __stryke_fs_exists.existsSync)(this.config.lint.eslint.configFile)) {
|
|
52
52
|
const content = await (0, __stryke_fs_read_file.readFile)(this.config.lint.eslint.configFile);
|
|
53
53
|
if (content?.trim().replace(/\s/g, "") || content?.trim().replace(/\s/g, "") === "---" || content?.trim().replace(/\s/g, "") === "{}" || content?.trim().replace(/\s/g, "") === "module.exports={}") throw new Error(`The ESLint configuration file at "${this.config.lint.eslint.configFile}" is empty`);
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isSetObject } from "./node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs";
|
|
2
2
|
import { MessageSeverity, formatMessage } from "./helpers/format-message.mjs";
|
|
3
3
|
import "./helpers/index.mjs";
|
|
4
4
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
@@ -46,7 +46,7 @@ function plugin(options = {}) {
|
|
|
46
46
|
}) } };
|
|
47
47
|
},
|
|
48
48
|
async configResolved() {
|
|
49
|
-
if (!
|
|
49
|
+
if (!isSetObject(this.packageJson.eslintConfig) && (!this.config.lint.eslint.configFile || !existsSync(this.config.lint.eslint.configFile))) throw new Error("No ESLint configuration file could be found");
|
|
50
50
|
else if (this.config.lint.eslint.configFile && existsSync(this.config.lint.eslint.configFile)) {
|
|
51
51
|
const content = await readFile(this.config.lint.eslint.configFile);
|
|
52
52
|
if (content?.trim().replace(/\s/g, "") || content?.trim().replace(/\s/g, "") === "---" || content?.trim().replace(/\s/g, "") === "{}" || content?.trim().replace(/\s/g, "") === "module.exports={}") throw new Error(`The ESLint configuration file at "${this.config.lint.eslint.configFile}" is empty`);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.mjs
|
|
3
|
+
/**
|
|
4
|
+
* Gets the `toStringTag` of `obj`.
|
|
5
|
+
*
|
|
6
|
+
* @param value - The obj to query.
|
|
7
|
+
* @returns Returns the `toStringTag`.
|
|
8
|
+
*/
|
|
9
|
+
const getObjectTag = (value) => {
|
|
10
|
+
if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
|
|
11
|
+
return Object.prototype.toString.call(value);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.getObjectTag = getObjectTag;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.mjs
|
|
2
|
+
/**
|
|
3
|
+
* Gets the `toStringTag` of `obj`.
|
|
4
|
+
*
|
|
5
|
+
* @param value - The obj to query.
|
|
6
|
+
* @returns Returns the `toStringTag`.
|
|
7
|
+
*/
|
|
8
|
+
const getObjectTag = (value) => {
|
|
9
|
+
if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
|
|
10
|
+
return Object.prototype.toString.call(value);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { getObjectTag };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_is_null = require('./is-null.cjs');
|
|
2
|
+
const require_is_undefined = require('./is-undefined.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.mjs
|
|
5
|
+
/**
|
|
6
|
+
* Check if the provided value's type is `null` or `undefined`
|
|
7
|
+
*
|
|
8
|
+
* @param value - The value to type check
|
|
9
|
+
* @returns An indicator specifying if the value provided is of type `null` or `undefined`
|
|
10
|
+
*/
|
|
11
|
+
const isEmpty = (value) => {
|
|
12
|
+
try {
|
|
13
|
+
return require_is_undefined.isUndefined(value) || require_is_null.isNull(value);
|
|
14
|
+
} catch {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.isEmpty = isEmpty;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isNull } from "./is-null.mjs";
|
|
2
|
+
import { isUndefined } from "./is-undefined.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.mjs
|
|
5
|
+
/**
|
|
6
|
+
* Check if the provided value's type is `null` or `undefined`
|
|
7
|
+
*
|
|
8
|
+
* @param value - The value to type check
|
|
9
|
+
* @returns An indicator specifying if the value provided is of type `null` or `undefined`
|
|
10
|
+
*/
|
|
11
|
+
const isEmpty = (value) => {
|
|
12
|
+
try {
|
|
13
|
+
return isUndefined(value) || isNull(value);
|
|
14
|
+
} catch {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { isEmpty };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_is_object = require('./is-object.cjs');
|
|
2
|
+
const require_is_set = require('./is-set.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs
|
|
5
|
+
/**
|
|
6
|
+
* Check if the provided value's type is `Object` and is not `null` or `undefined`
|
|
7
|
+
*
|
|
8
|
+
* @param value - The value to type check
|
|
9
|
+
* @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`
|
|
10
|
+
*/
|
|
11
|
+
const isNonNullObject = (value) => {
|
|
12
|
+
return require_is_set.isSet(value) && require_is_object.isObject(value);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.isNonNullObject = isNonNullObject;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { isObject } from "./is-object.mjs";
|
|
2
|
+
import { isSet } from "./is-set.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs
|
|
5
|
+
/**
|
|
6
|
+
* Check if the provided value's type is `Object` and is not `null` or `undefined`
|
|
7
|
+
*
|
|
8
|
+
* @param value - The value to type check
|
|
9
|
+
* @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`
|
|
10
|
+
*/
|
|
11
|
+
const isNonNullObject = (value) => {
|
|
12
|
+
return isSet(value) && isObject(value);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { isNonNullObject };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-null.mjs
|
|
3
|
+
const isNull = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
return value === null;
|
|
6
|
+
} catch {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.isNull = isNull;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_is_plain_object = require('./is-plain-object.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Check if the provided value's type is `Object`
|
|
6
|
+
*
|
|
7
|
+
* @param value - The value to type check
|
|
8
|
+
* @returns An indicator specifying if the value provided is of type `Object`
|
|
9
|
+
*/
|
|
10
|
+
const isObject = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
return typeof value === "object" || Boolean(value) && value?.constructor === Object || require_is_plain_object.isPlainObject(value);
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.isObject = isObject;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isPlainObject } from "./is-plain-object.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Check if the provided value's type is `Object`
|
|
6
|
+
*
|
|
7
|
+
* @param value - The value to type check
|
|
8
|
+
* @returns An indicator specifying if the value provided is of type `Object`
|
|
9
|
+
*/
|
|
10
|
+
const isObject = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
return typeof value === "object" || Boolean(value) && value?.constructor === Object || isPlainObject(value);
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { isObject };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const require_get_object_tag = require('./get-object-tag.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-plain-object.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
6
|
+
* and has a `typeof` result of "object".
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* isObjectLike({})
|
|
11
|
+
* // => true
|
|
12
|
+
*
|
|
13
|
+
* isObjectLike([1, 2, 3])
|
|
14
|
+
* // => true
|
|
15
|
+
*
|
|
16
|
+
* isObjectLike(Function)
|
|
17
|
+
* // => false
|
|
18
|
+
*
|
|
19
|
+
* isObjectLike(null)
|
|
20
|
+
* // => false
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param value - The value to check.
|
|
24
|
+
* @returns Returns `true` if `value` is object-like, else `false`.
|
|
25
|
+
*/
|
|
26
|
+
const isObjectLike = (obj) => {
|
|
27
|
+
return typeof obj === "object" && obj !== null;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* function Foo() {
|
|
35
|
+
* this.a = 1
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* isPlainObject(new Foo)
|
|
39
|
+
* // => false
|
|
40
|
+
*
|
|
41
|
+
* isPlainObject([1, 2, 3])
|
|
42
|
+
* // => false
|
|
43
|
+
*
|
|
44
|
+
* isPlainObject({ 'x': 0, 'y': 0 })
|
|
45
|
+
* // => true
|
|
46
|
+
*
|
|
47
|
+
* isPlainObject(Object.create(null))
|
|
48
|
+
* // => true
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param obj - The value to check.
|
|
52
|
+
* @returns Returns `true` if `obj` is a plain object, else `false`.
|
|
53
|
+
*/
|
|
54
|
+
const isPlainObject = (obj) => {
|
|
55
|
+
if (!isObjectLike(obj) || require_get_object_tag.getObjectTag(obj) !== "[object Object]") return false;
|
|
56
|
+
if (Object.getPrototypeOf(obj) === null) return true;
|
|
57
|
+
let proto = obj;
|
|
58
|
+
while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
|
|
59
|
+
return Object.getPrototypeOf(obj) === proto;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
exports.isPlainObject = isPlainObject;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { getObjectTag } from "./get-object-tag.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-plain-object.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
6
|
+
* and has a `typeof` result of "object".
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* isObjectLike({})
|
|
11
|
+
* // => true
|
|
12
|
+
*
|
|
13
|
+
* isObjectLike([1, 2, 3])
|
|
14
|
+
* // => true
|
|
15
|
+
*
|
|
16
|
+
* isObjectLike(Function)
|
|
17
|
+
* // => false
|
|
18
|
+
*
|
|
19
|
+
* isObjectLike(null)
|
|
20
|
+
* // => false
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param value - The value to check.
|
|
24
|
+
* @returns Returns `true` if `value` is object-like, else `false`.
|
|
25
|
+
*/
|
|
26
|
+
const isObjectLike = (obj) => {
|
|
27
|
+
return typeof obj === "object" && obj !== null;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* function Foo() {
|
|
35
|
+
* this.a = 1
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* isPlainObject(new Foo)
|
|
39
|
+
* // => false
|
|
40
|
+
*
|
|
41
|
+
* isPlainObject([1, 2, 3])
|
|
42
|
+
* // => false
|
|
43
|
+
*
|
|
44
|
+
* isPlainObject({ 'x': 0, 'y': 0 })
|
|
45
|
+
* // => true
|
|
46
|
+
*
|
|
47
|
+
* isPlainObject(Object.create(null))
|
|
48
|
+
* // => true
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param obj - The value to check.
|
|
52
|
+
* @returns Returns `true` if `obj` is a plain object, else `false`.
|
|
53
|
+
*/
|
|
54
|
+
const isPlainObject = (obj) => {
|
|
55
|
+
if (!isObjectLike(obj) || getObjectTag(obj) !== "[object Object]") return false;
|
|
56
|
+
if (Object.getPrototypeOf(obj) === null) return true;
|
|
57
|
+
let proto = obj;
|
|
58
|
+
while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
|
|
59
|
+
return Object.getPrototypeOf(obj) === proto;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { isPlainObject };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_is_non_null_object = require('./is-non-null-object.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Check if the provided value's type is an object with some fields set
|
|
6
|
+
*
|
|
7
|
+
* @param value - The value to type check
|
|
8
|
+
* @returns An indicator specifying if the value provided is an object with some fields se
|
|
9
|
+
*/
|
|
10
|
+
const isSetObject = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
return require_is_non_null_object.isNonNullObject(value) && Object.keys(value).length > 0;
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.isSetObject = isSetObject;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isNonNullObject } from "./is-non-null-object.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs
|
|
4
|
+
/**
|
|
5
|
+
* Check if the provided value's type is an object with some fields set
|
|
6
|
+
*
|
|
7
|
+
* @param value - The value to type check
|
|
8
|
+
* @returns An indicator specifying if the value provided is an object with some fields se
|
|
9
|
+
*/
|
|
10
|
+
const isSetObject = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
return isNonNullObject(value) && Object.keys(value).length > 0;
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { isSetObject };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_is_empty = require('./is-empty.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set.mjs
|
|
4
|
+
/**
|
|
5
|
+
* The inverse of the `isEmpty` function
|
|
6
|
+
*
|
|
7
|
+
* @param value - The value to type check
|
|
8
|
+
* @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`
|
|
9
|
+
*/
|
|
10
|
+
const isSet = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
return !require_is_empty.isEmpty(value);
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.isSet = isSet;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isEmpty } from "./is-empty.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set.mjs
|
|
4
|
+
/**
|
|
5
|
+
* The inverse of the `isEmpty` function
|
|
6
|
+
*
|
|
7
|
+
* @param value - The value to type check
|
|
8
|
+
* @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined`
|
|
9
|
+
*/
|
|
10
|
+
const isSet = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
return !isEmpty(value);
|
|
13
|
+
} catch {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { isSet };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-eslint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.176",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running ESLint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -101,13 +101,13 @@
|
|
|
101
101
|
"keywords": ["eslint", "powerlines", "storm-software", "powerlines-plugin"],
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@storm-software/config-tools": "^1.188.80",
|
|
104
|
-
"@stryke/fs": "^0.33.
|
|
105
|
-
"@stryke/path": "^0.
|
|
104
|
+
"@stryke/fs": "^0.33.35",
|
|
105
|
+
"@stryke/path": "^0.25.3",
|
|
106
106
|
"defu": "^6.1.4",
|
|
107
107
|
"eslint": "^9.39.2",
|
|
108
|
-
"powerlines": "^0.37.
|
|
108
|
+
"powerlines": "^0.37.46"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": { "@types/node": "^24.10.9" },
|
|
111
111
|
"publishConfig": { "access": "public" },
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "032b11dbd79e039303ebe2942ed230ea8956ece1"
|
|
113
113
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/get-object-tag.mjs
|
|
3
|
-
const e = (e$1) => e$1 == null ? e$1 === void 0 ? `[object Undefined]` : `[object Null]` : Object.prototype.toString.call(e$1);
|
|
4
|
-
|
|
5
|
-
//#endregion
|
|
6
|
-
exports.e = e;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/get-object-tag.mjs
|
|
2
|
-
const e = (e$1) => e$1 == null ? e$1 === void 0 ? `[object Undefined]` : `[object Null]` : Object.prototype.toString.call(e$1);
|
|
3
|
-
|
|
4
|
-
//#endregion
|
|
5
|
-
export { e };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const require_get_object_tag = require('./get-object-tag.cjs');
|
|
2
|
-
const require_is_plain_object = require('./is-plain-object.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-date.mjs
|
|
5
|
-
const n = (n$1) => require_is_plain_object.t(n$1) && require_get_object_tag.e(n$1) == `[object Date]`;
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
exports.n = n;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { e } from "./get-object-tag.mjs";
|
|
2
|
-
import { t } from "./is-plain-object.mjs";
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-date.mjs
|
|
5
|
-
const n = (n$1) => t(n$1) && e(n$1) == `[object Date]`;
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
export { n };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const require_is_date = require('./is-date.cjs');
|
|
2
|
-
const require_is_function = require('./is-function.cjs');
|
|
3
|
-
const require_is_null = require('./is-null.cjs');
|
|
4
|
-
const require_is_number = require('./is-number.cjs');
|
|
5
|
-
const require_is_symbol = require('./is-symbol.cjs');
|
|
6
|
-
const require_is_undefined = require('./is-undefined.cjs');
|
|
7
|
-
|
|
8
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-empty.mjs
|
|
9
|
-
const o = (e$3) => {
|
|
10
|
-
try {
|
|
11
|
-
return require_is_undefined.e(e$3) || require_is_null.e(e$3);
|
|
12
|
-
} catch {
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
}, s = (n$1) => {
|
|
16
|
-
if (n$1 === !0 || n$1 === !1 || n$1 == null) return !0;
|
|
17
|
-
if (require_is_number.t(n$1)) return n$1 === 0;
|
|
18
|
-
if (require_is_date.n(n$1)) return Number.isNaN(n$1.getTime());
|
|
19
|
-
if (require_is_function.r(n$1) || require_is_symbol.e(n$1)) return !1;
|
|
20
|
-
let { length: a } = n$1;
|
|
21
|
-
if (require_is_number.t(a)) return a === 0;
|
|
22
|
-
let { size: o$1 } = n$1;
|
|
23
|
-
return require_is_number.t(o$1) ? o$1 === 0 : Object.keys(n$1).length === 0;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
exports.o = o;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { n } from "./is-date.mjs";
|
|
2
|
-
import { r } from "./is-function.mjs";
|
|
3
|
-
import { e } from "./is-null.mjs";
|
|
4
|
-
import { t } from "./is-number.mjs";
|
|
5
|
-
import { e as e$1 } from "./is-symbol.mjs";
|
|
6
|
-
import { e as e$2 } from "./is-undefined.mjs";
|
|
7
|
-
|
|
8
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-empty.mjs
|
|
9
|
-
const o = (e$3) => {
|
|
10
|
-
try {
|
|
11
|
-
return e$2(e$3) || e(e$3);
|
|
12
|
-
} catch {
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
}, s = (n$1) => {
|
|
16
|
-
if (n$1 === !0 || n$1 === !1 || n$1 == null) return !0;
|
|
17
|
-
if (t(n$1)) return n$1 === 0;
|
|
18
|
-
if (n(n$1)) return Number.isNaN(n$1.getTime());
|
|
19
|
-
if (r(n$1) || e$1(n$1)) return !1;
|
|
20
|
-
let { length: a } = n$1;
|
|
21
|
-
if (t(a)) return a === 0;
|
|
22
|
-
let { size: o$1 } = n$1;
|
|
23
|
-
return t(o$1) ? o$1 === 0 : Object.keys(n$1).length === 0;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { o };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const require_get_object_tag = require('./get-object-tag.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-function.mjs
|
|
4
|
-
function t(t$1) {
|
|
5
|
-
return require_get_object_tag.e(t$1) === `[object Function]`;
|
|
6
|
-
}
|
|
7
|
-
function n(t$1) {
|
|
8
|
-
return require_get_object_tag.e(t$1) === `[object AsyncFunction]`;
|
|
9
|
-
}
|
|
10
|
-
const r = (e$1) => {
|
|
11
|
-
try {
|
|
12
|
-
return e$1 instanceof Function || typeof e$1 == `function` || !!(e$1?.constructor && e$1?.call && e$1?.apply) || t(e$1) || n(e$1);
|
|
13
|
-
} catch {
|
|
14
|
-
return !1;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
exports.r = r;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { e } from "./get-object-tag.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-function.mjs
|
|
4
|
-
function t(t$1) {
|
|
5
|
-
return e(t$1) === `[object Function]`;
|
|
6
|
-
}
|
|
7
|
-
function n(t$1) {
|
|
8
|
-
return e(t$1) === `[object AsyncFunction]`;
|
|
9
|
-
}
|
|
10
|
-
const r = (e$1) => {
|
|
11
|
-
try {
|
|
12
|
-
return e$1 instanceof Function || typeof e$1 == `function` || !!(e$1?.constructor && e$1?.call && e$1?.apply) || t(e$1) || n(e$1);
|
|
13
|
-
} catch {
|
|
14
|
-
return !1;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { r };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const require_is_object = require('./is-object.cjs');
|
|
2
|
-
const require_is_set = require('./is-set.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs
|
|
5
|
-
const n = (n$1) => require_is_set.t(n$1) && require_is_object.s(n$1);
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
exports.n = n;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { s } from "./is-object.mjs";
|
|
2
|
-
import { t } from "./is-set.mjs";
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs
|
|
5
|
-
const n = (n$1) => t(n$1) && s(n$1);
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
export { n };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-number.mjs
|
|
3
|
-
const t = (e) => {
|
|
4
|
-
try {
|
|
5
|
-
return e instanceof Number || typeof e == `number` || Number(e) === e;
|
|
6
|
-
} catch {
|
|
7
|
-
return !1;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.t = t;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-number.mjs
|
|
2
|
-
const t = (e) => {
|
|
3
|
-
try {
|
|
4
|
-
return e instanceof Number || typeof e == `number` || Number(e) === e;
|
|
5
|
-
} catch {
|
|
6
|
-
return !1;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_is_plain_object = require('./is-plain-object.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-object.mjs
|
|
4
|
-
const s = (t) => {
|
|
5
|
-
try {
|
|
6
|
-
return typeof t == `object` || !!t && t?.constructor === Object || require_is_plain_object.n(t);
|
|
7
|
-
} catch {
|
|
8
|
-
return !1;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
exports.s = s;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { n } from "./is-plain-object.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-object.mjs
|
|
4
|
-
const s = (t) => {
|
|
5
|
-
try {
|
|
6
|
-
return typeof t == `object` || !!t && t?.constructor === Object || n(t);
|
|
7
|
-
} catch {
|
|
8
|
-
return !1;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { s };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const require_get_object_tag = require('./get-object-tag.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-plain-object.mjs
|
|
4
|
-
const t = (e$1) => typeof e$1 == `object` && !!e$1, n = (n$1) => {
|
|
5
|
-
if (!t(n$1) || require_get_object_tag.e(n$1) !== `[object Object]`) return !1;
|
|
6
|
-
if (Object.getPrototypeOf(n$1) === null) return !0;
|
|
7
|
-
let r = n$1;
|
|
8
|
-
for (; Object.getPrototypeOf(r) !== null;) r = Object.getPrototypeOf(r);
|
|
9
|
-
return Object.getPrototypeOf(n$1) === r;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
exports.n = n;
|
|
14
|
-
exports.t = t;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { e } from "./get-object-tag.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-plain-object.mjs
|
|
4
|
-
const t = (e$1) => typeof e$1 == `object` && !!e$1, n = (n$1) => {
|
|
5
|
-
if (!t(n$1) || e(n$1) !== `[object Object]`) return !1;
|
|
6
|
-
if (Object.getPrototypeOf(n$1) === null) return !0;
|
|
7
|
-
let r = n$1;
|
|
8
|
-
for (; Object.getPrototypeOf(r) !== null;) r = Object.getPrototypeOf(r);
|
|
9
|
-
return Object.getPrototypeOf(n$1) === r;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { n, t };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_is_non_null_object = require('./is-non-null-object.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.mjs
|
|
4
|
-
const t = (t$1) => {
|
|
5
|
-
try {
|
|
6
|
-
return require_is_non_null_object.n(t$1) && Object.keys(t$1).length > 0;
|
|
7
|
-
} catch {
|
|
8
|
-
return !1;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
exports.t = t;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { n } from "./is-non-null-object.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.mjs
|
|
4
|
-
const t = (t$1) => {
|
|
5
|
-
try {
|
|
6
|
-
return n(t$1) && Object.keys(t$1).length > 0;
|
|
7
|
-
} catch {
|
|
8
|
-
return !1;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { t };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_is_empty = require('./is-empty.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set.mjs
|
|
4
|
-
const t = (t$1) => {
|
|
5
|
-
try {
|
|
6
|
-
return !require_is_empty.o(t$1);
|
|
7
|
-
} catch {
|
|
8
|
-
return !1;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
exports.t = t;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { o } from "./is-empty.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set.mjs
|
|
4
|
-
const t = (t$1) => {
|
|
5
|
-
try {
|
|
6
|
-
return !o(t$1);
|
|
7
|
-
} catch {
|
|
8
|
-
return !1;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { t };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-symbol.mjs
|
|
3
|
-
const e = (e$1) => {
|
|
4
|
-
try {
|
|
5
|
-
return e$1 instanceof Symbol || typeof e$1 == `symbol` || !!e$1 && e$1.constructor === Symbol;
|
|
6
|
-
} catch {
|
|
7
|
-
return !1;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.e = e;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-symbol.mjs
|
|
2
|
-
const e = (e$1) => {
|
|
3
|
-
try {
|
|
4
|
-
return e$1 instanceof Symbol || typeof e$1 == `symbol` || !!e$1 && e$1.constructor === Symbol;
|
|
5
|
-
} catch {
|
|
6
|
-
return !1;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { e };
|